# Journeys

> Multi-step flows that follow each person over days or weeks. Which events start them, how steps work, what counts as converted, and the events your app needs to send.

A journey follows each person through a series of steps: a welcome series, a nudge when someone stalls, a win-back when they go quiet. You build it in the Herald console under **Messaging → Journeys**. Your app's part is sending the events that start a journey, move people along it and count as its goal.

:::prereq
- The SDK installed, with people identified by their External ID (see [Users and identity](/docs/concepts/users-and-identity)).
- The events you want to use sent with `track()` (see [Events and attributes](/docs/concepts/events-and-attributes)).
- At least one channel set up for the app: push, email, in-app messages or content cards.
:::

## Simple by default

The builder starts with the basics: entry by event, Send a message, Wait, Wait for an action, Split by audience and End, plus the goal and analytics. Everything else is a switch under **Settings → General → Journey features**: versions, smarter sending, the extra steps, entry by audience or API, test runs, holdout and re-entry. Each person chooses for themselves; an account admin sets what the team starts with under **Settings → Members**.

Hiding a feature only removes it from the menus. A journey that already uses it always shows it, so nobody loses sight of a teammate's work.

## How a journey runs

1. **People enter.** Choose one of three ways on the entry step:
   - **When they do an action:** each identified person who does the entry event after the journey is published. People who did it before don't enter.
   - **When they're in an audience:** everyone in the audience when you publish, and anyone who joins it later.
   - **When your server adds them (API):** your backend calls [`POST /api/v1/journeys/{id}/enter`](/docs/reference/server-api#post-api-v1-journeys-id-enter).

   With an action or the API, you can also limit entry to an audience.
2. **They move through the steps.** Each step either sends a message, waits, or picks a path. People move as soon as a step allows it.
3. **They finish.** A path ends at an End step or where nothing follows. People who do the goal event leave early and count as converted.

A person is never in the same journey twice at once. Whether they can enter again later is a journey setting: once only, or again after a number of days.

## Steps

| Step | What it does |
|---|---|
| Send a message | Sends push, email, an in-app message or a content card. Each person gets every channel they can receive. |
| Wait | Holds people for a set time, from 1 minute to 365 days. |
| Wait for an action | Waits until the person does an event, or opens or taps a message sent earlier in the journey, up to a time limit. They take **Did it** as soon as they do it, or **Timed out** when the limit passes. |
| Split by audience | Sends people down the first path whose audience they're in, checked top to bottom. Everyone else takes the last path. |
| End | Finishes the path. The step's name shows in analytics as how people finished. |

More steps, listed after the basics:

| Step | What it does |
|---|---|
| Random split | Places each person on a path at random by share (for example 50% and 50%), and keeps them there. Use it to compare two paths. |
| Update profile | Sets attributes on the person's profile, as if your app had sent them with `identify()`. Contact fields (`$email`, `$phone`) can't be set here. |
| Add to an audience | Adds the person to an audience, or takes out people a journey added. Audiences built from rules keep updating on their own. |
| Send a webhook | Sends a `POST` to your https address with the journey, the step and the External ID of everyone who reached it, about once a minute. |

### Webhook body

```json
{
  "journey": { "id": "j_123", "name": "First-week welcome" },
  "step": { "id": "s4k2p1", "name": "Tell the CRM" },
  "people": [{ "externalId": "user_42" }],
  "sentAt": "2026-11-26T09:00:00Z"
}
```

Answer with any 2xx status. Redirects aren't followed. If the call fails, it's tried again for an hour; after that, the people at the step move on and count as dropped with the reason **Error**.

## What a wait can wait for

Pick from a list, or type an event name:

- **This journey's messages:** **Opened** counts a push tap, an email open, or an in-app message or card that was shown. **Tapped or clicked** counts a push tap, a link click in the email, or a tap on the in-app message or card. Only messages earlier on the same path are offered, and engagement counts from when the person entered the journey. Email opens can be counted early by mail apps that load images on their own, so prefer **Tapped or clicked** for email.
- **Your events:** the custom events your app sent in the last 30 days, plus events with a schema that haven't arrived yet.
- **App activity:** the events the SDK sends on its own (SDK 0.6.0 and later): `session_start`, `$app_opened`, `$app_foreground`, `$app_background`, `$app_installed`, `$app_updated`, `$deep_link_opened`, and `purchase`.
- **Screens:** screen names your app sent with `screen()`.

Event names must match exactly. If no one has sent the name you type in the last 30 days, the builder says so, so a typo doesn't quietly send everyone down **Timed out**. The entry event and the goal use the same list.

## Versions and smarter sending

A message step can do more than send one message:

- **Versions (A/B):** add up to three more versions of the message (B, C, D), each starting as a copy of A. Split people evenly, or let the engine pick: each person gets a version chosen by how well each has led to the journey's goal so far, so more people get the winner while the others keep being tried. The engine needs a goal. With **Let Herald choose per person**, each person gets the version most likely to add [long-term value](/docs/concepts/long-term-value#journeys) for them, with no goal needed. Analytics shows each version's conversion rate.
- **When to send:** right away, or at each person's usual time, the hour they're most often active, within the next day. People Herald doesn't know yet get it right away.
- **Channels:** every channel they can receive, or just the channel each person has responded to most. People with no history get every channel.

Each person's path shows which version they got, by which channel and when, so no choice is hidden.

## Messages follow your guardrails

Journey messages go through the same delivery as campaigns, so:

- the app's push limit across every source applies,
- quiet hours hold a message until the person's morning,
- send-time checks skip people who no longer qualify.

## Goal and holdout

- **Goal:** an event that counts as success, within 1 to 30 days of entering. People who do it leave the journey and count as converted.
- **Holdout:** a share of the people who enter (10% by default, up to 50%) who get no messages. They're watched for the goal over the same window, so **Lift vs holdout** shows what the journey adds.

## Analytics

The Analytics tab shows how many people are in the journey now, how many entered and converted, and lift vs holdout, then the same counts on every step. Pick **All time** or the last 7, 30 or 90 days: a range counts the people who entered in it and what happened at each step in it, while **In journey now** is always live. Click any number to see the people behind it, then one person's path.

## Test a journey

Before publishing, select **Test** and enter someone's External ID. The builder shows the path they would take through the draft, using the audiences they're in now, and highlights it on the canvas. Waits are skipped, and you choose whether they do each action the journey waits for. Nothing is sent.

## Drafts and publishing

The builder saves your draft as you work, and **Save draft** saves it right away. Nothing goes live until you publish. Changes to a live journey are a draft until you publish them. The review shows what changes and, if you remove a step people are waiting at, lets you move them to the next step or take them out. Each publish saves a version you can restore as the draft.

## Events your app sends

A journey only sees what your app sends. Use the same event names in your app and the journey:

```swift
Herald.shared.track("onboarding_complete")
```

```kotlin
Herald.track("onboarding_complete")
```

Events count from when Herald receives them, so an event sent from an offline device starts a journey when the device comes back online.

## Limits

| Limit | Value |
|---|---|
| Steps per journey | 100 |
| Paths per split | 8, plus everyone else |
| Paths per random split | 2 to 8, shares in whole percent adding up to 100 |
| Attributes per Update profile step | 20 |
| Wait and time limit | 1 minute to 365 days |
| Goal window | 1 to 30 days |
| Holdout | 0% to 50% |
| How often people move along | about every minute; **Wait for an action** checks every 5 minutes |
