Legacy Dev Forum Posts

 View Only

Sign Up

Assistance with AWS S3 recording bulk actions integration

  • 1.  Assistance with AWS S3 recording bulk actions integration

    Posted 06-05-2025 18:19

    DanielMooney | 2021-05-05 13:46:40 UTC | #1

    Hi,

    We want to extract chat conversation by applying some filters on /api/v2/recording/jobs POST endpoint. We figured out how to integrate with S3 bucket and we were able to download those conversations from s3. Applying a filter through the endpoint is where we struggle. We want to only have the conversation details for one single country & one single wrap-up code. But we didnt clearly understand which filters to use from this payload and how (conversationFilters, segmentFilters, evaluationFilters, surveyFilters, resolutionFilters)? Would be great to get a payload example where a filter is applied for a wrap-up code and country. { "action": "EXPORT", "actionDate": "2021-05-04T15:01:34+0000", "integrationId": "1111111-11111-sssss-ddddd-yyyyyyyyy", "includeScreenRecordings": true, "conversationQuery": { "order": "asc", "orderBy": "conversationStart", "interval": "2021-04-30T22:00:00.000Z/2021-05-01T22:00:00.000Z", "limit": 100, "startOfDayIntervalMatching": true } }

    My requets is very similar to https://developer.mypurecloud.com/forum/t/bulk-export-and-filters-examples-please/10152

    "Where I'm struggling is in understanding the structure and syntax of the body of the original create job. Most, if not all tutorials don't actually go down into much predicate layers at all, and the one specifically on this doesn't do any at all - only using the interval at the ConversationQuery level.

    I"m hoping someone can send me a basic example of how the body for this would look with a SegmentFilters section and SegmentDetailQueryFilter populated. I should then be able to somewhat reverse engineer that to better understand the syntax and schema."

    Any assistance or advise would be greatly appreciated. Our overall goal is to extract at least 100 chat conversations per wrap code we use (around 22) for 2 different queues. We need to share these with a third party.

    Thanks Daniel


    tim.smith | 2021-05-11 21:51:33 UTC | #2

    You can use the Analytics Query Builder dev tool to guide you through building well-formed queries.

    DanielMooney, post:1, topic:10820
    We want to only have the conversation details for one single country & one single wrap-up code.

    You can use a segment filter on wrapUpCode. Unfortunately, I don't believe there's a way to filter based on country unless there's some identifying configuration in a filterable property that would be linked to a country for you. Something like the queue or edge maybe. It's not possible for a filter to perform a search operation, meaning you can't build a filter to find a partial match on the ANI's country code, only a discrete value.


    system | 2021-06-11 21:51:34 UTC | #3

    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: 10820