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

# Journeys

> Start on an event, wait, check what the contact did, and send email. Publish versions, pause, resume and archive.

A journey starts when one of your events arrives for a contact, then waits, checks what the contact did since, and sends email. You build journeys in the console under **Journeys**.

## An example

Harbour Money, a digital bank in London, nudges a customer who starts the ID check and stops.

```mermaid theme={null}
flowchart TD
  T["Trigger: kyc.started"] --> W1["Wait 24 hours"]
  W1 --> C{"Sent kyc.completed since entering?"}
  C -- "Yes" --> X1["Exit"]
  C -- "No" --> S["Send email: Finish verifying in two minutes"]
  S --> W2["Wait 2 days"]
  W2 --> X2["Exit"]
```

Only a Wait holds people. Every other step runs at once and moves the contact on.

## Build a journey

**1. Set the trigger**

In **Journeys**, a new journey starts with its Trigger. Pick the event that starts it.

**2. Add steps**

**Add step** adds a **Wait**, **Condition**, **Send email** or **Exit** step. Select a step on the flow to change it.

**3. Save or publish**

**Save draft** keeps your changes without running them. **Publish journey** checks the journey and starts it; nothing runs until you publish.

## The five steps

| Step | What it does |
| - | - |
| **Trigger** | The event that starts the journey, with filters and a rule for people who come back |
| **Wait** | Holds the contact for a number of seconds, minutes, hours or days, then moves them on |
| **Condition** | Asks one question. Two branches, **Yes** and **No** |
| **Send email** | Sends one template to the contact, from one of your sending domains |
| **Exit** | Ends the journey for the contact. Nothing follows it |

### Trigger

A journey has exactly one trigger. The picker lists the events your app sent in the last 30 days. Only an event that carries a `userId` starts a journey; an anonymous event, sent before you call `identify`, starts nothing. See [Events](https://docs.maqetin.com/data/events.md) and [Profiles](https://docs.maqetin.com/data/profiles.md).

| Setting | Options |
| - | - |
| **Only when the event's properties match** | **All of these filters** or **Any of these filters**. A filter compares a property with **is**, **contains**, **is set**, **is more than** or **is less than** |
| **Who can enter** | **Anyone**, or a saved [segment](https://docs.maqetin.com/data/segments.md), checked for this one contact when the event arrives |
| **Entering again** | **Once per contact**, or **Again after a number of days**, counted from the contact's last entry. With 0, a contact enters again whenever they are no longer in the journey |

### Condition

Under **The contact**, pick one check.

| Check | Yes when |
| - | - |
| **The contact sent an event** | The contact sent this event after entering. The event that started the journey never counts |
| **A trait of the contact, now** | The trait matches when the contact reaches this step, with the trigger's filter operators |
| **The contact opened or clicked an email** | Since entering, the contact opened the email of an earlier Send email step (**Opened it**) or clicked a link in it (**Clicked a link in it**) |

An open or click check names a Send email step that comes before the condition and sends to the contact in the journey.

### Send email

| Field | Rule |
| - | - |
| **Template** | One of your [templates](https://docs.maqetin.com/messaging/templates.md) from **Content** |
| **Subject for this step (optional)** | Replaces the template's subject for this step; empty uses the template's. One line, up to 300 characters |
| **Sender name** | Up to 100 characters |
| **Address** | The part before the `@`. Letters, digits and `. _ + -` only |
| **Sending domain** | A verified [sending domain](https://docs.maqetin.com/messaging/sending-domains.md) of this workspace |
| **Send to** | **The contact in the journey**, or **Another contact, named by a trait** |

The template can print the properties of the triggering event as `{{event.<property>}}`, for example `{{event.amount}}`. Journey email needs the contact's email opt-in on and never reaches a suppressed address. See [Email](https://docs.maqetin.com/messaging/email.md).

#### Send to another contact

Name a trait of the contact in the journey that holds another contact's `userId`, as text, matched exactly, case included. The email goes to that contact. In the template, `{{contact.first_name}}` and the other `contact.` values are the contact in the journey. A send over the hourly limit is recorded as failed with the reason `recipient_limited`.

## Publish rules

Publishing needs [sending approval](https://docs.maqetin.com/workspace/sending-approval.md). If a rule is broken, nothing is published and the builder lists every broken rule with its step.

> [accordion] The publish rules
>
> * Sending is approved for the workspace.
> * The journey has exactly one Trigger, and nothing leads back into it.
> * The journey is within the step and size limits below.
> * Every Trigger, Wait and Send email step has exactly one next step.
> * Every Condition has a step on both branches, Yes and No.
> * An Exit has no step after it.
> * The journey has no loop: it only moves forward.
> * Every step can be reached from the trigger.
> * Every Wait is within the Wait limit below.
> * Every Send email step has a template that still exists, a sender, and a verified sending domain of this workspace.
> * A trigger's segment is still saved.
> * An open or click check names a Send email step of this journey that comes before it and sends to the contact in the journey.

## Versions

Publishing makes a version, and a published version never changes. Editing a published journey saves the next version as a draft; the published one keeps running until you publish the new one. New entries use the version published last, and people already in the journey finish the version they entered.

**Versions** on the journey's page lists each version with when it was published and **Published by**, the member who published it. Open one to see its steps as published.

## Pause, resume and archive

| Action | What happens |
| - | - |
| **Pause journey** | Nobody new enters. Contacts already in it carry on to the end |
| **Resume journey** | New entries start again, once the publish rules pass again, sending approval and the sending domains among them |
| **Archive journey** | Nobody new enters, and it moves to **Archived**. People already in it finish the version they entered |
| **Duplicate** | Copies the latest version's steps into a new draft journey, version 1. Nothing runs until you publish it; the original does not change |
| **Delete journey** | Removes a journey that was never published, for good. Archive any other |

* Publishing a paused journey also makes it run again.
* An archived journey cannot be edited, paused, resumed or brought back, but you can duplicate it. The templates and segments only it used can then be deleted.
* Without a name, a copy is called "*name* (copy)".

## Status

The **Journeys** list shows every journey that is not archived. Use **Show** to list one status.

| Status | Meaning |
| - | - |
| **Draft** | Never published |
| **Active** | Published and taking new entries |
| **Paused** | Takes no new entries; contacts already in it carry on |
| **Archived** | Enrolls nobody and cannot be edited |

## Who can do what

| Action | Who |
| - | - |
| Create, edit, publish, pause, resume and duplicate | Any member |
| Archive and delete | The owner |

See [Members and roles](https://docs.maqetin.com/workspace/members-and-roles.md). The journey's page shows where people are, step by step, and what its emails did. See [Analytics](https://docs.maqetin.com/messaging/analytics.md).

## Limits

| Limit | Value |
| - | - |
| Steps in a journey | 50 |
| Size of a saved journey | 128 KB |
| Journey name | 100 characters |
| Filters on a trigger | 20 |
| Wait | 5 seconds to 365 days |
| Entering again | 0 to 365 days |
| Event properties printed in email | 15 KB as JSON. Over that they are left out; the contact still enters |
| Email to another contact | Five an hour for each step and recipient |

## Good to know

* A journey only takes events that arrive after its first publish. Replaying older events never enrolls people who acted before the journey existed.
* A refused send does not stop the journey: the contact moves on to the next step, and the refusal is recorded on the message.
* Opens and clicks that look like a mail scanner never count for an open or click check.


## Related topics

- [Contacts](https://docs.maqetin.com/data/contacts.md)
- [Analytics](https://docs.maqetin.com/messaging/analytics.md)
- [Deliverability](https://docs.maqetin.com/messaging/deliverability.md)
- [Segments](https://docs.maqetin.com/data/segments.md)
- [Email](https://docs.maqetin.com/messaging/email.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.