I have a form and I wanted to create a rule to allow user to exit it abruptly. I followed the example from rasa tutorials and created a rule
- rule: Interrupt form
condition:
- active_loop: catering_order
steps:
- intent: goodbye
- action: action_goodbye
- action: action_deactivate_loop
- active_loop: null
- slot_was_set:
- requested_slot: null
During testing, when I try to exit the form by saying “bye”, rasa correctly predicts the intent “goodbye”, but also states
2025-01-10 11:27:06 DEBUG rasa.engine.graph - Node ‘run_RulePolicy1’ running ‘RulePolicy.predict_action_probabilities’. 2025-01-10 11:27:06 DEBUG rasa.core.policies.rule_policy - [debug ] rule_policy.actions.find current_states= [state 1] user intent: create_order | previous action name: action_listen [state 2] user intent: create_order | previous action name: catering_order | active loop: {‘name’: ‘catering_order’} [state 3] user text: bye | previous action name: action_listen | active loop: {‘name’: ‘catering_order’} 2025-01-10 11:27:06 DEBUG rasa.core.policies.rule_policy - There is no applicable rule. 2025-01-10 11:27:06 DEBUG rasa.core.policies.rule_policy - Predicted loop ‘catering_order’.
So rasa just skips this rule and continues executing the form