Virtual agent not allowing new conversation

Kri
Tera Guru

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 

43 REPLIES 43

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

LinkedIn

I changed the script into ==  and also published now I'm getting the below output

Krishna124_0-1686928179263.png

 

 

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?

 

2.png

 

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

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.';     
}   
})()

Krishna124_0-1687013246796.png

 

 

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

LinkedIn