Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dialogflow Web Integration not showing Quick Replies and Multiple Replies

I've created a chatbot using Dialogflow and integrated it with Telegram, Facebook Messenger and Web.

The response for Dialogflow is created via Fulfillment written in Python.

In Telegram and Facebook Messenger I am getting replies as expected for each message from user.

But now when I am trying integration for Web, I've noticed that the replies from chatbot does not show multiple reply messages/lines and Quick Replies.

Below is screenshot when user say 'Hi' to the chat bot in Telegram, Facebook Messenger, Web and Dialogflow console respectively. Why is this happening and how can I fix this?

Telegram Messenger Web Console

Below is the Fulfillment response JSON:

{
  "fulfillmentMessages": [
    {
      "text": {
        "text": [
          "Greetings from Tulsi Village!!!",
          "My name is Appu. I am your virtual assistant.",
          "How can I help you?"
        ]
      }
    },
    {
      "quickReplies": {
        "quickReplies": [
          "Book",
          "Rooms",
          "Contact",
          "Other"
        ]
      }
    }
  ]
}
like image 918
Thanthu Avatar asked Oct 19 '25 14:10

Thanthu


1 Answers

The rendering of response depends on the client you are using.
Telegram, Facebook Messenger, are able to render the quick-replies and multi-line replies.
But the web-demo which you are using does not support these, hence you are not able to see quick-replies and multi-line replies.

If you want to integrate it with a website, you need to design it in such a way that it can render the json response and show it correctly. Web-demo is not designed to render these.

like image 84
sid8491 Avatar answered Oct 22 '25 07:10

sid8491



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!