Skip to content

stateful/chatgpt-demo

Repository files navigation

Node.js ChatGPT Demo!

This project contains different demos using ChatGPT and showcaseS how to build powerful AI Workflows using minds and OpenAI API

Ensure you have a .env file with the OpenAI API Key

cp .env.example .env

Ensure you have the dependencies install

npm install

1. Basic Example

npm run basic-example

2. Ask ChatGPT as one of the following characters:

  • Leonardo Davinci
  • William Shakespeare
  • Yoda
  • Steve Jobs

Execute the following command to see it in action:

npm run start

3. Analyze a customer support request by automatically identifying:

  • Product Name
  • Issue description
  • Issue summary
  • Payment method
npm run support-demo

4. Generate a short and effective marketing messages

  • Under 160 characters
  • Prompts recipients to book a call
  • Employs emojis and friendly language
npm run marketing.js

5. Product search based on customer query

  • Do you folks have 5 Macbook Pro's M2 with 96GB RAM and 3 iPads in stock?
npm run product-search.js

About

Demo for NodeCongress 2023

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published