+ Start a Discussion
brunodbrunod 

Live Agent - Queue Position

Good Morning,

 

I create a custom page for the client access the live agent, I'm trying to show the position in the queue for the client without success for now

Anyone have any examples of code where the queue position is presented to th client?

 

Thank you for helping.

Bruno 

julieboncourjulieboncour

Hi,

 

To display the position in the queue to the customer you need to add <liveAgent:clientChatQueuePosition /> into your custom chat window visualforce page.

Here is an exemple:

<apex:page showHeader="false">
  <liveAgent:clientchat >  

    <liveAgent:clientChatMessages />  

    <div id="waitingMessage" class="modal"> 
       <em>You are now being connected to an agent.</em> 

<!-- Display the customer position in the queue -->
<liveAgent:clientChatQueuePosition /> </div> <div id="chatControls" class="pod"> <liveAgent:clientChatEndButton label="End Chat" /> </div> <liveAgent:clientChatLog /> <div id="chatInput" class="pod"> <liveagent:clientChatInput /> <liveAgent:clientChatSendButton label="Send"/> </div> </liveAgent:clientchat> <script type="text/javascript"> document.title = "My Custom Live Chat Window"; </script> </apex:page>

.

It only display a value if all the agent are at capacity, if all the agent are busy, otherwise it didn't display any value.