What does slot_was_set: a_slot: null mean?

In stories or rules, when you do:

- action: some_action
- slot_was_set:
   - whatever_slot: null

Does that mean?

  • the action changed the slot value to null
  • the action did not change the slot value
  • the current state of the slot is null, regardless of what happened with action

Or some combination of these? This is really vague for me, and I couldn’t find an explanation in the documentation.

After an action, it means the slot was probably set to null (or None in a Custom Action) - your first point.

Before an action, it means the value of that slow is null - your third point.

Generally, it means the value is null at that point.

Thanks for the answer!

What do you mean by “probably”? Even if the action doesn’t actively set it as null, can I use it as a condition to be satisfied before going to the next step? Or for this rule to be activated, the said action should have set the value as null?

@doguaraci if the slot_was_set has some value then it will process that slot value for your custom action which you have defined and use in in the next action if you are using.

I mean that as humans, when we see that, we should deduce that it was probably the case.

Yes