2

I am creating a chatbot using Dialogflow with Hangouts API with fulfillment. While specifying a button on Hangouts custom payload in Dialogflow (or in my webhook if required) that then triggers a another intent. My end goal is replicate the Quick Replies functionality of Facebook in Hangouts.

{
 "hangouts": {
"header": {},
"sections": [
  {
    "widgets": [

      {
        "buttons": [
         {
            "textButton": {
                "text": "Trigger another intent",
                  "onClick": {
                     "followupEventInput": {
                        "name": "event-name"
                     }
                   }
              }
           }
         ]
       }

     ]
   }
  ]
 }
}
Jessica Rodriguez
  • 2,899
  • 1
  • 12
  • 27
Hasam
  • 622
  • 1
  • 6
  • 14
  • 1
    Is the [Responding to clicks](https://developers.google.com/hangouts/chat/how-tos/cards-onclick) documentation useful to you? – ziganotschka Apr 20 '20 at 11:16
  • 1
    Thanks, but basically according to my research, I don't think it's possible to have a callback function with a button when using the existing integration for Hangouts in Dialogflow. It seems like the solution is to deploy an HTTP/Webhook/Apps Script and to handle the clicks there. – Hasam Apr 26 '20 at 19:21

0 Answers0