How I created my COVID-19 InfoΒ Bot πŸ—οΈ

An Info bot πŸ€– capable of giving the latest data on cases in India and general facts regarding COVID-19. πŸ™Œ

Jun 25, 2020Β·

2 min read

Play this article

Try it πŸ‘‡

COVID-19 Info Bot

An Infobot capable of giving the latest data on cases in India and general facts regarding COVID-19. πŸ™Œ

InfoBot Icon

It all started with a Dialogflow Course I was doing. Once, I had learned the skills, I wanted to develop something where I can get a better hands-on experience.

So, This Idea of COVID-19 Info Bot popped into my mind.

Initially, I just wanted to create a chatbot that will be capable enough to give the stats of COVID-19 cases in each state. There are already a lot of APIs out there which are free to use and easy to implement. After a bit of research πŸ˜…, I finally got an API for getting the latest data on COVID-19 cases in India using Graphql. Link for the API details πŸ‘ˆ

Now, I had to create Webhooks. βš“οΈ

After a lot of struggle and 2 sleepless πŸ˜ͺ nights, I figured out that I need help πŸ˜†. So, for Webhooks I found this medium post:\ chatbotsmagazine.com/creating-nodejs-webhoo..

Finally Developed Dialogflow webhooks with NodeJs here you can find the backend source code in Github. πŸ‘‡

Souravdey777/Covid19-InfoBot

This webhook is making requests to COVID-19 API which is taking the response object and molding it as per the response required for Dialogflow. It is hosted in Heroku.

Dialogflow Training

With Dialogflow I have created Intents like this and all Indian states are the Entities.

For making the bot capable of answering general COVID19 Questions I used the knowledge bases functionality of Dialogflow.

Now the Chatbot was ready to be used with Dialogflow web demo bot.dialogflow.com/1caa8f0d-744f-4a2a-baa4-.. or with Google Assistants or Alexa.

But to make a customized User Interface I created the website using React Js. Here is the Source Code πŸ‘‡

Souravdey777/Covid19-InfoBot_FE

Everyone is welcome to contribute to this project. You can contribute either by submitting bugs or suggesting improvements by opening an issue on GitHub.

To conclude these are the main features:

  • Capabilities to give live data of Covid 19 count for all states of India.
  • Capabilities to give general info about Covid 19.
  • Dialogflow comes with Google NLP Capabilities.
  • Integration with Slack, Facebook, Twitter, etc possible.
  • Webhook to fetch live data using NodeJs and ExpressJs.
  • Responsive Design
  • Progressive Web Application

It is there in Product Hunt too. You can support by giving an Upvote.

Liked it! You can give a Star 🌟 to the Repo. Thanks for reading.

Did you find this article valuable?

Support Sourav Dey by becoming a sponsor. Any amount is appreciated!

Β