I have a requirement to check if a user has left a conversation midway. If the user comes back again, the bot should retrieve the conversations that happened within the last 24 hours and then ask the user whether to continue from that point or it should start a fresh conversation.
I dug through the rasa code and my observations are as follows:
- An agent class object is created when the first message is sent by the user.
- This agent object invokes the
handle_messagemethod of the processor.
handle_messagemethod restores the tracker based on sender_id.
- During the restoration of the tracker, all the conversations are picked up from the tracker store.
Is there a way to pick conversations for the past 24 hours only instead of loading all the conversations in Rasa?