Minimize Chat Window

Is there a way we can minimize chat window if user doesn’t engage with Bot in a specified time(like 30 seconds)

You will need a custom solution.
Hope this helps.


Refer to minimizeMode:false in https://github.com/Koredotcom/web-kore-sdk/blob/master/UI/kore-config.js

@swagata.sengupta is it possible to have some inactivity logic setup in the websdk?

@piyush.misra With a custom solution, it may be possible. But what exactly are you looking at?
You can tap into bot_response occurrences in UI-JAVASCRIPT/chatWindow.js and UI/chatWindow.js
However, now there is an inbuilt mechanism to track inactivity at bot level. https://developer.kore.ai/docs/bots/bot-settings/bot-sessions/#Manage_Sessions Does this help?

@swagata.sengupta the bot we are looking at is still hosted on v7. Issue was if user leaves chatwindow open on browser it seems to restart the session and display welcome message after some period of time. So was wondering if we could add something to the sdk that closes the window and ends the session. noticed there is a set timeout function in chatWindow.js that might be able to be used. Wanted to make sure this was a good practice

Hello @piyush.misra ,

While we do not recommend manual changes to the existing function, you can write a code to trigger chatwindow closure upon session timeout. Below community post is helpful.