Hello everyone,
I would like to ask, is it possible to implement a multiple-answer question in Rasa?
You can see below what would be the expected output
Hello everyone,
I would like to ask, is it possible to implement a multiple-answer question in Rasa?
You can see below what would be the expected output
You can create custom output payloads with the data you need (which should just be the choice’s names), then display it on the frontend using something like this (lines 568-626).
Hey @ChrisRahme, could you please elaborate a bit more on this?
The multiple-answer is something like a type for the “accessory” part?
You can write whatever you want inside of it. For example:
responses:
utter_feeling:
- text: "How are you feeling today?"
custom:
choices:
- text: Anger
- text: Irritation
- text: Grudge
- text: Fear
You will receive it as a JSON in your frontend:
{
"text": "How are you feeling today?",
"custom": {
"choices": [
"Anger", "Irritation", "Grudge", "Fear"
]
}
}
Ok, and what type of slot should I have? A list?
I’m just talking about how to build the bot’s response with buttons, not the parsing of the user’s message.
For this part, in your frontend application, you transform the message into a payload like for buttons before sending it. For example:
/give_mood{"moods": ["Serenity", "Hope"]}
ok, I will give it a try. Thank you for your time I appreciate your help. I will come back to this when it is done.