Help with vaSystem.isLiveAgentAvailable() - it is not returning the correct result

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2023 11:55 AM
Hello! I am hoping someone can help me out with this issue. My current version is Utah and I am trying to figure out why the vaSystem.isLiveAgentAvailable() method is returning 'true' when there are no live agents connected. I have tested this in the designer and it gives me the correct result of 'false' but when I test it in a published topic, it tells me that there are agents I can chat with and when i click to be transferred, then it says there are no live agents available. I am confused and not sure what to do to fix it.
(function execute() {
//get live agent result
if (vaSystem.isLiveAgentAvailable()) {
vaVars.agentAvailable = 'true';
//get avg wait time for queue
var avgWait = new GlideRecord('awa_queue');
if(avgWait.get('609ff3561b49e050306b55392a4bcbba')){
vaVars.waitingTime = avgWait.average_wait_time.getDisplayValue();
}
}
else {
vaVars.agentAvailable = 'false';
}
})();
Is anyone experiencing the same thing? Any suggestions of what i can do?
Thank you,
Yen

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 02:06 PM
Yes, definitely odd. I think i'm going to have to open a HI ticket and see what they tell me. I'll try a few more things and see where i get.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 02:36 PM
You have piqued my curiosity, let me know what the resolution is.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2023 09:30 AM
Hey @YenGar , is the HI support resolved your question?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 12:01 AM
Could this be explained if vaSystem.isLiveAgentAvailable() checks the schedule for the queue and not actually the presence state of the agents that are members of the queue?
So in theory, your queue could be 'available' and then when you actually try to connect to a person you get the message that no-one is online?