Rasa error: UserWarning: Failed to parse arguments

The issue arises when the chatbot presents two buttons for the user to choose from, one for “astreinte” and the other for “support”. After the user selects one of these options, the chatbot should extract information from a CSV file accordingly. However, there is an error occurring when the user selects either “astreinte” or “support”:

“UserWarning: Failed to parse arguments in line ‘/choose_topic{“topic”: “astreinte”}’. Expected entities from but found {‘topic’}. Continuing without unknown entity types.”

file nly.yml:

  • intent: choose_topic examples: |
    • ‘/choose_topic{“topic”: “astreinte”}’
    • ‘/choose_topic{“topic”: “support”}’

file domain.yml: utter_greet_with_options:

  • text: “Bonjour, voulez-vous avoir des informations sur l’astreinte ou le support ?” buttons:
    • title: “astreinte” payload: ‘/choose_topic{“topic”: “astreinte”}’
    • title: “support” payload: ‘/choose_topic{“topic”: “support”}’

What I had to do to fix this error please?

You need to double the curly braces, see https://rasa.com/docs/rasa/responses#buttons.