Prerequisite
Ensure that you have the following:- An S3 bucket with versioning enabled.
Enable Conversation Recording
1
Step 1: Set up IAM Policy and Role
- Create an IAM Policy with the following JSON definition:
Replace
your-bucket-name
with your actual bucket name.- Create an IAM role with the following value:
- Select “Another AWS account” and enter this account ID: 291871421005.
- Enable “Require external ID”, and use: tavus.
- “Max session duration” to 12 hours.
Note down your ARN (e.g.,
arn:aws:iam::123456789012:role/CVIRecordingRole
).2
Step 2: Create a Conversation with Recording Enabled
Use the following request body example:
Remember to change the following values:
<api_key>
: Your actual API key. You can generate one in the Developer Portal.aws_assume_role_arn
: Your AWS ARN.recording_s3_bucket_region
: Your S3 region.recording_s3_bucket_name
: Your S3 bucket name.
cURL
enable_recording
allows recording to be possible, but it doesn’t start recording automatically. To begin and end recordings, users must do it manually or trigger it through frontend code.3
Step 3: Join the Conversation
To join the conversation, click the link in the
conversation_url
field from the response:You can access the recording file in your S3 bucket.