This repository integrates ChatGPT, which is accessible within WhatsApp, using the OPENAI API. To use it, you need to first create an API key on OPENAI and then create a Twilio account to obtain a phone number.
Clone the project.
git clone https://github.com/endermiriz/freesia-chatbot
Go to the project directory.
cd freesia-chatbot
Install the necessary packages.
pip install -r requirements.txt
If the Twilio configurations, OpenAI API key, and NGROK setup (or your own server and domain if available) have been configured beforehand, you can run the app.py file.
python app.py
Make sure you have entered the API Key in the OPENAI_KEY
variable in the .env
file.
-
In order to use the repository, you need to acquire an OpenAI API Key first. > OpenAI API
-
Create a Twilio account and obtain a phone number for WhatsApp. Set up Twilio for WhatsApp using the acquired phone number. > Twilio docs
-
If you are going to use NGROK, you need to have a registered account and download NGROK. > NGROK docs