Quantcast
Channel: LivePerson Connect : Popular Discussions - All Communities
Viewing all articles
Browse latest Browse all 2324

How can we get accurate agent availability using the JavaScript chat API?

$
0
0

We are using the JavaScript API for a chat window, and need to determine agent availability.

 

The overall functionality of this is working, such that we get the chat showing as available when agents are online in the console, and get the chat showing as offline when all agents are offline.

 

However, the problem we are getting is that if any agent is "Online" in the agent console, then the function chatAvailability() (used as the onAvailability callback) always returnstrue (i.e. agent available), even if each agent is already engaged in the maximum number of chats they are allowed to take (i.e. no agent is actually available for immediate chat).

 

We are using the function as per http://community.liveperson.com/docs/DOC-1045#_Toc250382053, and have used lpc.chatAvailability( {maxWaitTime:0} ); to require immediate availabililty.

 

We would have expected this to return "false" (=offline) in the situation that there is no agent who actually can take a chat right now, but that is not what is happening. However, setting this parameter is not making any difference: we only get false returned if every agent is actually offline.

Are there any other means by which we can determine whether an agent is truly available for immediate chat?

 

Thanks!


Viewing all articles
Browse latest Browse all 2324

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>