The intent of this template is to serve as a reference guide for fellow developers looking to build, grow and monetize AI GPT-3 / GPT-4 chatbots on Web and Mobile.
Jeanie is an AI powered virtual girlfriend based on a version of the above code
- Windows / Mac / Linux with Git installed
- Python 3.5+
- MessengerX.io API Token
- OpenAI API Key
- Ngrok for Tunneling
git clone [email protected]:machaao/gpt-3-chatbot.git
cd gpt-3-chatbot
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
- 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
pip install -r requirements.txt
This is a discussion between [user] and [name]
[name] is a very understanding girl.
- Example prompt after modifying logic/prompt.txt
This is a discussion between user and Jess
Jess is a very understanding girl
def core(self, req: str, label: str, user_id: str, client: str, sdk: str, action_type: str, api_token: str):
- Refer to platform documentation for messaging payloads
python app.py
ngrok http 5000
Update your bot Webhook URL at MessengerX.io Portal If you use Ngrok.io, your webhook URL would be of the format as in the example below
https://<NGROK-HOST-URL>/machaao/hook
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>/machaao/hook
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]