We have a requirement where close icon will be provided in chat bot header, on click close icon the current chat interaction should be resolved and the bot window to be minimized. Again when we click on chat bubble a new interaction to be started with fresh conversation. We are showing Chatbot in website using Mashup.
We tried to use the same logic used on reset link provided in console, but the chat bot finally rendered in website there this reset logic was not working as expected on browser refresh again the conversation history and some work object is loaded.
Any inputs to fulfill above requirement.
***Edited by Moderator Marissa to update Support Case Details***
Thanks Vikas for inputs.
I did the same resolving all interactions and clearing Session variables like BotStarted and AssignmentKey. But again when we click on chat bubble there is no new case creation happens and on refresh of Browser I see the old interaction gets loaded with Session values as well.
Posted: 2 weeks ago
Posted: 2 Sep 2021 10:39 EDT
Amit Patel (Amit_Patel)
Director, Customer Service Engineering
@SSrinivas If you want to override the minimize button to completely clear the session, you will need to do some additional work. The key step will be to invoke the logoff action like shown below. Typically the minimize action will throw a postmessage to the desktop, which will process the action. You can use same action and update the minimizeAdvisor function to do the few other actions shown below.
/* Following lines may be needed depending on the version */