A few weeks ago I solved this problem.
Although the first rule (Greet The User and Activate cnpj form) does not have an execution restriction related to the user_was_greeted slot, it will only be executed by the bot if the slot has the value false. This is because the Just Greet The User Again rule will only be executed if the user_was_greeted slot has the value true, and Rasa executes the rule with the more specific condition in cases of ‘conflict’.
My rule
rules:
- rule: Greet The User and Activate cnpj form
steps:
- intent: greet
- action: greet_the_user
- action: action_help_with_features # user_was_greeted slot is set to true here
- action: cnpj_form
- active_loop: cnpj_form
- rule: Just Greet The User Again
condition:
- slot_was_set:
- user_was_greeted: true
steps:
- intent: greet
- action: utter_greet_again
# OTHER RULES
...
I hope this helps you!