Skip to main content
A journey is a graph of nodes that runs once per user when triggered.
An onboarding journey on the canvas: an API Invoke trigger, a welcome email, a two-day delay, an AI node, then a branch whose two paths send and rejoin at Exit
You build it visually, publish it, and invoke it from your app or a Segment event. Courier runs the nodes in order, taking branches, waiting on delays, and sending messages until the run ends. A journey combines the other pieces: a trigger that starts it, nodes that decide what happens between sends, and content written the way a Template is written. Each recipient is a user whose profile the run reads once at invoke.

Which one to use

Most notifications don’t need a journey, and the difference is whether the messaging spans steps and time. Use the Send API when one call can say everything. Use a journey when the messaging unfolds over time, with branching, enrichment, or rate limiting between steps.

How it works

Trigger, then nodes

Every journey starts with a trigger that decides how users enter it:
  • API invoke: your code calls the invoke endpoint.
  • Segment: Courier starts the journey when a matching Segment event arrives.
  • Inbound webhook: an external system posts an event to a Courier webhook URL.
  • Audience: a user joins an audience.
Nodes then run in sequence: send, delay, branch, fetch (pull external data), ai, throttle, batch, add-to-digest, and exit, plus a Cancel node you add in the designer. A branch splits the flow into conditional paths. The run continues until every path reaches an end.

A run works from a snapshot of its data

On invoke, Courier loads the recipient’s profile once and stores the run’s { data, profile } as a snapshot. Every node reads from that snapshot. Editing a user’s stored profile or an audience after the run starts doesn’t re-evaluate the run or update its data. Nodes inside the journey can change a run’s context mid-flight, such as a fetch node that pulls new data or an AI node that writes data.ai_result. Branch on data you pass at invoke or fetch during the run, not on edits made elsewhere.

Delays

A delay node waits before continuing, in two modes:
  • Duration (relative): wait a span, like 3 days.
  • Until (absolute): wait for a timestamp, which can come from your data, like an appointment_time field.
Keep each delay to 90 days or less, and chain delays for a longer total gap.

Idempotency

Invoking is safe to retry. Send an Idempotency-Key header on the invoke request. For a repeated key, Courier returns the stored result instead of starting a second run, so a network retry doesn’t double-send. Without the key, each invoke starts a new run.

Canceling a run

To stop runs, cancel them. The cancel endpoint takes either a cancelation_token (set in the journey’s settings and stamped on each run as it starts, cancels every run sharing it) or a single run_id. Only active runs are affected. A run that already finished, errored, or was canceled is left as-is. Inside a journey, a Cancel node cancels every active run sharing its token. See Invoke a Journey.

Journey Templates

A send node’s content is a Journey Template: created inline in the send node, scoped to that Journey, and versioned with it. They are separate from the workspace Templates used with the Send API. You can’t reference one from a regular send, or import an existing Template into a Journey. Journey Templates reference the Journey’s data with double-brace syntax:
  • {{order_id}} for a trigger schema field
  • {{first_name}} for a Profile field
  • a field from an upstream fetch node
Publishing the Journey doesn’t publish its Templates. A run sends each Template’s published version, so publish each Template, then publish the Journey. Editing a Template after publishing creates a new draft that needs its own publish to take effect.

FAQ

Journeys is the current v3 surface (visual editor, data contracts, run inspection) on the same engine as the older Automations product. Automations are superseded. Build new workflows as journeys.