Build your own ChatGPT powered faq / knowledge base chatbot that can infer and answer queries based on the information provided via an external data source
- Windows / Mac / Linux with Git installed
- Python 3.8+
- MessengerX.io API Token - FREE for Indie Developers
- Open AI Key
- Ngrok for Tunneling
pip install -r requirements.txt
- For Linux / Mac
nano -w .env
- For Windows
type nul > .env
OPENAI_API_KEY=<YOUR_OPEN_AI_KEY> # your open ai key
MESSENGERX_BASE_URL=https://ganglia.machaao.com
OVERRIDE_INDEX_CHECK=False
- Set OVERRIDE_INDEX_CHECK to
True
if you want the bot to automatically retrain your index when you update your data source
- It can be of any type (.txt, .pdf etc.) and may contain multiple files. Its totally flexible
python app.py
ngrok http 5000
Update your bot Webhook URL at MessengerX.io Portal with the url provided by ngrok
https://<Your NGROK URL>/machaao/hook
- If your
NGROK URL
ishttps://e9fe-115-187-40-104.in.ngrok.io
then your bot settings page should look like this 👇🏻
# HappyCoding