Hi friends.
I have a question about the init a flow to create a webchat conversation and get the communicationId to send messages.
I executed POST https://api.mypurecloud.com/api/v2/conversations/chats
body:
{
"queueId": "cad354a6-e712-46a7-a81e-c4b15a304a70",
"provider": "TESTING",
"attributes": {},
"customerName": "TEST"
}
After, i want to see the details of conversation
GET
https://api.mypurecloud.com/api/v2/analytics/conversations/c6d0b6e0-5dc5-42d6-9bad-9ca89c21b2zb/details
Response:
{
"conversationId": "c6d0b6e0-5dc5-42d6-9bad-9ca89c21b2db",
"conversationStart": "2022-02-18T19:05:50.383Z",
"divisionIds": [
"3e7d3a76-edcf-420b-918e-d5ac0707046f"
],
"originatingDirection": "inbound",
"participants": [
{
"participantId": "18fc13a0-c8a8-4f73-838a-53fdabf34f85",
"participantName": "TEST",
"purpose": "external",
"sessions": [
{
"direction": "inbound",
"mediaType": "chat",
"provider": "TESTING",
"roomId": "NONE",
"sessionId": "ac7564a3-9e4a-4f2e-b5f9-74e0fcf0b7d5",
"metrics": [
{
"emitDate": "2022-02-18T19:05:50.383Z",
"name": "nConnected",
"value": 1
}
],
"segments": [
{
"conference": false,
"segmentStart": "2022-02-18T19:05:50.383Z",
"segmentType": "interact"
}
]
}
]
},
{
"participantId": "f911ba2e-8414-4166-b5e3-64f2c2a64245",
"participantName": "Prueba_Wsp",
"purpose": "acd",
"sessions": [
{
"agentBullseyeRing": 1,
"direction": "inbound",
"mediaType": "chat",
"peerId": "ac7564a3-9e4a-4f2e-b5f9-74e0fcf0b7d5",
"provider": "TESTING",
"remote": "TEST",
"requestedRoutings": [
"Standard"
],
"roomId": "NONE",
"routingRing": 1,
"selectedAgentId": "1ce7a1f6-e0a6-46f5-ab5a-337db79aaffe",
"sessionId": "70afc839-9761-4b3e-967b-96310d8e30a3",
"usedRouting": "Standard",
"metrics": [
{
"emitDate": "2022-02-18T19:05:50.385Z",
"name": "nOffered",
"value": 1
},
{
"emitDate": "2022-02-18T19:05:59.543Z",
"name": "tAcd",
"value": 9158
}
],
"segments": [
{
"conference": false,
"disconnectType": "transfer",
"queueId": "cad354a6-e712-46a7-a83e-c4b15a304a70",
"segmentEnd": "2022-02-18T19:05:59.543Z",
"segmentStart": "2022-02-18T19:05:50.385Z",
"segmentType": "interact"
}
]
}
]
},
{
"participantId": "81ffae90-9ad1-4b1c-9d97-3ab29a93c8a5",
"purpose": "agent",
"userId": "1ce7a1f6-e0a6-46f5-ab5a-337db79aaffe",
"sessions": [
{
"agentBullseyeRing": 1,
"direction": "inbound",
"mediaType": "chat",
"peerId": "ac7564a3-9e4a-4f2e-b5f9-74e0fcf0b7d5",
"provider": "TESTING",
"remote": "TEST",
"requestedRoutings": [
"Standard"
],
"roomId": "NONE",
"routingRing": 1,
"selectedAgentId": "1ce7a1f6-e0a6-46f5-ab5a-337db79aaffe",
"sessionId": "a07449cc-4dcc-4c44-b421-fc5ec490bb47",
"usedRouting": "Standard",
"metrics": [
{
"emitDate": "2022-02-18T19:05:59.539Z",
"name": "tAlert",
"value": 9058
},
{
"emitDate": "2022-02-18T19:05:59.539Z",
"name": "tAnswered",
"value": 9158
}
],
"segments": [
{
"conference": false,
"queueId": "cad354a6-e712-46a7-a83e-c4b15a304a70",
"segmentEnd": "2022-02-18T19:05:59.539Z",
"segmentStart": "2022-02-18T19:05:50.481Z",
"segmentType": "alert"
},
{
"conference": false,
"queueId": "cad354a6-e712-46a7-a83e-c4b15a304a70",
"segmentStart": "2022-02-18T19:05:59.539Z",
"segmentType": "interact"
}
]
}
]
}
]
}
The participant i sent as a customer "TEST", their purpouse is 'external'
[
"participantId": "18fc13a0-c8a8-4f73-838a-53fdabf34f85",
"participantName": "TEST",
"purpose": "external", ...
]
¿What should you do to make your purpose 'customer' ?
Execute another endpoints to create contact ? or what is missing ?
Thanks!!