In my rules.yml i have 2 forms. Rule policy is able to predict and execute the custom submit action of one rule but it is not able to predict and execute the submit action of second form.
In case of first form , i get below message and correct action gets executed
2022-04-26 01:49:44 DEBUG rasa.core.policies.rule_policy - There is a rule for the next action ‘action_quiz_info_submit’.
In case of second form , i get this message
2022-04-26 01:50:10 DEBUG rasa.core.policies.rule_policy - There is no applicable rule Here, I was expecting action_quiz_launch_submitshould get executed.
Below are my 2 forms from rules.yml:
- rule: Activate form to fetch info which quiz to launch
steps:
- intent: show_quiz_info
- action: quiz_info_form
- active_loop: quiz_info_form
- rule: Submit form for which quiz to launch
condition:
- active_loop: quiz_info_form
steps:
# Form is deactivated
- action: quiz_info_form
- active_loop: null
- slot_was_set:
- requested_slot: null
# The actions we want to run when the form is submitted.
- action: action_quiz_info_submit
- rule: Activate Launch a quiz
condition:
- slot_was_set:
- quiz_launch: true
steps:
- action: action_quiz_info_submit
- action: quiz_launch_form
- active_loop: quiz_launch_form
- rule: Deactivate Launch the quiz
condition:
- active_loop: quiz_launch_form
steps:
# Form is deactivated
- action: quiz_launch_form
- active_loop: null
- slot_was_set:
- requested_slot: null
# The actions we want to run when the form is submitted.
- action: action_quiz_launch_submit
let me know if more info is required.
Looing eagerly for some quick help.
-irfan