New Chat Widget Customisations
How can i clear the chat history when the chat is closed and revisited ?
Hi @pius
Thanks for reaching out!
Could clarify your use-case in a bit more detail? I.e are you wanting to clear the chat history when the widget is closed, or when the chat session is ended completely?
Look forward to hearing from you!
Tipene
Yes thanks for reaching out @tipene
i want to clear the chat or cache when the user session has ended. i.e When the use logs out of the application.
zE("webWidget:on", "chat:end", () => { zE("webWidget", "logout"); });
@tipeneHow can `clear the chat history` in a meaning that new conversation will be new ticket in Zendesk, and not added to the one was closed? P.S We use messaging channel, not the live chat APIBut, i clound't find functionality for webWidget that exist in Web Widget (Classic) as:
But, i clound't find functionality for webWidget that exist in Web Widget (Classic) as:
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.
Something like this might be what you're looking for:
This will clear the user session when the chat has been ended. Here's a couple of links which go in to a bit more detail:
- Logout
- onChat:end
I hope this helps! Feel free to reach out with any questions.Tipene