Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@
"pipecat-cloud/fundamentals/scaling",
"pipecat-cloud/fundamentals/health-checks",
"pipecat-cloud/fundamentals/logging",
"pipecat-cloud/fundamentals/session-recordings",
"pipecat-cloud/fundamentals/error-codes"
]
},
Expand Down
4 changes: 4 additions & 0 deletions pipecat-cloud/fundamentals/logging.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ async def bot(args: PipecatRunnerArguments):
more additional SessionArgument types.
</Note>

## Session recordings

The session detail view can also play back a session's audio. That audio comes from a Daily cloud recording of the room your agent ran in, which you control yourself. See [Session Recordings](/pipecat-cloud/fundamentals/session-recordings) for how to turn it on and how to control storage and retention.

## CPU and memory metrics

Pipecat Cloud tracks CPU and memory usage for each session, which can be helpful for troubleshooting performance issues. You can view these metrics in two ways:
Expand Down
97 changes: 97 additions & 0 deletions pipecat-cloud/fundamentals/session-recordings.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pipecat supports many types of recordings, not just Daily. I'm hesitant to include a docs section like this which is just Daily-centric as it excludes other types of recording. For example, if you're using a websocket connection to a telephony provider, this does not apply to you.

Maybe we need a generic section about recording, where one of the options is Daily recordings. We can specify what's needed there.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, basically I'm trying to explain in writing when/why the recording appears in Pipecat Cloud

title: Session Recordings
description: "Where the session audio comes from, how to turn it on, and how to control storage and retention"
---

The session detail view in the Pipecat Cloud dashboard can play back the audio of a session. That audio is a [Daily cloud recording](https://docs.daily.co/docs/guides/features/recording) of the room your agent ran in. It is not a separate Pipecat Cloud recording feature, and Pipecat Cloud does not turn it on for you.

Knowing that answers most questions about it: what the audio contains, where it is stored, and how long it lasts are all Daily cloud recording behavior.

## What you need for a recording to appear

Two things:

1. **Your agent runs on the Daily transport.** Cloud recording is a feature of the Daily room your agent is in. An agent on a non-Daily transport (a Twilio or generic WebSocket leg, for example) has no room to record, so no recording is made and no player appears on its session page.
2. **A cloud recording is actually started for that room.** Pipecat Cloud does not start one on your behalf. See the next section.

Nothing else is required. You do not need to enable the dashboard player separately.

## Turning recording on

The [`/start` endpoint](/api-reference/pipecat-cloud/rest-reference/endpoint/start) passes `dailyRoomProperties` and `dailyMeetingTokenProperties` through to Daily unchanged. Pipecat Cloud adds no recording defaults of its own, so if you do not ask for a recording, none is made.
Comment thread
Copilot marked this conversation as resolved.
Outdated

### Start automatically when the agent joins

Set `start_cloud_recording` on the meeting token. Daily starts the recording as soon as that token holder joins the room:

```bash
curl --location --request POST 'https://api.pipecat.daily.co/v1/public/my-agent-name/start' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"createDailyRoom": true,
"dailyRoomProperties": {
"enable_recording": "cloud"
},
"dailyMeetingTokenProperties": {
"start_cloud_recording": true
}
}'
```

### Start and stop it from your pipeline

If you want control over when recording runs, call `start_recording()` and `stop_recording()` on the transport instead. See [DailyTransport recording](/api-reference/server/services/transport/daily#recording).

## What the recording contains

A cloud recording is produced on the media server, from what each participant **publishes** into the room.

That has one consequence worth understanding: **user audio in the recording is the raw microphone audio, before any in-pipeline audio filter**. If your agent uses an input audio filter such as [Krisp VIVA](/pipecat-cloud/guides/krisp-viva), that filter runs inside your pipeline on inbound frames, so it only cleans the copy that feeds your STT and VAD. It does not change what the user publishes, so it never affects the recording.

If you need audio that reflects your filtering, [record it in the pipeline instead](/pipecat/fundamentals/recording-audio).

## Storage and retention

By default, cloud recordings are stored by Daily, on the Daily domain that Pipecat Cloud manages for your organization. List them, fetch access links, and delete them with the [Daily recordings REST API](https://docs.daily.co/reference/rest-api/recordings).

<Warning>
**Recordings are kept until you delete them.** There is no automatic expiry,
so cleanup is yours to run. Recording storage is billed per minute per month
stored (see [pricing](https://www.daily.co/pricing/pipecat-cloud/#recording)),
so it is worth building deletion into your workflow early rather than letting
recordings accumulate.
</Warning>

### Store recordings in your own S3 bucket

If you have retention or data residency requirements, the cleanest option is to keep recordings out of Daily's storage entirely. Set `recordings_bucket` in `dailyRoomProperties` and Daily writes recordings straight to your bucket:

```bash
curl --location --request POST 'https://api.pipecat.daily.co/v1/public/my-agent-name/start' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"createDailyRoom": true,
"dailyRoomProperties": {
"enable_recording": "cloud",
"recordings_bucket": {
"bucket_name": "my-recordings-bucket",
"bucket_region": "us-west-2",
"assume_role_arn": "arn:aws:iam::123456789012:role/DailyRecordingsRole",
"allow_api_access": true
}
},
"dailyMeetingTokenProperties": {
"start_cloud_recording": true
}
}'
```

Your own S3 lifecycle rules then control retention. Set `allow_api_access` to `true` if you want the dashboard and the Daily access-link API to be able to play recordings back from your bucket.

You can also configure the bucket once at the domain level instead of per room. For IAM role setup and the full property reference, see [Storing recordings in a custom S3 bucket](https://docs.daily.co/docs/guides/features/recording/custom-s3-storage).

### Turn recording off

Leave `start_cloud_recording` out of your `/start` call and no cloud recording is made. Nothing in Pipecat Cloud will add it back. You lose the dashboard player, and no recording storage is billed.
Loading