botman / web-widget

MIT License
37 stars 68 forks source link

Possibility of persisting the chat history while browsing between different pages #48

Open salgua opened 4 years ago

salgua commented 4 years ago

Hi, using botmanWidget.userId I can associate application user within the chatbot keeping the current conversation while browsing between different pages, but it would be nice also to keep the chat history. Is there a way to do it?

luizjr commented 4 years ago

I need this feature too

EranGrin commented 2 months ago

The Chat history only exists on the client side, the feature is quite complex as one would need to keep the state of the conversation on the server side and then push the changes to all the active clients, you might be able to use the existing window.botmanChatWidget API to readd the conversation.... but all of this seems like an overkill work