Hi everyone, this is repository for my personal demo project on connecting Twilio and OpenAI to provide answers to all the users questions using OpenAI GPT-3. This is written in Python
and served with Flask
. This bot can only handle:
I have recorded a quick video on the setup of this chat-bot, in case you want to replicate the work, you can watch it here.
There are couple of things that you need before you get started following this repository.
Account SID
and Auth Token
for that project, we will need this to make requests. You can get it from here.To replicate the work of this repository and run it locally, you need to follow these steps:
.env
file inside the root directory, create these environmental variables:
TWILIO_ACCOUNT_SID=YOUR ACCOUNT SID
TWILIO_AUTH_TOKEN=YOUR AUTH TOKEN
OPENAI_API_KEY=YOUR OPENAI API KEY
FROM=whatsapp:+14155238886
This FROM variable in the .env file is same for the Twilio WhatsApp Sandbox.
requirements.txt
file
pip install -r requirements.txt
python run.py
gunicorn run:app
Twilio WhatsApp Sandbox
for all incoming request.I am Raj Kapadia
, I am passionate about AI/ML/DL
and their use in different domains, I also love to build chatbots
using Google Dialogflow ES/CX
, I have backend development experience with Python[Flask], and NodeJS[Express] For any work, you can reach out to me at...