ohcnetwork / life

Verified Crowd-Sourced Emergency Services Directory
https://life.coronasafe.network/
82 stars 56 forks source link

Chatbot for the data in this repository #140

Closed hannanabdul55 closed 3 years ago

hannanabdul55 commented 3 years ago

What's there in this bot?

I have created a bot (demo here - click on the small popup on the bottom right corner) using Dialogflow that pulls data from the data folder in this repository and serves it to end-users through a chatbot. Currently, it has the following queries:

What's being added

Next steps

What does it take to add this to a website?

Just add this code snippet to the HTML

<script src="https://www.gstatic.com/dialogflow-console/fast/messenger/bootstrap.js?v=1"></script>
<df-messenger
  intent="WELCOME"
  chat-title="COVIDIndia-Chatbot"
  agent-id="66abf6fe-80ee-4b2a-b182-6341dce4c3c6"
  language-code="en"
></df-messenger>

What next?

Deep-Codes commented 3 years ago

@bodhish Please See.

vjFaLk commented 3 years ago

@hannanabdul55 I was just thinking about making a Telegram bot and then saw this post. What are you thoughts on porting your code over to a Telegram bot. It will make it more accessible and also remove the Dialogflow dependency.

hannanabdul55 commented 3 years ago

What are you thoughts on porting your code over to a Telegram bot.

I am not sure about the Telegram API. But I can definitely standardize the data querying here and serve that through the flask server. I am not sure about what aspects of the natural language processing does Telegram handle. If it does all the parsing into Entities, similar to Dialogflow, then it should be pretty easy to port the entire code to Telegram. As a matter of fact, Dialogflow itself has an option to "plug in" to Telegram.

bodhish commented 3 years ago

@hannanabdul55 we can definitely include it

vjFaLk commented 3 years ago

Hey I've created a new discussion at https://github.com/coronasafe/life/discussions/146 as it seemed more apt than Issues.

hannanabdul55 commented 3 years ago

Closing this as it is moved to a discussion.