I'm trying to create a query to get the count of agents in queue with a specific language I have at the moment.
I need it to use when I open a chat to check if there is any agent with the specific language in queue, to if not I'll send a message to send an email to us.
You can set the expand value to routingStatus. The routingStatus will have possible values of OFF_QUEUE, IDLE, INTERACTING, NOT_RESPONDING, COMMUNICATING.