How to get Sender_id

tracker = tracker.current_state()[‘sender_id’] File “/home/ll/.local/lib/python2.7/site-packages/rasa_core_sdk/init.py”, line 66, in current_state latest_event_time = self.events[-1].timestamp AttributeError: ‘dict’ object has no attribute ‘timestamp’

Is my code wrong?

sender_id = tracker.current_state()[‘sender_id’] is fine if you are looking for sender_id

1 Like

how to get sender id and store into the database?

Can you please provide the full code to provide in actions.py file, to get sender id, and do we need to take that as a slot?