stefano.pucci | 2017-09-26 13:59:03 UTC | #1
Hi all,
could someone help me with Conversation API?
I'd like to extract from Pure Cloud all daily conversations in order to have details about attributes set up on Architect and import to our DWH. I've seen that I can use /api/v2/conversations/calls/{conversationId} for every conversationID, but I need to extract all conversations in a day.
Thanks Stefano
tim.smith | 2017-09-26 14:01:14 UTC | #2
You're looking for the Analytics APIs. You'll probably find this open source project useful. It sounds like it'll get you most of the way to where you want to be: https://github.com/MyPureCloud/open-data-exporter
stefano.pucci | 2017-09-26 14:50:45 UTC | #3
Hi Tim,
thanks for the response. But from Analitycs API I don't have attributes that I've set up with Set Partecipant Data, right?
Thanks Stefano
tim.smith | 2017-09-26 14:54:47 UTC | #4
You're correct, I missed that you were looking for the participant attributes. You'll have to use the conversation APIs or investigate the workaround mentioned here: https://developer.mypurecloud.com/forum/t/participant-attributes-analytics/1306/2. However, that may not be useful if all you're looking to do is export the data once; you still have to use the conversation APIs to get the attributes before setting them in analytics.
stefano.pucci | 2017-09-26 15:25:58 UTC | #5
tim.smith, post:4, topic:1865
the attributes before setting them in analytics.
But , there is any way to extract all daily conversations?Or how do I get all daily conversationID and then extract one by one with /api/v2/conversations/calls/{conversationId}?
tim.smith | 2017-09-26 15:28:31 UTC | #6
stefano.pucci, post:5, topic:1865
is any way to extract all daily conversations
Use an analytics query to retrieve all conversations. Then use the conversation APIs to retrieve the participant attributes for each conversation.
stefano.pucci | 2017-09-28 08:57:38 UTC | #7
Hi Tim,
I'm extracting all conversation with this query :slight_smile: { "interval": "2017-09-27T00:00:00.000Z/2017-09-27T23:59:59.000Z", "granularity": "P1D", "groupBy": [ "conversationId" ], "metrics": [ "nOffered" ], "filter": { "type": "or", "predicates": [ { "dimension": "queueId", "value": "956f5b1f-31f5-4e93-93fa-c74f13b17710" }, { "dimension": "mediaType", "value": "voice" } ] } }
Now What do I need to do?
Thanks Stefano
stefano.pucci | 2017-09-28 09:02:08 UTC | #8
I'd like to retrieve these attributes on all conversations :slight_smile:
{ "id": "f1288a73-471f-4d21-85a2-cdecbc300e08", "startTime": "2017-09-26T13:21:12.940Z", "endTime": "2017-09-26T13:22:42.807Z", "address": "tel:+33979997532", "participants": [ { "id": "064cc2fc-5d52-4361-b240-0a7721021b6b", "startTime": "2017-09-26T13:21:12.999Z", "endTime": "2017-09-26T13:22:39.733Z", "connectedTime": "2017-09-26T13:21:13.147Z", "name": "0768121364", "queueId": "a74ca04d-272d-41bd-ac13-07b8862204b0", "queueName": "QUEUE-SKILL-TEST", "purpose": "customer", "participantType": "External", "address": "tel:+33768121364", "ani": "tel:+33768121364", "aniName": "0768121364", "dnis": "tel:+33979997532", "wrapupRequired": false, "attributes": { "Interlocuteur": "\"Cond Pri\"", "BirthDateContactLastName": "XXXXX", "ScreenPopId": "29040b70-97c2-11e7-ac20-6d355ab62fd4", "BirthDateContactName": "XXXX", "PolicyNumber": "1090000443", "Identification": "\"OK\"", "label": "\"\"", "ScreenPopName": "Inbound", "Result": "\"MainDriver OK\""
How can create a batch that queries GET /api/v2/conversations/ALL CONVERSATIONS gathered from analytics api?
Thanks Stefano
tim.smith | 2017-10-02 16:06:10 UTC | #9
stefano.pucci, post:8, topic:1865
How can create a batch that queries GET /api/v2/conversations/ALL CONVERSATIONS gathered from analytics api?
You can't currently; conversations must be retrieved one by one. There is pending work to retrieve multiple conversations at once. It's being tracked as API-2885.
BAPTISTE_DERRE | 2017-10-24 15:04:12 UTC | #10
Thanks Tim, Could you give me a progression status about API-2885 and give me an estimation of when it could be delivered. It is a feature that interest us a lot. Thanks a lot.
tim.smith | 2017-10-24 15:10:35 UTC | #11
It's currently in progress, but blocked. No ETA.
system | 2017-11-24 15:10:43 UTC | #12
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: 1865