How to check Live agent available for a particular queue

ritu_saluja
Tera Expert

How to check Live agent available for a particular queue

If available I want to show them static choices to 1. raise a new question 2. Create HR Request 3. Chat with Live agent and if not available I want to exclude chat with Live agent choice

 

How can we do that

1 REPLY 1

Lynda1
Kilo Sage

We set the queue first

(function execute() {
vaVars.LiveAgent_application = 'hrsd';
})()
hrsd is our HR live chat queue
 
Then in the transfer block, we check the queue that was set (above)
 
(function execute() {
vaVars.availability_live = vaSystem.isLiveAgentAvailable();
})()
 
have a decision right after
 
This is if live chat is available
(function execute() {
if(vaVars.availability_live == true){
return true;
}
 
})()
 
If live chat is NOT available, we then offer to create a case
 
(function execute() {
if(vaVars.availability_live == false){
return true;
}
 
})()