dbpedia / chatbot-ng

Repository for the GSoC 2021 project 'Modular DBpedia Chatbot'.
MIT License
4 stars 2 forks source link

Create a Demo Video with Dialogflow Chatbot Interface #7

Open Perevalov opened 1 year ago

Perevalov commented 1 year ago

Context

A good final step of this project would be a walkthrough video with the typical scenarios. We can re-use Dialogflow chatbot interface by embedding its code on a simple web page or just re-use public Dialogflow URL (Web Demo option in the Integration page).

Definition of Done

muskan-k commented 1 year ago

@Perevalov I created the integration and embedded the code in the existing website folder. However, when I try it from the UI it doesnt worked. I mean, I tried running the webhook service on the backend and the UI at the same time and asked simple questions, but it the chatbot returns no response. I tried the same with the previous year's chatbot too, the 2022 one which seemed to be working, but that gives no response too.

What do I need to do so that the chatbot can recognise the question and match the intent as expected from backend?

Perevalov commented 1 year ago

@muskan-k The only thing you need is to set up the "fulfillment URL" as a URL to the backend (webhook).

The Dialogflow chatbot has to have the respective intents (e.g. add-component), when you ask "Please, add component XYZ to my profile", the Dialogflow recognizes the add-component intent and activates your backend (webhook).

So, first, make sure that you set the backend URL at the Dialogflow properly. Then check, which intents are activated given an example question. Then, verify whether the request is actually coming to the backend.