Reading Tracker data in Custom Channel (Rasa 3.X)

Hello,

I am creating a new custom rest channel for my chatbot.

I am wondering how I can access the tracker data inside my custom channel as I need to add extra information to my response.

After some research, I found some forums mentioning using request.app.agent.tracker_store.get_or_create_tracker(sender_id)

However, in version 3.X this is not working!

Could anyone please advise on this?

It’s generally not recommended to do it that way. Can you add it on the front end in metadata? Then access it from action_session_start or a custom action.