Hi Nathan,
You can use following API /api/v2/analytics/conversations/details/query. In the payload (sample date in the query is for today, Feb 27th):
{
"interval": "2023-02-27T05:00:00.000Z/2023-02-28T05:00:00.000Z",
"order": "asc",
"orderBy": "conversationStart",
"paging": {
"pageSize": 25,
"pageNumber": 1
},
"segmentFilters": [
{
"type": "or",
"predicates": [
{
"type": "dimension",
"dimension": "ani",
"operator": "matches",
"value": "+1PHONE_NUMBER"
}
]
}
]
}
From the response, extract the attribute "totalHits"
------------------------------
TatjanaKnezevic
www.startelecom.cloudhttps://www.linkedin.com/company/star-telecom-www-startelecom-ca-/------------------------------
Original Message:
Sent: 02-27-2023 09:46
From: Nathan Smith
Subject: Counting the number of callers
Can someone think of a way you could display, in an Agent Script, the number of calls received from an ANI that day?
What would it take to be able to grab the ANI, then search for other calls that day under the ANI, then count and display how many times that happened?
#ArchitectureandDesign
------------------------------
Nathan Smith
ConvergeOne
------------------------------