I have two questions on how to use conversationFilters when execute the query below.
Can you give me some advices ,thank you !
/api/v2/analytics/conversations/details/query
Query for conversation details
①How to set the value of range in the filter?
■Developper tool Script
{
"interval": "2022-10-05T00:00:00.000Z/2022-10-12T12:00:00.000Z",
"conversationFilters": [{
"type": "or",
"predicates": [
{
"metric": "tFlowDisconnect",
"range":??? →I want to set here the value "Big than 0" ,but don't know how!
}
]
}
]
}
②Is it possible for me to get the data from the above query only contains the data of the paticipant I need? In other words,can I user filter to get the data as<■Data after filter>under below?
(My purpose is to filter the information of the people who disconnected the call during IVR.)
■Data before filter
{"conversations":[ {
"participants" [ {
"participantId" :"participantId1",
"metrics" [ {
"emitDate" : "2022-11-01T06:04:49.170Z",
"name" : "nConnected",
"value" : 1
}
]},
"participantId" :"participantId2",
"metrics" [ {
"emitDate" : "2022-11-01T06:04:49.170Z",
"name" : "tFlowDisconnect",
"value" : 1345
}
]}
]
}
]
■Data after filter
{"conversations":[ {
"participants" [ {
"participantId" :"participantId2",
"metrics" [ {
"emitDate" : "2022-11-01T06:04:49.170Z",
"name" : "tFlowDisconnect",
"value" : 1345
}
]}
]
}
]
Thank you !