Hi Mal
Probably one of those questions better over in the developer centre but:
You can replicate this function using /api/v2/analytics/queues/observations/query in your Data Action but you'll need to modify your response to grab out just the NOT_RESPONDING count. You'll also have to move your query from the URL string parameters into the body as this is a POST which means it will need the clause\predicate syntax.
Response would be set in your Data Action something like:
{
"translationMap": {
"notresponding_agents_array": "$.results[0].data[?(@.qualifier == 'NOT_RESPONDING')].stats.count"
},
"translationMapDefaults": {
"notresponding_agents_array": "[]"
},
"successTemplate": "{\"notresponding_agents\": \"${successTemplateUtils.firstFromArray(\"${notresponding_agents_array}\",\"0\")}\" }"
}
I do something similar to check IDLE + INTERACTING and if <1 treat it as though it's an emergency which works fine for this customer.
------------------------------
Vaun McCarthy
NTT New Zealand Limited
------------------------------
Original Message:
Sent: 04-14-2021 04:31
From: Malcolm Green
Subject: Is 'Not Responding' State considered 'Off Queue'?
Hi Vaun -
Our thoughts are that the No Agent check requires less / no intervention (read 'automated'), although the Emergency Group would also work onc activated.
One of our team noted that the 'users' end-point in the above API call is deprecated, and the replacement ('members') may not have the same functionality, so our solution may have a limited life :/
Cheers,
Mal.
------------------------------
Thanks and regards,
Malcolm Green
Nexon Asia Pacific
------------------------------
Original Message:
Sent: 04-14-2021 04:12
From: Vaun McCarthy
Subject: Is 'Not Responding' State considered 'Off Queue'?
Hi Malcolm
You mention checking the agents on queue state at each loop of the in-queue flow. In the scenario of a fire alarm, is the emergency group being activated too, and are you also checking for that each loop?
------------------------------
Vaun McCarthy
NTT New Zealand Limited
Original Message:
Sent: 04-14-2021 02:04
From: Malcolm Green
Subject: Is 'Not Responding' State considered 'Off Queue'?
Hi again ...
Have been playing around with some options and come up with a potential solution ...
Data Action Name = Get Number Agents On Queue
API Call = /api/v2/routing/queues/${input.PureCloudQueueID}/users?presence=ON%20QUEUE&joined=true
Output = Task.intNumberAgentsOnQueue
Data Action Name = Get Number Agents Not Responding
API Call = /api/v2/routing/queues/${input.PureCloudQueueID}/users?routingStatus=NOT_RESPONDING&joined=true
Output = Task.intNumberAgentsNotResponding
The if 'On Queue' - 'Not Responding' < 1, take the alternate Flow path.
(Note: I thought about adding the outputs of multiple 'RoutingStatus' calls, but the solution above looks a bit cleaner)
Any better ideas?
Cheers,
Mal.
------------------------------
Thanks and regards,
Malcolm Green
Nexon Asia Pacific