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-16-2023 08:03 AM
And third screenshot obviously same scripting mistake you made.
Kind regards,
Mark
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 08:09 AM
I changed the script into == and also published now I'm getting the below output

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2023 07:35 AM
Hi there,
If your setup is similar to what I shared in your previous posts, it should be able to work. I just created it on my PDI (I don't have a customer with this at the moment), and after setting the Queue it works immediately.
Is your Queue correct?
Kind regards,
Mark
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2023 07:47 AM
I don't think it is issue with the Queue because when I write the script vaSystem.connectToAgent(); it is connecting but when I add the below script it is not working and getting only Thanks you for using our Support chat message whenever opens the Chat window
(function execute() {
if(vaSystem.isLiveAgentAvailable()) {
vaSystem.connectToAgent(); }
else {
return 'Live agent is not currently available. Please check back later.';
}
})()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2023 08:06 AM
Have to think about this. Because the scripting I shared earlier works fine, tested it today.
You did apply it in a different way, don't know if that's the issue.
Kind regards,
Mark
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field