This project enables the creation of a Webex bot that utilizes a ChatGPT instance hosted in Azure Open AI Studio. The entire project can be deployed within an Azure Web App.
- Webex account
- Azure account with access to Azure Open AI Studio
- Navigate to Webex for Developers.
- Create a new bot as per the instructions in the Webex Bot documentation.
- Add the created bot's token to
app.py.
- Follow the instructions in this Azure ChatGPT Quickstart Guide to create a new ChatGPT instance.
- Update the
openai.api_baseingpt.pywith the Endpoint. - Add either Key 1 or Key 2 to
openai.api_keyingpt.py. - It's recommended to store these keys as environment variables for security purposes.
- Create an Azure Web App following this Azure Python Web App Quickstart Guide.
- This project includes a ready-to-use
requirements.txtfile. You can fork this project, updateapp.pyand use your repository for deployment. - Enable "Always On" in your application settings.
- Ensure 'python app.py' is set as the Startup command.
Now, you can interact with your bot on Webex and start chatting! Enjoy!
For future enhancements and ideas, you can refer to this project: fbradyirl's Webex Bot on GitHub