Skip to content
This repository was archived by the owner on Jul 14, 2021. It is now read-only.

Do not delete session history when reloading page #131

Open
khalo-sa opened this issue May 14, 2020 · 2 comments
Open

Do not delete session history when reloading page #131

khalo-sa opened this issue May 14, 2020 · 2 comments

Comments

@khalo-sa
Copy link

Hi,

is it possible to keep the chat history of a session visible after a page reload?
In my case, the chat window becomes completely blank if I had a conversation with the bot, and then reload the page.

Thank you!

@hotzenklotz
Copy link
Member

hotzenklotz commented May 26, 2020

No, unfortunately session recovery is not yet implemented in the Chatroom. It can be done though, using the Rasa Tracker API . See https://rasa.com/docs/rasa/api/http-api/#operation/getConversationTracker

The chat history is not available as part of the regular Rasa REST channel and therefore we can not easily recover the session. However, it is possible to fetch the tracker for a conversation and restore the history from the events. This requires some more effort though. See the API above.

@digitalWestie
Copy link

digitalWestie commented Oct 15, 2020

Hey, I just submitted a PR for this, but my fork is based off @RasaHQ's fork.

Still, it might be helpful: RasaHQ#2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants