tanwinn / covid-tracker-bot

Chatbot powered by wit.ai and Facebook Messenger for Covid tracker (deployed API)

Home Page:https://covid-tracker-chatbot.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coverage Status

Covid Tracker Chatbot

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

Chatbot_demo

Dev setup

Requirement

Python 3.8 or higher & PyPI pipenv for venv management

Getting started

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

Env configuration

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

Dev workflow

pytest
bc fmt # formatting
prospector

Run the App

uvicorn api.main:APP --reload  # Run the APP

Additional Resources

Pip, Virtual environment & Pipenv:

FastApi: https://fastapi.tiangolo.com/

Facebook Messenger Devhub:

Wit:

Stackoverflow:

About

Chatbot powered by wit.ai and Facebook Messenger for Covid tracker (deployed API)

https://covid-tracker-chatbot.herokuapp.com/


Languages

Language:Python 82.6%Language:HTML 17.2%Language:Procfile 0.1%