How to check requested slot of form in action file?

Hello there, is there any way by which we can know the requested slot of form in action file of rasa?

Of course you can access the value of the slots from the custom actions. To do this you must call the tracker method get_slot, as follows: tracker.get_slot("slot_name")

To get the value of a Slot:

To set the value of a Slot you must use the SlotSet Event:

image

In case you have any doubt, the following video shows in detail how to work with Slots inside the Custom Actions, how to obtain and set the value of these…

I hope it helps you

EDIT :

I may have misunderstood your question. If what you want is to know which has been the last slot modified from a form, what you can do is to create a new Slot that will be dedicated to store the name of the modified slot.

To do this, every time you call a form, you must then call a Custom Action, different for each form, which will set the value of that Slot with SlotSet. And when you need it you can get the value of that Slot with tracker.get_slot.