Return buttons over webhook

varsha
(rein) #1

Is it possible to return buttons in a webhook?

0 Likes

(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.

0 Likes

(rein) #3

Thanks for your help. But what I meant was whether it is possible to return buttons in a webhook. So write the buttons into the response. Luckily I have found a solution in the meantime: I could extend the webhook-response with buttons which have the same structure as in the Rasa-Core Client. This works :slight_smile:

0 Likes