How to check Live agent available for a particular queue
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 03:57 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 12:08 PM
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;
}
})()