This repo contains the source code and data for the CoViD-19 Bot
backend.
This includes the chatbot Dialogflow WebHook, data retrieving/processing scripts and daily data.
- The public chatbot can be found here: CoViD19 Bot - AI4Bharat
virtualenv --python python3 ~/envs/covid19_webhook
source ~/envs/covid19_webhook/bin/activate
git clone repo
andcd repo
- Set service name in
app.yaml
pip install -r requirements.txt
- Optional:
python main.py
(To check if working) - Optional:
gcloud app create
(Only do this unless there's nodefault
service)
gcloud app deploy app.yaml
- Use the URL indicated for Dialogflow WebHook as
{URL}/webhook
- To install libraries:
pip install -r requirements.txt
- To expose local server:
ngrok http 8000
- To run this WebHook server:
python main.py
- Use
{HTTPS_URL_FROM_GROK}/webhook
as Dialogflow webhook URL
- The chatbot data (intents, entities) can be found here: Dialogflow-Data.zip.
- Go to Dialogflow -> Project Settings (Gear Icon)
Export and Import
Tab -> Choose an appropriate option and upload the zip.