A chatbot powered by the OpenAI GPT-3 language model, designed to assist and entertain users by providing useful information on a wide range of topics.
- Use GPT-3 to Generate responses from texts
- Can text from anywhere and interact with GPT-3
To use the Twilio-GPT Chatbot, you will need to have a Twilio account and a phone number that can receive SMS messages. You will also need to obtain an OpenAI API key.
- Clone the repository and install the dependencies:
git clone https://github.com/sabirshalabi/twilio-chatbot-gpt/
cd twilio-gpt-chatbot
pip install -r requirements.txt
- Set the following environment variables:
- account_sid: Your Twilio account SID
- auth_token: Your Twilio auth token
- twilio_phone_number: Your Twilio phone number
- my_phone_number: The phone number to send SMS messages to
- openai_api_key: Your OpenAI API key
- Run the app:
python app.py
- Send a text message to your Twilio phone number with your question or request. The chatbot will respond with an answer or information.