I am using /api/v2/analytics/conversations/${input.conversationId}/details in a data action pulling in the raw json and I need to get the total for tacd and tivr and I am unable to get the sum. Does anyone know what I need to put in the data action to get the sum for these fields? I can get the count for ivr and acd but I am unable to get the total time for each.
As far as I'm aware there is no way to request the API to total those two metrics for you. You'd have to do that yourself after you retrieve the JSON. Given that you are wanting tIvr and tAcd, I assume you are making that Data Action call from an Agent Script, is that correct? If so, then you should be able to create a custom action that has multiple steps, the first step would call the Data Action that would populate tIvr and tAcd in the output contract, and step 2 would use the Set Variable action to add tIvr and tAcd together into a new variable that you can then display in a text field in your script.