I am trying to get a list of customer topics by conversation id within a certain date interval. In this example, i am using a specific conversation id for trouble shooting purposes. Ideally, it would return a list of conversation ids and the customer topics for each conversation. This is the closest I have gotten which returns the topics from the entire interaction including the customer topics.
{
"pageSize": 25,
"pageNumber": 1,
"types": [
"transcripts"
],
"returnFields": [
"conversationId",
"topic"
],
"query": [
{
"type": "EXACT",
"fields": [
"language"
],
"value": "en-us"
},
{
"type": "EXACT",
"fields": [
"mediaType"
],
"value": "call"
},
{
"type": "EXACT",
"fields": [
"topic"
],
"values": [
"Payment Plan"
]
},
{
"type": "DATE_RANGE",
"fields": [
"conversationStartTime"
],
"startValue": "2023-10-02T00:00:00.000Z",
"endValue": "2023-10-03T00:00:00.000Z",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ss.SSSX"
},
{
"type": "EXACT",
"fields": [
"conversationId"
],
"value": "453b90bb-0be6-43d1-9ede-41b58f0f832b"
}
]
}
returns this:
{
"total": 1,
"pageCount": 1,
"pageSize": 25,
"pageNumber": 1,
"types": [
"transcripts"
],
"results": [
{
"conversationId": "453b90bb-0be6-43d1-9ede-41b58f0f832b",
"transcriptId": "c9f6d454-fb77-4ea2-bb35-5eada27534ab",
"topic": [
"Greeting",
"Price Dissatisfaction",
"On Hold",
"Build Rapport",
"Make Payment",
"Payment Plan",
"Transfer Service"
],
"_type": "transcripts"
}
]
}
I have tried using this as another query parameter, but it doesn't result in anything different.
{
"type": "EXACT",
"fields": [
"participants.participantPurpose"
],
"value": "customer"