Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Chat idle time - Automatic Inactivity Handling for Virtual Agent (Not Live Agent)

AvinashA
Tera Contributor

 

I have a requirement for the Virtual Agent (chatbot) in ServiceNow.

  • If the user is idle for 3 minutes, the Virtual Agent should send a message: "Are you still there?"

  • If there is no user response after another 3 minutes, the bot should send a second reminder.

  • If there is still no response after a total of 9 minutes, the chat session should be automatically aborted/ended.

Note: This functionality should apply only to the Virtual Agent, not to Live Agent (human-assisted chat).

2 REPLIES 2

Muralidharan BS
Mega Sage

It requires an additional scheduled job and appropriate value for 

com.glide.cs.start_idle_timeout_after_agent_response
 
create a scheduled job, and add include two logics,
1. in the table - sys_cs_session_binding, set the sent_reminder to false
2. new global.IdleChatHandler().process(*add 360 sec*,idle_cancel_timeout, start_timer_on_agent_message);
 
you can refer the OOB job - Idle Chat Timer Task for cancel timeout and agent msg. 
 
result
MuralidharanBS_0-1749061927520.png

 

sarkars
Tera Contributor

@Muralidharan BS  - This will work only for agent chat, Right? We have a requirement for BOT chat, During Bot chat if user inactive bot will remind 3 time then close the chat. Thanks