Skip to content

Sample bot to demonstrate GPT-3 integration in a Bot Framework based bot

License

Notifications You must be signed in to change notification settings

SidU/botframework-gpt3

Repository files navigation

Bot Framework GPT-3 demo 🤖

Simple bot to demonstrate how to utilize GPT-3 in a Bot Framework bot

Prerequisites

  • Node.js version 10.14.1 or higher

    # determine node version
    node --version
  • OpenAI account

To run the bot

Play with the prompts to change the personality of the bot.

Someone famous from history (talk to them to learn about them)

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.

image

Give your bot a sarcastic personality (never miss your snarky coworkers 😁)

In bot.js, uncomment the provided prompt to get the bot to answer questions with sarcasm. image

Want more prompt ideas?

Take a look at the list of Awesome ChatGPT Prompts!

Testing the bot using Bot Framework Emulator

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

Connect to the bot using Bot Framework Emulator

  • Launch Bot Framework Emulator
  • File -> Open Bot
  • Enter a Bot URL of http:https://localhost:3978/api/messages

Deploy the bot to Azure

To learn more about deploying a bot to Azure, see Deploy your bot to Azure for a complete list of deployment instructions.

Further reading

About

Sample bot to demonstrate GPT-3 integration in a Bot Framework based bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published