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

Arpan Baishya
Kilo Sage

Hi @ritu_saluja,

 

A good place to start troubleshooting the issue would be to open the list of Interaction [table name - interaction] records. You could gather something useful there and then, work your way back to the conditions that you may have set on the Service Channel and Queue records.

ritu_saluja
Tera Expert

Hello @Arpan Baishya,

Interactions are getting created for them but there are no work items for them.

Also interactions are in close complete state and in chat service channel the condition is that the interaction record state should be new, work in progress or on hold.

ritu_saluja_0-1692277250326.png

 

 

How is the Virtual Agent determining the handover to the Live Agent? Is it based on a condition on the Queue record?

From my experience, it's always a good idea to set up clear, non-ambiguous routing conditions so that Virtual Agent knows exactly which group to route to. This is especially important when we are dealing with multiple queues and assignment groups under the same Service Channel.

Hello there are 4 different choices so I want to route to 4 different queues according to the choices made. so sometime it is routing correctly other times it is not routing even when the agents are available.

ritu_saluja_0-1692278827714.pngritu_saluja_1-1692278853429.pngritu_saluja_2-1692278884708.png

 

ritu_saluja_3-1692278907826.png