Chitchat or rules not working after a slot was set

Hi there Julia! I’m having the same problem with my rules after a slot was set. Did you understand why this is happening? Checking the debug logs, it seems that there is no rule to apply (I didn’t figure out why it don’t find the right rule only after the slot was set).

For me, the solution was to duplicate rules by adding a condition statement with the two options of the boolean slot:

- rule: rule greet 1
  condition:
  - slot_was_set:
    - my_bool_slot: true
  steps:
  - intent: greet
  - action: utter_greet

- rule: rule greet 2
  condition:
  - slot_was_set:
    - my_bool_slot: false
  steps:
  - intent: greet
  - action: utter_greet

Adding the rules to the stories works fine too. I would like to understand why this is happening though.

I’m using rasa 2.8 and the default policies pipeline.

Thanks!

1 Like