The intent of this template is to serve as a reference guide for fellow developers looking to build and / or monetize AI GPT-3 chatbots on Web and Mobile.
Jeanie is an AI powered virtual girlfriend based on the above code
- Windows / Mac / Linux with Git installed
- Python 3.5+
- MessengerX.io API Token
- GPT-3 Token
- Ngrok for Tunneling
nano -w .env
API_TOKEN = <Machaao API Token>
OPENAI_API_KEY = <OpenAI Key>
BASE_URL = <Machaao Base Url> ex: https://ganglia.machaao.com
NAME = <Your Bot Display Name> ex: Jess
DASHBOT_KEY = <Your dashbot token> (Optional) (Conversational Analytics)
- Signup via MessengerX.io and get a free bot token and replace it in the
.env
file under the entryAPI_TOKEN
- MessengerX.io allows you to build and integrate a custom chatbot in your website or app or a shareable link.
- Create a Custom Bot and follow the setup process as listed below
- You can acquire the API Key via Open AI and replace it in the
.env
file under the entryOPEN_AI_KEY
- You can acquire the API Key via Dashbot.io and replace it in the
.env
file under the entryDASHBOT_KEY
git clone [email protected]:machaao/gpt-3-chatbot.git
cd gpt-3-chatbot
pip install -r requirements.txt
This is a discussion between [user] and [name]
[name] is a very understanding girl.
def core(self, req: str, user_id: str):
- Refer to platform documentation for messaging payloads
python app.py
ngrok http 5000
Update your bot Webhook URL at MessengerX.io Portal with the url provided as shown below to continue development
Webhook Url: https://<TUNNEL-HOST>/webhooks/machaao/incoming
If you use Ngrok.io, your webhook URL would be of the format as in the example below
https://1234-115-187-40-104.ngrok.io/webhooks/machaao/incoming
Visit: https://messengerx.io/<bot-name>
We are assuming you have access to a heroku account and have installed heroku command line client for your OS.
heroku login
heroku create
git commit -m ".env updated"
git push heroku master
heroku logs --tail
Update your bot Webhook URL at MessengerX.io Portal with the heroku app url
Webhook Url: <YOUR-HEROKU-APP-URL>/webhooks/machaao/incoming
Visit: https://messengerx.io/<your-bot-name>
- Please note that this document isn't meant to be used as a guide for production environment setup.
- Please note to get a downloadable APK for your character, please contact us at [email protected]