Hello,
I’m currently facing an issue with some of my Rasa rules. While some of them work perfectly, I’m having trouble with a specific rule not being triggered as expected.
Here’s the structure of my stories and rule (anonymized for the sake of this discussion):
- story: Account Creation - Role A
steps:
- intent: create_account
- action: utter_ask_account_type
- intent: inform
entities:
- type_account: "Role A"
- checkpoint: role_A_checkpoint
- story: Role A - Has registration number
steps:
- checkpoint: role_A_checkpoint
- action: utter_ask_if_user_has_registration_number
- intent: affirm
entities:
- has_registration_number: true
- rule: Create Role A account procedures
condition:
- slot_was_set:
- type_account: "Role A"
- slot_was_set:
- has_registration_number: true
steps:
- action: utter_procedure_title_create_account
- action: utter_procedure_create_account_role_A_1
- action: utter_procedure_create_account_role_A_2
- action: utter_procedure_create_account_role_A_3
- action: utter_procedure_create_account_role_A_4
- action: utter_procedure_create_account_role_A_5
- action: utter_ending_conversation
What I expect to happen is that, at the end of the story (once the two slots have been set with the correct values), the rule “Create Role A account procedures” should be triggered. However, from what I see in the logs, the slots are indeed set to the correct values, but the bot doesn’t seem to recognize the matching rule. Instead, it triggers the action_listen
action.
I’m using a categorical slot type because I have three similar types.
Any help would be greatly appreciated as I’m not sure what I might be doing wrong here. Thanks in advance!
Best