What I want to achieve is to reset session of Microsoft chatbot once the user is idle for 5 minutes and the message the user that he/she is idle for 5 minutes so the session is expired.
I used javascript to render the web chat in frontend of the website.
I implemented the code below but it doesn't work on my end.
Set Timer Using Microsoft Bot Framework
window.WebChat.renderWebChat(
{
directLine: window.WebChat.createDirectLine({
token: token
}),
store,
styleOptions: {
}
},
document.getElementById('webchat')
)