SetSlots Button payload not working as expected

Hello, I am working on a small demo bot for a presentation and I am having issues with button payloads. I am using a form to fill some slots and /affirm and /deny as payloads work fine for setting the boolean slots using “from_intent” as mapping, but with some other slots I have issues.

slots:
  mitarbeiter:
    type: categorical
    values:
    - low
    - mid
    - high
    mappings:
    - type: custom

responses:
  utter_ask_nis2_check_form_mitarbeiter:
  - text: Wie viele Mitarbeiter arbeiten in Ihrem Unternehmen?
    buttons:
    - title: Unter 50
      payload: /SetSlots(mitarbeiter=low)
    - title: 50 bis 250
      payload: /SetSlots(mitarbeiter=mid)
    - title: 250 oder mehr
      payload: /SetSlots(mitarbeiter=high)

I am testing the behavior using interactive training and at the point I select one of these options, instead of setting the slot it shows my message as ‘mitarbeiter=mid)’ and classifies it as an intent (affirm in this case), which triggers a fallback and breaks the form. Am I misunderstanding how this is supposed to work? Or did I forget something? Rasa-Pro Version: 3.10.7

Hi @msr ! Thanks for reporting that issue! We are aware of it and working on a fix. In the meantime, you can use “rasa inspect” to test your assistant as this bug only happens in the CLI :slight_smile:

1 Like