Messenger Chatbot powered by wit.ai and Facebook Messenger for Covid Tracker API. Submission for Facebook Wit AI Hackathon 2020.
Facebook Messenger Chatbot (InDev): m.me/CovidTrackerChatbot
Wit.AI ID: 271193027527308
Deployed bot: https://covid-tracker-chatbot.herokuapp.com/ | https://github.com/tanwinn/covid-tracker-bot
Tracking API: https://covid-tracker-us.herokuapp.com/ | https://github.com/ExpDev07/coronavirus-tracker-api
Demo video: https://youtu.be/GWIwydrHSQw
Python 3.8 or higher & PyPI pipenv for venv management
git clone git@github.com:tanwinn/covid_tracker_bot.git
cd covid-tracker-bot
pipenv shell # activate venv
pipenv sync --dev # sync the dependencies packages
# Do dev stuff
exit # exit out of the venv
Create a .env file in project root to store the following info .env file
TRACKER_API=https://covid-tracker-api-chatbot.herokuapp.com/v2
WIT_TOKEN=your_wit_token # Wit.ai parameters
FB_PAGE_TOKEN=your_page_token # Messenger API parameters
FB_VERIFY_TOKEN=your_verify_token # A user secret to verify webhook get request
Make sure to reset the pipenv shell to apply the change
pytest
bc fmt # formatting
prospector
uvicorn api.main:APP --reload # Run the APP
Pip, Virtual environment & Pipenv:
- https://realpython.com/what-is-pip/
- https://realpython.com/effective-python-environment/#pipenv
- https://realpython.com/pipenv-guide/
FastApi: https://fastapi.tiangolo.com/
Facebook Messenger Devhub:
- https://developers.facebook.com/docs/messenger-platform
- https://developers.facebook.com/docs/messenger-platform/webhook
Wit:
Stackoverflow: