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

Hey,

Thank you for sharing the screenshots. So, referring back to what I said in my first comment, you can open the list of Interactions, personalize the list view by adding the Context column, and then open it to see whether the value for 'application' is getting set or not.

You may also want to go through the History of an Interaction record in the Calendar style (see below screenshot).

ArpanBaishya_0-1692280450725.png

 

It would give you a timeline of all activities and changes that have taken place since the beginning. 

Compare two Interaction records (one that has worked and one that hasn't) in this manner.
 
Hope this helps you.

Hello @Arpan Baishya,

I have 2 queries

1) Work item is triggering for some of the interactions but even if I am choosing different choice and made available the agent of that queue it is still routing to the previous selected queue and not to the correct one.

ritu_saluja_0-1692338151276.png

 

Like in the screenshot attached  the accepted one is routing to correct queue but the pending accept and rejected one are displaying wrong queue entry as I have selected different choice

 

2) Work items are not triggering for other interactions as in my service channel - chat there is a utilization condition that if state of interaction is close complete or close skip it will not get created and for some of the interactions even if the live agent is available there are not routing, instead it is showing no agent available message. Also, interaction record is getting created with state closed complete and no work items are there. 

ritu_saluja_0-1692342424902.png

ritu_saluja_1-1692342457051.png

 

ritu_saluja
Tera Expert

@Arpan Baishya ,

Now Work item is triggering for all the interactions but even if I am choosing different choice and made available the agent of that queue it is still routing to the previous selected queue and not to the correct one.

ritu_saluja_0-1692338151276.png

 

Like in the screenshot attached  the accepted one is routing to correct queue but the pending accept and rejected one are displaying wrong queue entry as I have selected different choice

ritu_saluja
Tera Expert

Hello,

Please help me on this

I am selecting different choices and hence it should go to different queue but still it is choosing same queue for all 4 different choices

 

ritu_saluja_0-1692619083734.png

 

SANDEEP28
Mega Sage

@ritu_saluja are you trying to send chat request to specific queue based on the choices user select on in the topic flow ?