Probably a silly question. I have this code in my custom action:
# city slot equals "Berlin"
SlotSet("city", None)
print(tracker.slots["city"]) # outputs Berlin
I also tried:
tracker.slots["city"] = None
print(tracker.slots["city"]) # outputs none but it is actually not none in rasa
Finally, i tried AllSlotsReset() and this did also not work.
My expected behaviour is that the slot is resetted. This is not the case and my form just keeps remembering it. What am I doing wrong here? I want the slot to be resetted so that the form can start requesting all variables from the user.
Add the action name in your domain file and your stories when u need to reset the value.
You can also print slot value using the below command:
email=tracker.get_slot(“email”)
print(email).
Yup, key thing to understand here is that events are only applied when they are returned by the custom action, not if they are called elsewhere in the action code.