Hi,
I am trying to implement a covid symptoms checker chatbot. The scenario is that I ask the user for his age and gender and make a REST call to a URL, which will give a list of questions to ask to the user. Each question has a question code. All the questions have a yes or no as an answer. I ask the questions to the user through Yes/No buttons and the answers to the questions are updated along with the question code and REST post call is done again to get the next set of questions. This process is repeated continuously till the finally the result is predicted. The questions keep changing based on the users answer to the previous question.
I am stuck at a point where once I get the list of questions, I loop through each question and ask the user through Yes/No buttons but when I run it in rasa interactive, action_listen occurs only for the final question in the loop and I am able to get the response of the last question only. I tried to force action_listen through FollowupAction(“action_listen”) but still, action listen occurs only for the final question in the loop.
Please find a pic of my actions.py file
I also tried the following code
When I tried the above code, action_listen was getting bypassed by action_symptom_check1. “action_symptom_check1” is the action in which the code is implemented. ini is a global variable. Since there can be multiple questions with each having Yes/No as an answer, I thought I will maintain only 1 slot and keep updating it for each Question.
If anyone has faced a similar issue, could you please suggest a workaround or if there is a completely different logic to be applied, then i am open to it as well. @Tobias_Wochinger Could you please help me out.
Regards,
Anand