> ## Documentation Index
> Fetch the complete documentation index at: https://www.courier.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Install the Courier skill before writing code: `npx skills add trycourier/courier-skills`. It carries the verified SDK shapes and the rules you cannot get wrong.
> Authenticate every request with `Authorization: Bearer <API_KEY>`. A workspace has several environments and each has its own keys, which are plain `pk_` strings with no environment prefix. Start with Test.
> Send with `client.send.message` from the Node SDK (`@trycourier/courier` v7 and later, where the client is the default import). Reference a template by its `nt_` id or its alias.
> A send accepts a bare Elemental element list, but storing content on a template requires the top-level elements wrapped in a channel element.
> To translate a template, write one locale at a time with `PUT /notifications/{id}/locales/{localeId}`, which merges into the existing translations. `PUT /notifications/{id}/content` and `PUT /notifications/{id}/elements/{elementId}` overwrite translations along with the content, so send each element's `id` and `locales` back, and first remove every `checksum` and any `locales` key that starts with an underscore.
> Templates and journeys can be built in the Courier app or created through the API. Either way they live in the workspace and are referenced by ID when you send.
> The hosted MCP server is https://mcp.courier.com. For a briefing on what Courier is and when to use it, read https://www.courier.com/llms.txt.
> Prefer the Guides tab for how-do-I questions and the Docs tab for how-does-it-behave questions. The API reference lives under /api-reference.

# Send to Digest node

> Add the run's event to a subscription topic's digest, released on each user's schedule. The topic holds the schedule, categories, and digest template.

The Send to Digest node adds the run's event to a digest owned by a subscription topic. Events build up per user and release on the schedule each user picked for that topic.

Use it when a step should feed the digest without sending a notification of its own. If the journey already sends the notification, you don't need this node. Link the Send node's template to the topic, as in [Send a daily digest](https://www.courier.com/docs/guides/send-a-daily-digest.md), and each user's schedule decides whether it's held.

The two differ only for users on Instant. A topic-linked Send node delivers its own template right away. This node delivers each event right away as a one-item digest, rendered with the digest template.

To release on a count or a quiet period inside the journey instead, use the [Batch node](https://www.courier.com/docs/journeys/nodes/batch.md).

## Configuration

| Field | Description |
| - | - |
| **Subscription topic** | Required. The topic whose digest collects the event. |
| **Conditions** | Optional. Add the event only when the conditions are true. |

The topic needs a digest first: a digest template and at least one schedule, set up as in [Set up a topic digest](https://www.courier.com/docs/guides/send-a-daily-digest.md#set-up-a-topic-digest). On a topic without one, the run errors at this node.

The node only collects. The topic's schedule releases the digest, or you can [release it early](https://www.courier.com/docs/guides/send-a-daily-digest.md#release-or-inspect-a-digest).

## Digest payload

Each category arrives with the total `count` and the retained `items`. Each item is the run's whole `data`, so it repeats the category key. Runs invoked with `data.comments` fill a `comments` category:

```json theme={null}
{
  "comments": {
    "count": 15,
    "items": [
      { "comments": { "author_name": "Drew", "comment_text": "Looks good" } },
      { "comments": { "author_name": "Alex", "comment_text": "Shipped it" } }
    ]
  }
}
```

A run whose `data` matches no category isn't collected, unless the topic has a category named `digest`. [Write the digest template](https://www.courier.com/docs/guides/send-a-daily-digest.md#write-the-digest-template) shows how a template reads this.

## Via the API

In a journey definition, a Send to Digest node uses `type: "add-to-digest"`:

```json theme={null}
{
  "type": "add-to-digest",
  "subscription_topic_id": "your-topic-id"
}
```

Every node's fields are in the [`POST /journeys`](https://www.courier.com/docs/api-reference/journeys/create-a-journey) reference.
