Hello, I need to obtain a custom attribute from each conversation via API that will be later used in Power BI.
To obtain the attribute needed from one conversation I have used /api/v2/conversations/calls/{conversationId} endpoint. However I need this result for a group of calls. The way I'm identifying the calls for a time interval is via
POST /api/v2/analytics/conversations/details/jobs. How can I use the API to obtain the attributes from the conversations result of the conversation/details/jobs request? Do you think of a better way to make this process?
I am unexperienced working with the API so any help would be useful.
conversation/details/jobs only has attributes ~24 hours later, if you need them real time or nearer time you need to use a different endpoint and attributes/search is the only one that can handle more than one conversation id.
To obtain the attributes 24 hours later is not my main issue, but thanks for the advice.
My main issue is to get a list of conversationIds and how to obtain their attributes. If this is not possible it would be a problem as we would have to make to many calls to the API.
Rather than make a bunch of API calls to get the data, you could set up an AWS EventBridge listener and fire off a Lambda every time a conversation completes and then pull the custom attributes off of the conversation message being passed through the event bus.
Thanks,
John Carnell
Director, Developer Engagement
what I have to do to get this endpoint activated for a specific org?
When I try this currently I get that answer:
"message": "Conversation participant attribute search is not enabled for organization, missing product.",
"code": "bad.request",
This endpoint sounds very interesting for me. But as I could read in the docs it is still not able to seach for a specific participant attribute value over a bundle of interactions, isn't it?