Count the number of Idle agents of a queue taking account the Agent capacity ( Utilization ) by using a Data Action

Hello,

We want to get the number of IDLE Agents of a queue but taking account the capacity of agents ( Utilization ) using Genesys Cloud API.

Have you an idea please ?

Exemple :

Queue1 has one agent with utilization capacity to 3.

Agent is on interacting status with one interaction.

We want to get API result : 2 ( 2 = 3 -1 ) and not 0 ( Nb IDLE agent : 0 ).

Thank you for your help.

Best regards

Hi @SAMY
First off, here's a past thread that addresses getting the number of Idle agents using a data action:

As for accounting for utilization capacity, it's unclear if this is possible based on these threads which nonetheless provide some helpful information:

However, there are API resources that give agent utilization settings which you may be able to leverage with a data action in conjunction with the GET /api/v2/routing/queues/{queueId}:
GET /api/v2/routing/utilization
GET /api/v2/routing/users/{userId}/utilization

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.