Legacy Dev Forum Posts

 View Only

Sign Up

Questions on conversationFilters of AnalyticsConversationsDetailsQuery

  • 1.  Questions on conversationFilters of AnalyticsConversationsDetailsQuery

    Posted 06-05-2025 18:24

    Jli | 2022-11-02 11:44:46 UTC | #1

    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 !


    tim.smith | 2022-11-15 16:18:08 UTC | #2

    Jli, post:1, topic:17023
    ①How to set the value of range in the filter?

    Using API Explorer will help you construct it: POST /api/v2/analytics/conversations/details/query

    Jli, post:1, topic:17023
    ②Is it possible for me to get the data from the above query only contains the data of the paticipant I need?

    The analytics detail APIs always return the full conversation object. Filters control which conversations are returned, not the contents of a conversation object. If you want to transform the data into a different or reduced schema, your application is welcome to do so.


    Jli | 2022-11-10 08:51:53 UTC | #3

    I understand,thank you!


    system | 2022-12-11 08:52:39 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 17023