RASA Actions


I am pretty new to RASA and currently following the tutorials. I was wondering, is it possible to pass variables from an action to another ?

Hey @Hassan, welcome to the community! The suggested way to pass variables from one action to another is by storing them in slots. Slots are basically your bot’s memory where you can store things to use in later parts of the conversation. So in one action, you can store the information:

return [SlotSet("slot_name", value)]

and then in another action, you can retreive this value:

value = tracker.get_slot("slot_name")

Hello @erohmensing,

Thank you verry much !

1 Like