Skip to content

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

Notifications You must be signed in to change notification settings

tanwinn/covid-tracker-bot

Repository files navigation

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)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors 3

  •  
  •  
  •