Hi Sharadkumar,
you will have to create a data action that is using POST /api/v2/analytics/queues/observations/query . After that you can use this data action in Architect to get the number of waiting customers. Then a switch- / a descion-block should do the job.
Best regards
Christoph
Body for request:
{
"filter": {
"type": "and",
"clauses": [
{
"type": "and",
"predicates": [
{
"type": "dimension",
"dimension": "queueId",
"operator": "matches",
"value": "${input.queueID}"
},
{
"type": "dimension",
"dimension": "mediaType",
"operator": "matches",
"value": "voice"
}
]
}
]
},
"metrics": [
"oWaiting"
]
}
------------------------------
Christoph Domaschke
CRONBANK AG
------------------------------