Session close in Kore.ai

Hi Team I am facing some issue while displaying message of inactive session.
My requirement is if task is completed successfully and bot is not expecting any input from the user … it should not display any session closing message to end user.
But if bot is expecting some input from the user and user is inactive, then only bot should display session closing message to user.
I tried some java script to customize the response but it is not working.
Please help

Hi Team ,

Please help !

It’s very urgent

@ruchi2912

If you enable conversation session closure, it cannot be selectively done based on condition. It will be triggered based on time-out.

You can however suppress the message from botkit (we will let you decide the logic) using skipUserMessage. You can tap the message from bot under on_bot_message when and use skipUserMessage based on the condition you want to implement this for.