Simple bot to demonstrate how to utilize GPT-3 in a Bot Framework bot
-
Install modules
npm install
-
Make a copy of
.env.example
to.env
, get your OpenAI key from https://beta.openai.com/account/api-keys and paste it in the.env
file. -
Start the bot
npm start
In bot.js, uncomment the provided prompt to make the bot pretend it is Mahatma Gandhi. Feel free to substitute the name with anyone else.
In bot.js, uncomment the provided prompt to get the bot to answer questions with sarcasm.
Take a look at the list of Awesome ChatGPT Prompts!
Bot Framework Emulator is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel.
- Install the Bot Framework Emulator version 4.9.0 or greater from here
- Launch Bot Framework Emulator
- File -> Open Bot
- Enter a Bot URL of
http://localhost:3978/api/messages
To learn more about deploying a bot to Azure, see Deploy your bot to Azure for a complete list of deployment instructions.