Basil Woods
Basil Woods

Reputation: 3

IBM Watson Assistant Web Chat not keeping session state when navigating through my website

I am trying to set up IBM Watson Assistant Web Chat and from the documentation, it seems pretty simple (just do the config and copy and paste the embed code) https://cloud.ibm.com/docs/assistant?topic=assistant-deploy-web-chat

However, I have found that when I paste this onto my website, navigating to a different page or reloading will just refresh the session. This is not what I want as I want the session to continue off from where it was in the chat (and for all this to be displayed in the window). I have tried looking through the detailed documentation as well, but there doesn't seem to be what I'm looking for: https://web-chat.global.assistant.watson.cloud.ibm.com/docs.html?to=

I have also tried passing in the userid but still on navigation the chat refreshes.

Does anyone know if there's a way to solve this? I really need a solution since the same problem occurs on the live chat integration I have set up with salesforce.

Thanks, in advance

Upvotes: 0

Views: 366

Answers (2)

Damon
Damon

Reputation: 31

Someone pinged me about this and I wanted to provide a more up-to-date answer. The IBM watsonx web chat will automatically remember the user's conversation history for the life of the browser tab/window and up to the session inactivity timeout that is configured in the assistant. If the user reloads the page, navigates to another page and back or if they navigate to another page in the same app that also has web chat, the conversation should still be present. No extra work should be required.

But if the user opens a new tab or window that has web chat on it, that new tab will not have the previous conversation.

Upvotes: 0

Dudi
Dudi

Reputation: 2430

A feature update to support session history is coming soon.

Upvotes: 0

Related Questions