Webchat version 2 End chat function

We are using webchat version 2 and would like for the chat to end automatically when the client logs out or gets timed out from the website.

From the link below we have added the following:

https://all.docs.genesys.com/WID/Current/SDK/WebChat-combined#endChat

onclick = "if (CXBus) { CXBus.command('WebChat.endChat'); }" }

We are now, however, getting what seems to be a bug, where if the chat is ended this way the user is repeatedly asked to resume the chat.
Selecting ‘No thanks’ closes the menu for the current page, but when the user navigates to a new url the message is repeated. does anyone know how to solve this?

It sounds like the widget may be retaining information about the chat after it should have disconnected. Please open a case with Genesys Cloud Care to investigate.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.