so in my example I have a form and 4 slots, 3 of them are filled through buttons, I flowed the docs but there is a problem when I add the payload so I decided to remove it and it worked fine However , I have an utter_slots_values it is a recap on all the users answers unfortunately the problem appears while displaying this small recap I noticed the last letter of each value is missing
I changed the line breaks unfortunately it didn’t fix the problem
I did connect my assistant to rasa X but the buttons didn’t work I’m a little bit stuck
in local mode the problem starts from the beginning as the screen shot shows
can you give me any advice or a path to take in order to solve this please?
the “bill” intent is created and mentioned in the domain file ( when running rasa data validate everything is good)
in the stories and rules I’m not using the bill intent I’m using the bill_form
I checked the yaml format with the link that you send me and it looks good as well it’s valid
(they gave me a nicer version yet the original one is valid)
I want to collect certain information so i know what the user is looking for
so I start by greeting one the user will say I want to pay my bill “je veux payer ma facture” the form will be activated and certain questions will be answered
so an example of a discussion:
user: salut
bot: Bonjour, je suis un chatbot spécialisé en assurance\n
comment puis je vous aider ?
Why do you have both buttons with same payload? both have /bill as payload. Syntax is fine here otherwise it won’t compile when you do rasa train
Below is an example for reference
utter_greet:
- text: Hey there 👋! I can help you with employee onboarding information related to following
utter_greet_options:
- text: Select one from below
buttons:
- title: "Forms"
payload: '/main_forms'
- title: "Personal Documents"
payload: '/main_personal_docs'
- title: "Official Documents"
payload: '/main_official_docs'
- title: "PI Report"
payload: '/main_pi_report'
- title: "Contractors"
payload: '/main_contract_faqs'
- title: "Medical Certificate"
payload: '/main_medical_faqs'
You can even fill Entities with button payloads, check this official Wellness bot example
utter_ask_health_form_stress:
- text: Is your stress level low, medium or high 🧘🏼?
buttons:
- title: "Low"
payload: '/inform{{"stress": "low"}}'
- title: "Medium"
payload: '/inform{{"stress": "medium"}}'
- title: "High"
payload: '/inform{{"stress": "high"}}'
Notice the two {{}} brackets thats for python to prevent interpreting it for string interpolation. payload should be a Json like this → {“entity”: “value”}
Yeah definitely, payload is intent, you are right. But lets circle back to original question. Buttons should work with syntax you have. Assuming you did rasa train and then rasa shell (also just to be safe, delete old models folder & re train & test)
The point of having two buttons is to have it call 2 different intents or fill different entities with same intent. you cannot have same payload (intent) & expect it to run differently ? Am I missing something?
Cool, your actions in the domain need to be sorted and even stories. I have updated your file now. Just you need to pass payload as you have passed like /bill and you always need different payloads for marqueA, marqueB and marqueC with “utter”. It will take a lot of time for me to check the complete code. But I have updated the code, I am sure you will be able fixed the issue.
Tip:
Go, step by step on outputs and one scenario at a time and /bill will not use two times, it will confuse the model.
Try to delete the old models. If you believe your code is 100% correct.
Do let me know if it works for you or any other help
I have only updated domain.yml file.
domain.yml (3.2 KB)