Virtual agent not allowing new conversation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 05:45 AM - edited 06-16-2023 06:03 AM
I created custom LIVE AGENT and configured the Chat window connecting End Customer directly to the Live Agent while opening from the below community but I face the issue when End Customer requesting Live Agent where they are OFFLINE status then it is giving 'no agents available' message but it is not allowing to open New conversation instead the End Customer needs to refresh the whole page for that
https://www.servicenow.com.mcas.ms/community/virtual-agent-nlu-forum/how-do-i-bypass-disable-virtual...
@Community Alums
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2023 02:43 AM
@Community Alums @Mark Roethof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2023 06:35 PM - edited 06-18-2023 02:43 AM
For me I created a script variable called agent_online:
(function execute() {
if (vaSystem.isLiveAgentAvailable()) {
return true;
} else {
return false;
}
})()
Once that was created the items below will complete the process, but it sounds like your schedule on the Queue needs to be adjusted. From my experience unless I set the schedule for 24/7 I would have that experience. I think it is misleading that this is for the live agent while instead this is for the capabilities as a whole. That was also part of the reason for the second response.
(function execute() {
return vaVars.agent_online == true;
})()
(function execute() {
return vaVars.agent_online == false;
})()
(function execute() {
if(vaSystem.isLiveAgentAvailable()) {
vaSystem.connectToAgent();
}
})()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2023 02:07 AM
@Kri See above
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2023 02:45 AM
I tried your script but whenever no agents available and when I wants to start the new conversation I can't able to do it. It is getting greyed out. I don't have any integration for Live chat configured for my instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2023 02:49 AM
Right, it's because of your schedule. Set it to something that is 24/7 and willing to bet you it works. I also made an update to above about this but betting you read it first.