Hi Nuttapong,
We use a custom data action to check the on-queue agent count and go from there. We're basically doing what is outlined here: How to find the number of agents logged in with a queue? - Data Actions - Genesys Cloud Developer Forum
Seems a bit complex for your goal of Agent > Supervisor > Leader. Why not just Skill agents 5/5, then supervisors 3/5, leader 1/5 and use best available skills routing on the queue? Then you'd only have one queue + an in-queue flow that offers callbacks after your desired hold time.
------------------------------
Caleb Smith
Interstate Gas Supply, Inc.
------------------------------
Original Message:
Sent: 11-30-2023 11:27
From: Nuttapong Limadisai
Subject: how to check agent available and transfer if agent not available
I want to check if an agent is available. If the agent is not available, check another group of agents. If none are available, play a waiting sound and create a callback.
#ArchitectureandDesign
#Implementation
------------------------------
Nuttapong Limadisai
G-Able Public Company Limited
------------------------------