Live Agent

ritu_saluja
Tera Expert

Even when the Live Agent are available virtual agent is not routing to a proper queue and showing no agents available message. Please help me on this

1 ACCEPTED SOLUTION

SANDEEP28
Mega Sage

@ritu_saluja Create flow as below

 

SANDEEP28_0-1692778521448.png

 

 

Select chat queue --> 

SANDEEP28_1-1692778595119.png

 

Set queue name -->  put below script in below actual expression

 

(function execute() {
    if (vaInputs.select_chat_queue == "Payroll Case")
      vaVars.LiveAgent_queue = 'HR Payroll Chat';

    if (vaInputs.select_chat_queue == "Lifecycle Events")
      vaVars.LiveAgent_queue = 'HR Lifecycle Events Chat';

    if (vaInputs.select_chat_queue == "Talent Management")
      vaVars.LiveAgent_queue = 'HR Talent Management Chat';

    if (vaInputs.select_chat_queue == "Total Rewards")
       vaVars.LiveAgent_queue = 'HR Total Rewards Chat';

       gs.info('value of queue is '+vaVars.LiveAgent_queue);
  
})()

 

Connect to Agent --> put below script in below actual expression

(function execute() {
   vaSystem.connectToAgent();
})()

 

Also in the condition, you need click on on "Show Related Fields" --> Go to Context --> Interaction context fields and then select "queue". Put the chat queue name as value.

 

Do this for all chat queues

 

SANDEEP28_2-1692779003518.png

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !! 

 

View solution in original post

23 REPLIES 23

SANDEEP28
Mega Sage

@ritu_saluja Can you send your topic flow xml or screenshot here?

Hello,

I have attached the xml of the topic flow.

Also attaching queues screenshots

ritu_saluja_0-1692622843794.pngritu_saluja_1-1692622865833.pngritu_saluja_2-1692622892360.png

 

ritu_saluja_3-1692622913340.png

 

 

@SANDEEP28 @Arpan Baishya  

please help me on this

SANDEEP28
Mega Sage

@ritu_saluja I am not able to load this xml in my PDI. I found out one article which will help you. 

 

https://www.servicenow.com/community/virtual-agent-nlu-articles/va-live-agent-support-topic-with-mul...

 

Can you share script which you have wrote in topic flow ? Also have you added assignment group mapping in queue under related list ?

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !! 

Hello @SANDEEP28 

please find the screenshot attached

 

ritu_saluja_0-1692767075205.pngritu_saluja_1-1692767110306.png

HR Global

ritu_saluja_2-1692767207374.png

 

Payroll EMEA

ritu_saluja_3-1692767246169.png

 

Payroll AMER

ritu_saluja_4-1692767288071.png

 

Payroll APJ

ritu_saluja_5-1692767324685.png

is live agent available

ritu_saluja_7-1692767490876.png

 

Queues :-

ritu_saluja_6-1692767422788.png

ritu_saluja_8-1692767573157.png

 

ritu_saluja_9-1692767616041.png

 

ritu_saluja_10-1692767643426.png