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

Community Alums
Not applicable

Hi @Kri ,

 

Before transferring to the Agent, use the following piece of code to check, if the live agents are available or not. Then, use decision utility to transfer the chat to live chat if the agents are available.

 

(function execute() {
var flag = 0;
  if (vaSystem.isLiveAgentAvailable()) {
    flag =1;
  } else {
    flag =0;
  }
})()

 

Please mark this comment as Correct/Helpful if it helped you.

 

Cheers,

Hardit Singh 

I tried the same but it still greyed out

Krishna124_0-1686922153999.png

 

Community Alums
Not applicable

Can you share the screeshot of the chat when it ends this topic?

 Also share screenshot of this workflow.

Please find the screenshot. I have a query do I need to publish the Workflow everytime I do the change?

Krishna124_2-1686924542296.png

 



 

 

Krishna124_1-1686924452938.png