Attach response selector intent to button

Hi,

On my nlu.yml file I have the following intent:

nlu:
  - intent: faq/ask_name
    examples: |
      - what is your name
      - please tell me your name
      - may I know your name
      - who are you

And I want to attach this intent to a button. I tried doing this on my domain:

buttons:
  - title: "Ask name"
    payload: /faq/ask_name

But it seems like this is not the syntax to attach retreival intents to buttons

1 Like

You can’t use the slash command for retrieval intents. There’s an open issue requesting support for this.

You can either use one of your text examples for the intent as the payload or this workaround.

1 Like

Thank you. Using text examples works just fine.