Can you trigger an faq intent from a button payload?

Can a button payload point to an intent in response selector? i,e

  utter_some_buttons:
    - text: "Questions:"
      buttons:
      - title: "What is your policy?"
        payload: '/faq/ask_policy'
1 Like

Hi @tatianaf, you can trigger the faq response from buttons by passing the button title itself as payload. For example, in the example you gave, it’ll be

  buttons:
  - title: "What is your policy?"
    payload: "What is your policy?"

This will pass the button title as text to the bot and it’ll identify as faq intent.

Hope this helps! :slight_smile:

2 Likes