I’m building a chatbot that does a questionnaire. Each question is answered by the user in the form of a number from 0-4. These numbers are, at the end, summed up through a function in actions.py. This is where it’s not working. Each number is saved on a slot and I am doing the tracker.get_slot to grab each number onto a variable.
This chatbot has the purpose of helping war refugees in their hosting country.
edit: I forgot to add that, once the calculation is done, if the total is above 44 RASA should start another story but if it’s below 44 it ends the conversation. How is this achievable?
Hi, there is a lot to unpack in your question. Why do you use an individual forms for every question? I think it would simplify everything, if you use only one form. You can also use der utter_ask_<slot_name> syntax to ask the questions for the slots. This makes the code a lot simpler.
The usage of individual forms is actually complicating things, but my main problem is the actual calculation and returning a different action depending on the sum.