I want the chatbot to continue the conversation after the same user has closed and reopened the chatbot window within the session expiration time.
How do I retrieve the history of chat session to redisplay it and also set the conversation session to the point where the user has last left it at.
I could be wrong since I’m not that advanced with Rasa, but as far as I understand, the conversation is not gone before timeout even if you close the window. You can reuse the same sender_id and Rasa should pick up where it left (in the middle of a form, ect). You could add your own slot where you append the message history if you need to re-render it, but that sounds more like a frontend-related issue to approach.
Ah, cool! I’m not sure the entire history is stored inside the tracker though. I think what you’re looking for might be http://localhost:5005/conversations/{conversation_id}/story. This keeps hold of user utterances and replays everything as a story. I guess one issue here is that Rasa’s exact utterances may vary because it is able to choose one random uttrance among many available options.