Return buttons over webhook

varsha

(rein) #1

Is it possible to return buttons in a webhook?


(Varsha Kirani) #2

Yes, we can send buttons in a webhook. For example: in your domain.yml, you can define button in the template.

templates:
   utter_did_that_help:
     - text: "Did that help you?"
       buttons:
       - title: "Yes"
         payload: "yes"
       - title: "No"
         payload: "No"

You can refer the docs page for other types of templates.