Programmatically Get Call Recording Filename

0

Hi all, amazon connect places call recording in an s3 bucket with a filename in format contactId_timestamp.wav. How can we programmatically obtain the filename of the recording for a given call? I understand we can append the contact id with the ConnectedToAgentTimestamp, but this feels like a hack and not the official and guaranteed way of reliably obtaining the recording name. I've seen past posts mention that we can use kinesis streams api to retrieve this file name - can you point me to which api call specifically will provide this? Thanks

2 Answers
2
Accepted Answer

To reliably obtain the filename of a call recording for a given call in Amazon Connect, using Amazon Kinesis Data Streams is indeed a good approach. Specifically, you can use the Amazon Connect Contact Trace Records (CTR) streamed to Kinesis to get detailed information about each contact, including the recording filename.

Here are the steps to programmatically obtain the filename of the recording:

  1. Set Up Kinesis Data Stream: Ensure your Amazon Connect instance is configured to stream Contact Trace Records (CTR) to an Amazon Kinesis Data Stream. This can be done in the Amazon Connect console under the data streaming section.
  2. Consume the Data from Kinesis: Use the AWS SDK (for example, Boto3 for Python) to consume the data from the Kinesis stream. Each record in the stream is a JSON object that includes detailed information about the contact.
  3. Extract the Recording URL: The CTR contains the 'Recording' object, which has the 'Location' attribute providing the S3 URL of the recording file.
AWS
Brian
answered a month ago
0

Hello, The record location data is within the Contact Events, you can have a look at this: https://docs.aws.amazon.com/connect/latest/adminguide/contact-events.html

Thanks.

Zen
answered a month ago