Skip to content

JimYJ/gtp3-chatbot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT3-chatbot 🚀

A SMS-based chatbot engine built using the GPT3 Language model. It allows users to chat with an AI machine through SMS.

Instructions

  1. Clone the git repository or download the ZIP file.
  2. Get the access token from the OpenAI - https://beta.openai.com/
  3. Create a file called .env in your root directory and insert the code you received from the OpenAI
OPENAI_KEY=<your_secret_key>
  1. Create a trial account in twilio to get a registered phone number.
  2. After creating the account, purchase a phone number.
  3. Install relevant files by typing the following command in your terminal
pip install twilio openai python-dotenv flask ngrok 
  1. Run the application
python app.py
  1. As your application is running on a local server, it is not reachable by the twilio server. To fix this, open another terminal and then type the following command in your terminal
ngrok http 5000
  1. Copy the forwarding url present in the terminal and go to your twilio console. Then click on your phone number and scroll down to the messaging section.
  2. In the 'A MESSAGE COMES IN" webhook, paste your forwarding url.
  3. Start sending SMS to your newly authorised phone number.

Contact 🚀

If you have any questions, feel free to reach out. My contact details are on my profile.

#happyCoding #GTP3Engine

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%