Continue where you left off

Greetings

I want to know how to reset the chat or navigate the user to the main menu of the chat when the user refresh the page or open the website again where the chatbot is published, is there a trigger to direct the user to the chat’s first question when the user refreshes the page or visit the site again?

1 Like

Hi,

We have just added new functionality in our Javascript developer API that allows you to clear chat history whenever you need.

Have a look at https://developers.collect.chat/#/actions?id=collectchatclear

Adding the following code along with your widget code can solve your issue.

var collectchat = collectchat || {}; 
collectchat.ready = function() {
    collectchat.clear();
}

By the way, I am curious about your use-case. Why you don’t want the user to continue where they left off. Isn’t history an expected feature in chat conversations?

Cheers,
Shyjal

2 Likes