I want to design a response if fallback action is triggered more than twice in a row. Is there a way to do this rasa?
How can I keep track of actions for particular sender_id?
I want to design a response if fallback action is triggered more than twice in a row. Is there a way to do this rasa?
How can I keep track of actions for particular sender_id?
Yes. You just need to count, whatever you like. I did this for example by scanning through the last events. Another possibility could be a counter in a slot.
I tried to keep track of events using tracker.last_executed_action_has(ACTION_NAME)
but it’s giving an error AttributeError: 'TRACKER' object has no attribute 'last_executed_action_has'
You should get a meaningful list of events from tracker.events_after_latest_restart()