Hi, just to clarify, in your use case, are users sharing the same browser/computer? As in, one user visits the site and chats with the bot, then the next user sits down and uses the same computer and browser window? Because in that case, then it is indeed possible that the engine session and chat history persists for different users.
For your information, the chat history displayed in the chat UI and the session with the Teneo engine are treated slightly differently.
Teneo web chat stores the chat history in the session storage (in an object called
What you could consider is to force Teneo web chat to end the session as soon as the user clicks the close chat icon of the Teneo web chat. This will send a request to engine that tells it to end the session. To enable this, in the script that is used to embed the Teneo web chat window in the site, you should set the parameter
yes. You can find an example of the embed script here: https://www.teneo.ai/engine/channels/teneo-web-chat#update-pages.