Hi,
I'm creating a new agent script on which I would like to show latest 10 interaction for the customer who contacts us. For this i'm trying to utlize the /api/v2/analytics/conversations/details/query endpoint and would like to end up with something like this which can be used in a markup field.
{
"mediaTypes": [
"chat",
"mail",
"participantNames": [
"
agent.1@example.com,
agent.2@example.com",
"agent.2@example.com"
],
"conversationStarts": [
"2022-02-28 16:36",
"2022-02-28 08:36"
],
"conversationEnds": [
"2022-02-28 16:37",
"2022-02-28 10:04"
]
}
The problem that I see is that rarly see the participantName of the agent which handled the interaction, instead only userId. Is there anything I'm missning or is there a easy way of translate the userID to participantName?
#Integrations------------------------------
Hampus Nygren
------------------------------