[SalesForce] Is it possible to modify SFDC Live Agent waiting screen shown to User

In SFDC live Agent – Can we customize the window that customer sees during the time they wait to be connected to an Agent after they accept the chat ?

What we are trying to do is – show the customers their number in the queue while they wait to be connected to an agent.

Below is the Out of the box screen that we want to modify –

enter image description here

Best Answer

Yes, it is possible, you can do this by creating a custom chat window. This is explained in the Live Agent Developer guide, see the section title "Customize Chat Windows with Visualforce "

Here is a snippet from the code sample provided by Salesforce:

<liveAgent:clientchat >
<liveAgent:clientChatSaveButton label="Save Chat" />
<liveAgent:clientChatEndButton label="End Chat" />
<div id="prechatdata">
</div>
<div style="top: 5px; left: 5px; right: 5px; bottom: 5px;
position: absolute; z-index: 0;">
<liveAgent:clientChatAlertMessage />
<liveAgent:clientChatStatusMessage />
<table id="waitingMessage" cellpadding="0" cellspacing="0">
<tr>
<td>Please wait while you are connected to an available agent.</td>
</tr>
</table>
<div style="top: 0; right: 0; bottom: 41px; left: 0; padding: 0;
position: absolute; word-wrap: break-word; z-index: 0;">
<liveAgent:clientChatLog />
</div>
<div style="position: absolute; height: auto; right: 0; bottom: 0; left: 0;
margin-right: 67px;">
<liveagent:clientChatInput /><liveAgent:clientChatSendButton label="Send"/>
</div>
</div>
</liveAgent:clientchat>