Hello,We have our own survey system and we send a payload of conversation data to it.We use a trigger and workflow to collect conversation data using teh following API "/api/v2/conversations/${input.conversationId}" and we use a filter to only see participant data with a
"purpose == agent" "translationMap": { "participants-queueName": "$.participants[?(@.purpose == 'agent' && @.connectedTime)].queueName", "zdticketId": "$.participants[?(@.purpose == 'customer' && @.connectedTime)].attributes.ZD_SearchValue", "participants-startTime": "$.startTime", "participants-id": "$.participants[?(@.purpose == 'agent' && @.connectedTime)].id", "participants-nameid": "$.participants[?(@.purpose == 'agent' && @.connectedTime)].userId", "participants-endTime": "$.endTime", "participants-purpose": "$.participants[?(@.purpose == 'agent' && @.connectedTime)].purpose", "customerani": "$.participants[?(@.purpose == 'customer' && @.connectedTime)].address", "participants-name": "$.participants[?(@.purpose == 'agent' && @.connectedTime)].name", "participants-queueId": "$.participants[?(@.purpose == 'agent' && @.connectedTime)].queueId", "direction": "$.participants[?(@.purpose == 'customer' && @.connectedTime)].calls[0].direction" }
However, we have found that this participant data also contains Consult Data. We do not want consult data in the returned data as the customer would never have spoken to the consulted agent. If there an easy way using translation map filters to filter consults from the returned data? Hope this make sense.