> ## 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.

# Journey nodes

> The nodes on a journey canvas: send, branch, delay, digest, batch, AI, fetch data, throttle, and cancel, plus when to use a digest or a Batch.

Nodes are the steps on a journey canvas. They send messages, branch on data, wait, aggregate events, call external services, and cancel runs.

| Node | Use it to |
| - | - |
| [Send](https://www.courier.com/docs/journeys/nodes/send.md) | Deliver a message on one channel, from a journey template. |
| [Branch](https://www.courier.com/docs/journeys/nodes/branch.md) | Split the path on a condition. |
| [Delay](https://www.courier.com/docs/journeys/nodes/delay.md) | Wait for a duration, or until a timestamp. |
| [Send to Digest](https://www.courier.com/docs/journeys/nodes/digest.md) | Add the event to a topic's digest, released on each user's schedule. |
| [Batch](https://www.courier.com/docs/journeys/nodes/batch.md) | Collect events and release them together as one payload. |
| [AI](https://www.courier.com/docs/journeys/nodes/ai.md) | Generate content or make a decision with a model. |
| [Fetch data](https://www.courier.com/docs/journeys/nodes/fetch-data.md) | Call an external service and use the response later in the run. |
| [Throttle](https://www.courier.com/docs/journeys/nodes/throttle.md) | Cap how often a run sends. |
| [Cancel](https://www.courier.com/docs/journeys/nodes/cancel.md) | Cancel every active run that shares a cancellation token. Added in the designer. |

For how a run moves through them at runtime, see [how journeys run](https://www.courier.com/docs/journeys/overview.md). To split traffic across variants and promote a winner, see [experiments](https://www.courier.com/docs/journeys/experiments.md).

## Digest and Batch aren't the same node

Both hold events back and release them together. A digest releases on a **schedule** the user picks on the topic, so they get their nine o'clock summary whether two events arrived or twenty. A Batch releases on a **condition**, a count or a quiet period, as soon as enough has built up.

Use a digest when the cadence belongs to the recipient, and Batch when it belongs to the event volume. To digest notifications the journey already sends, 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). The Send to Digest node is for steps that only feed the digest.

## Every node reads the same run context

A node acts on the data the run already carries: the payload it was invoked with, the profile, and anything a [Fetch data](https://www.courier.com/docs/journeys/nodes/fetch-data.md) node added earlier. That is why order matters. A node can't read what a later node produces.

**A condition that references missing data evaluates to false.** The run takes the other path. Check a branch's decisions against a real run before trusting a path that never fires.
