Hello
I want to get total conversations count for a long period (over one month) for my application's dashboard.
I'm using /api/v2/analytics/conversations/aggregates/query endpoint for this with following query:
{
"filter":{
"type":"and",
"clauses":[
{
"type":"or",
"predicates":[
{
"dimension":"queueId",
"value":"4a9fdde5-38da-4916-9cd9-98cb4347aded"
}
]
},
{
"type":"or",
"predicates":[
{
"dimension":"mediaType",
"value":"email"
},
{
"dimension":"mediaType",
"value":"voice"
},
{
"dimension":"mediaType",
"value":"message"
}
]
}
]
},
"metrics":[
"nOffered",
],
"groupBy":[
"queueId"
],
"granularity":"P1D",
"interval":"2024-09-30T21:00:00.000Z/2024-11-01T21:00:00.000Z"
}
But when I adding filter by external tag then response is empy: {}
Filter by tag looks like:
{
"type":"or",
"predicates":[
{
"dimension":"externalTag",
"value":"AI"
}
]
}
Am I doing something wrong or it is impossible to filter conversations aggregates query by external tag?
Also, I'm successfully can filter by external tag with /api/v2/analytics/conversations/details/query, but I need analytics for period more than 1 month.
#Reporting/Analytics------------------------------
Sergey Dzyuba
------------------------------