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

# Set up realtime journeys

> Realtime journeys evaluate and advance members as events arrive rather than on a schedule. Use them for follow-ups that need to happen during or right after a session, such as recovering an abandoned checkout.

## Before you begin

* A configured [Customer Studio schema](https://docs.hightouch.com/customer-studio/schema) with a parent model on the [Lightning sync engine](https://docs.hightouch.com/syncs/lightning-sync-engine.md)
* An event source sending events to Hightouch (Hightouch Events, Segment, RudderStack, or Snowplow)
* At least one [realtime event](https://docs.hightouch.com/real-time/setup.md#step-2-create-a-realtime-event) related to the parent model
* A destination that supports [event streaming](https://docs.hightouch.com/events/event-streaming.md#supported-destinations), if the journey sends events downstream

## Overview

A [journey](https://docs.hightouch.com/customer-studio/journeys) moves members through a sequence of tiles. A standard journey (the **Batch** journey type) runs on a schedule: on each run, Hightouch queries your warehouse to decide who enters, advances, or exits. A realtime journey has no schedule. Hightouch evaluates each member when one of their events arrives or a wait ends.

| | Standard journey | Realtime journey |
| - | - | - |
| **When members move** | On each scheduled run | When an event arrives or a wait ends |
| **How members enter** | An audience or a warehouse event | A realtime event, a realtime audience, or criteria on traits, audience membership, or warehouse data |
| **Shortest wait** | Limited by the schedule | One minute |
| **Where logic runs** | Your warehouse | The event stream, with cached warehouse data for conditions |

For example, if a shopper starts checkout and doesn't order within an hour, the journey can send a reminder event to your messaging tool. Gold loyalty members receive the reminder as soon as the hour ends, and everyone else receives it a day later.

![A realtime journey on the canvas with a Start tile, a Hold until tile, a Segment tile with two branches, a Time delay tile, and a Send to destination tile](https://mintlify.s3.us-west-1.amazonaws.com/hightouch-3c037897/images/real-time/journeys/rtj-canvas.png)

To build a complete version of this journey, see [Example: Recover abandoned checkouts](#example-recover-abandoned-checkouts).

This guide walks you through the five steps to build a realtime journey, then explains [how to configure each tile](#configure-tiles):

1. Create a realtime journey
2. Choose who enters
3. Add tiles
4. Set exit criteria
5. Activate the journey

## 1. Create a realtime journey

1. Go to **[Customer Studio > Journeys](https://app.hightouch.com/journeys?from=docs)**.

2. Click **Add journey**.

3. Select a **Parent model**, then enter a **Journey name** and an optional **Journey description**.

4. Under **Journey type**, select **Realtime**.

5. Click **Create journey**.

   ![The Create journey dialog with Realtime selected as the journey type](https://mintlify.s3.us-west-1.amazonaws.com/hightouch-3c037897/images/real-time/journeys/rtj-create-journey.png)

**Realtime** is unavailable when the parent model has no realtime events. Add a realtime event in your [schema](https://docs.hightouch.com/real-time/setup.md#step-2-create-a-realtime-event), then create the journey.

> [!WARNING]
>
> You can't change the journey type after you create the journey.

The journey opens on the canvas as a draft with a **Realtime** badge. The badge also appears in the journeys list.

![The journeys list with a Realtime badge under the journey name](https://mintlify.s3.us-west-1.amazonaws.com/hightouch-3c037897/images/real-time/journeys/rtj-journeys-list.png)

## 2. Choose who enters

The **Start** tile defines how members enter the journey. Click it, then select an **Entry method**:

| Entry method | Members enter when | Example |
| - | - | - |
| **Performs events** | They perform a realtime event | Performs `Checkout Started` |
| **Enters audience** | They enter or exit a realtime audience | Enters `High-intent pricing visitors` |
| **Criteria met** | They match criteria on traits, audiences, or warehouse data when their next event arrives | `Orders in the last 24 hours` is at least 3 |

![The Start tile set to Performs events with Checkout Started as the entry event](https://mintlify.s3.us-west-1.amazonaws.com/hightouch-3c037897/images/real-time/journeys/rtj-start-tile.png)

### Use an event for entry

1. Select **Performs events**.
2. Under **Entry event**, select a realtime event.
3. Optional: Click **Where property is…** so members enter only when the event has matching properties, such as `cart_value` greater than 100.
4. Optional: Add **Profile criteria** so members enter only when they also match those criteria as the event arrives.
5. Click **Update**.

> [!TIP]
>
> Later tiles can read the properties of the entry event. For example, a **Segment** tile can branch on the `cart_value` of the checkout that started the journey, and a **Send to destination** tile can send `cart_value` to the destination.

### Use a realtime audience for entry

1. Select **Enters audience**.
2. Under **Entry audience**, select **Enters** or **Exits**, then select a [realtime audience](https://docs.hightouch.com/real-time/setup.md).
3. Click **Update**.

### Use criteria for entry

1. Select **Criteria met**.
2. Under **Entry criteria**, add filters on traits, audience membership, or warehouse data.
3. Click **Update**.

Hightouch checks the criteria when a member's next event arrives.

### Configure entry behavior

**Exclusions**, **Re-entry**, **Re-entry time delay**, and **Simultaneous entries** work the same way as in a standard journey. See [Configure entry behavior](https://docs.hightouch.com/customer-studio/journeys/create.md#configure-entry-behavior). **Simultaneous entries** appears only when members enter by event, and it has no unlimited option. Each entry moves through the journey on its own and keeps the properties of the event that started it.

## 3. Add tiles

Add the tiles members should move through after they enter. Drag a tile from the **Add to canvas** panel, or click **+** below an existing tile.

| Tile | Use it to |
| - | - |
| **Time delay** | Wait a fixed amount of time |
| **Hold until** | Wait for an event or a condition, up to a time limit |
| **Segment** | Send members down different branches based on conditions |
| **A/B Split** | Divide members across branches by percentages you set |
| **Send to destination** | Send an event to a destination |
| **Call function** | Run your own code, then continue based on its response |
| **Emit event** | Publish an event that updates traits, audiences, or other journeys |
| **Send email**, **Send SMS** | Send a message from Hightouch |

Click a tile to configure it. See [Configure tiles](#configure-tiles) for each tile's settings.

## 4. Set exit criteria

Exit criteria immediately remove a member from the journey, regardless of their current tile, when an event arrives or a condition becomes true. They also take priority over a tile's own rules. For example, if both the exit criteria and a **Hold until** tile wait for `Order Completed`, the member exits instead of following **Rule met**.

1. In the **Settings** panel, click **Edit**.
2. Click the **Exit criteria** tab.
3. Under **Exit when…**, select **Event is performed** and select a realtime event, or select **Criteria is met** and add filters.
4. Click **Update settings**.

   ![The Exit criteria tab set to exit when the Order Completed event is performed](https://mintlify.s3.us-west-1.amazonaws.com/hightouch-3c037897/images/real-time/journeys/rtj-exit-criteria.png)

## 5. Activate the journey

1. Click **Save changes**.
2. Click **Activate**, then confirm.

   ![The Activate journey confirmation dialog](https://mintlify.s3.us-west-1.amazonaws.com/hightouch-3c037897/images/real-time/journeys/rtj-activate.png)

Members who qualify start to enter when the journey is active.

> [!WARNING]
>
> After you activate a realtime journey, you can pause it, but you can't turn it
> off. While it's paused, the journey accepts no new entries and members stay
> at their current tile.

## Configure tiles

### Time delay

The **Time delay** tile holds each member for a fixed duration, then moves them to the next tile.

Enter a **Time duration** between 1 minute and 180 days. The member moves on when the duration ends. No new event is required.

![A Time delay tile set to 30 minutes](https://mintlify.s3.us-west-1.amazonaws.com/hightouch-3c037897/images/real-time/journeys/rtj-tile-time-delay.png)

Realtime journeys only support waiting for a duration. Waiting until a specific date, a date from a profile property, or the next matching time requires a standard journey.

### Hold until

The **Hold until** tile holds each member until an event arrives, criteria match, or a time limit ends. It creates two branches:

* **Rule met** — The member follows this branch when the event arrives or the criteria match.
* **Rule not met** — The member follows this branch when the **Maximum hold duration** ends first.

To configure the tile:

1. Under **Hold until…**, select **Event is performed** to wait for a realtime event, or **Criteria is met** to wait for a condition on traits, audiences, or warehouse data.
2. Under **Hold criteria**, select the event or add filters.
3. Optional: When waiting for an event, add **Profile criteria** to match the event only for members who also meet those criteria when it arrives.
4. Enter a **Maximum hold duration** between 1 minute and 180 days.
5. Click **Update**.

![A Hold until tile that waits up to one hour for an Order Completed event](https://mintlify.s3.us-west-1.amazonaws.com/hightouch-3c037897/images/real-time/journeys/rtj-tile-hold-until.png)

For example, hold a member who started checkout until `Order Completed` arrives, for up to one hour. Members who order follow **Rule met**. Members who don't order follow **Rule not met** after the hour ends.

### Segment

The **Segment** tile sends each member down one branch. Hightouch checks the segments from highest to lowest priority, and the member follows the first one they match. Members who match none follow **Everyone else**.

To configure the tile:

1. Click **Add segment**.
2. Name the segment and click **Add filter**. Filter on traits, realtime audience membership, parent model columns, or properties of the entry event.
3. Click **Update segment**.
4. Repeat for each segment, then order the segments by priority.

![A segment named Gold members with a filter on the LOYALTY\_TIER property](https://mintlify.s3.us-west-1.amazonaws.com/hightouch-3c037897/images/real-time/journeys/rtj-tile-segment-branch.png)

#### Decide what happens when warehouse data is missing

When a segment filters on warehouse data, such as a parent model column, the tile shows **When a member's warehouse data is missing**. Hightouch checks these conditions against a cached copy of your warehouse data. A member is missing from the cache when the last warehouse pull didn't include them, or when you added or changed the condition after the last pull ran.

| Option | What happens | Use when |
| - | - | - |
| **Treat the condition as not met** | The member moves to the next segment they match, or to **Everyone else** | Sending promptly matters more than choosing the right branch |
| **Keep them at this tile** | The member waits until a warehouse pull includes their data, then moves when their next event arrives | The branch must reflect the member's warehouse data |

![The Segment tile with a prioritized segment list and the option for missing warehouse data](https://mintlify.s3.us-west-1.amazonaws.com/hightouch-3c037897/images/real-time/journeys/rtj-tile-segment.png)

See [Refresh warehouse-backed conditions](https://docs.hightouch.com/real-time/setup.md#refresh-warehouse-backed-conditions) for how the warehouse cache refreshes.

### A/B Split

The **A/B Split** tile divides members across branches by the percentages you set. It works the same way as in a standard journey. See [A/B Split](https://docs.hightouch.com/customer-studio/journeys/tiles.md#a/b-split).

To measure which branch performs better, save the journey, open the tile, and under **Measurement configuration**, select **Create experiment**. Experiments on realtime journeys need [audience snapshots](https://docs.hightouch.com/customer-studio/audience-snapshots.md#enable-snapshots) turned on for the parent model's source. View results under **Intelligence > Experiments**.

### Send to destination

The **Send to destination** tile sends an event to a destination each time a member reaches the tile.

1. In **Destination**, select a destination. The list shows the destinations in your workspace that support [event streaming](https://docs.hightouch.com/events/event-streaming.md#supported-destinations).
2. In **Event type**, select the kind of event to send. The options depend on the destination. For example, Braze offers **Custom Event**, **Track Purchase**, and **Upsert User**.
3. Complete the destination configuration and map fields to the destination.
4. Click **Update**.

![A Send to destination tile that sends a Custom Event to Braze](https://mintlify.s3.us-west-1.amazonaws.com/hightouch-3c037897/images/real-time/journeys/rtj-tile-send-to-destination.png)

You can map parent model columns, traits, properties of the entry event, and static values. Field values come from the member's values when they reach the tile.

### Call function

The **Call function** tile runs a [function](https://docs.hightouch.com/events/functions/overview.md) each time a member reaches the tile. The member waits at the tile until the function responds. Use it to call an external service mid-journey, for tasks such as generating a discount code or checking inventory.

1. In **Function**, select a function.
2. Under **Request payload**, click **Add property** for each value to send. Name the property, then select a parent model column, a trait, a property of the entry event, a journey value, or a static value.
3. Under **Response**, select an existing realtime event for **Response event**, or select **New event model** and enter a **Name** and an **Event source**. Hightouch publishes the function's response as this event.
4. Optional: Click **Where property is…** to add conditions the response must meet to count as a success.
5. Click **Update**.

![A Call function tile with a request payload property and a new response event model](https://mintlify.s3.us-west-1.amazonaws.com/hightouch-3c037897/images/real-time/journeys/rtj-tile-call-function.png)

With no conditions, every response is a success and the member continues to the next tile. With conditions, the tile creates two branches: **Success** for responses that match, and **Everyone else** for the rest.

A new response event model includes the `userId`, `timestamp`, `properties.status`, and `properties.error` fields. Add **Custom fields** for other values your function returns. Hightouch reads custom fields from `properties.data` in the response.

> [!NOTE]
>
> Clicking **Update** creates the new event model, even if you don't save the
> journey.

### Emit event

The **Emit event** tile publishes an event for the member each time they reach the tile. The event flows back into Hightouch like any other realtime event, so it can update realtime traits, change realtime audience membership, or enter the member into another realtime journey.

1. In **Event**, select a realtime event, or select **New event model** and enter a **Name** and an **Event source**.
2. Optional: Under **Custom fields**, click **Add property** for each value to include. Every event includes `userId` and `timestamp`.
3. Optional: Expand **Advanced configuration** to change how the tile behaves.
4. Click **Update**.

![An Emit event tile creating a new Offer Sent event model, with the advanced configuration expanded](https://mintlify.s3.us-west-1.amazonaws.com/hightouch-3c037897/images/real-time/journeys/rtj-tile-emit-event.png)

**Advanced configuration** has two settings, both on by default:

| Setting | When it's on | Turn it off when |
| - | - | - |
| **Wait for the event before continuing** | The member stays at the tile until Hightouch processes the event, so later tiles see its updates | Later tiles don't depend on the event's updates |
| **Also send to event syncs** | Hightouch sends the event to the warehouse and destination syncs set up for its event source | The event is only for use inside Hightouch |

### Send email and Send SMS

The **Send email** and **Send SMS** tiles send a message directly from Hightouch. They appear when [Delivery](https://docs.hightouch.com/native-delivery/journeys.md) is set up for the journey's parent model and the channel is configured.

Realtime journeys send each message as soon as the member reaches the tile, so scheduled sends aren't supported. If a member reaches the tile during quiet hours, Hightouch skips the message instead of delaying it. Only templates marked as available for realtime journeys can be used.

## Calculate journey traits

A journey trait is a realtime trait that belongs to one journey and measures only what happens during a member's current entry. It calculates a value from the realtime events recorded after the member reaches a tile you select, and clears when the entry ends. For example, you can count the `Product Viewed` events that occur after a member starts checkout. Use journey traits in **Segment**, **Hold until**, and exit criteria.

1. Save the journey. A journey trait must start from a tile that's already saved.
2. In the **Settings** panel, click **Edit**, then click the **Traits** tab.
3. Click **New trait**.
4. Enter a **Name**, then select the **Event** and the **Type**: **Count**, **Sum**, **Average**, **Last**, **First**, or **Realtime formula**.
5. In **Anchor tile**, select the tile where Hightouch starts calculating the trait for each member.
6. Optional: Add **Event filters** on the event's properties.
7. Click **Create trait**.

![The Create journey trait form counting Product Viewed events from the Start tile](https://mintlify.s3.us-west-1.amazonaws.com/hightouch-3c037897/images/real-time/journeys/rtj-journey-trait.png)

A journey trait belongs to one journey. To calculate a value you can reuse across audiences and journeys, create a [realtime trait](https://docs.hightouch.com/customer-studio/realtime-traits.md).

## Example: Recover abandoned checkouts

**Goal:** Remind shoppers who start checkout but don't order within an hour. Gold loyalty members get the reminder after about an hour. Everyone else gets it a day later.

The journey uses:

* Two realtime events: `Checkout Started`, with a `cart_value` property, and `Order Completed`
* A `LOYALTY_TIER` column on the parent model
* A messaging destination that supports event streaming, such as Braze

**Journey setup:**

1. [Create a realtime journey](#step-1-create-a-realtime-journey).
2. On the **Start** tile, select [**Performs events**](#use-an-event-for-entry) and set **Entry event** to `Checkout Started`. Under **Re-entry**, select **Unlimited entries** so a shopper can enter again on a later checkout.
3. Add a [**Hold until**](#hold-until) tile after the **Start** tile. Select **Event is performed**, select `Order Completed`, and set **Maximum hold duration** to 1 hour. Leave the **Rule met** branch empty. The exit criteria in step 7 remove shoppers who order.
4. On the **Rule not met** branch, add a [**Segment**](#segment) tile. Add a segment named `Gold members` with the filter `LOYALTY_TIER` equals `Gold`. Under **When a member's warehouse data is missing**, keep **Treat the condition as not met** selected so a shopper whose loyalty tier isn't cached yet receives the next-day reminder.
5. On the `Gold members` branch, add a [**Send to destination**](#send-to-destination) tile. Select your messaging destination and an **Event type** that sends a custom event. For Braze, select **Custom Event**. Enter `Checkout Abandoned` as the event name, and map the entry event's `cart_value` property so the message can show it.
6. On the **Everyone else** branch, add a [**Time delay**](#time-delay) tile set to 1 day. After it, add a second **Send to destination** tile with the same settings.
7. [Set exit criteria](#step-4-set-exit-criteria) to **Event is performed** with `Order Completed`. A shopper who orders at any point — during the one-hour hold or the one-day wait — exits before Hightouch sends a reminder.
8. In your messaging tool, create a campaign triggered by the `Checkout Abandoned` event. Then [activate the journey](#step-5-activate-the-journey).

**Result:**

* A shopper who orders within the hour gets no reminder.
* A Gold member who hasn't ordered gets the reminder about an hour after they start checkout.
* Any other shopper gets the reminder about 25 hours after they start checkout, unless they order first.

> [!TIP]
>
> Use the same three-part pattern for other follow-ups: an entry event, a wait,
> and exit criteria on the goal event. For example, start from a sign-up event
> and exit when the member finishes onboarding.

## Edit an active journey

You can edit a realtime journey while it's active. Click **Edit**, make your changes, then click **Save changes**. Hightouch checks that the journey is complete before saving.

Members already in the journey keep their place, with two exceptions:

* **Deleting a tile** — Members still at the tile exit the journey when their next event arrives.
* **Changing the entry event** — Members already in the journey keep the properties they entered with. Only new entries use the new event.

## Constraints

Keep the following limitations in mind when designing realtime journeys:

* **Time delay** and **Maximum hold duration** must be between 1 minute and 180 days.
* **Set variable** and **Assign coupon** tiles aren't available in realtime journeys.
* Entry by event doesn't support **Include past events**. Only events that arrive after you activate the journey can enter a member.
* [Subsets](https://docs.hightouch.com/customer-studio/subsets.md) aren't applied when members enter a realtime journey.
* Conditions can't count how many times an event happened. Use a [realtime trait](https://docs.hightouch.com/customer-studio/realtime-traits.md) or a [journey trait](#calculate-journey-traits) with the **Count** type, then filter on the trait.
* Conditions can't check membership in another journey.
* **Run test** isn't available for realtime journeys.
* Journey templates and variables aren't available for realtime journeys.

## Best practices

When designing realtime journeys:

* Use a specific entry event, such as `Checkout Started`, and add property filters to keep entry narrow.
* Give every **Hold until** tile a **Maximum hold duration** that matches how long the follow-up stays useful.
* Set exit criteria on the goal event, such as `Order Completed`, so members stop receiving follow-ups once they convert.
* Keep **Treat the condition as not met** selected on **Segment** tiles unless a branch must wait for warehouse data.

## Next steps

* [Set up realtime traits](https://docs.hightouch.com/customer-studio/realtime-traits.md) to calculate values you can use in journey conditions and payloads.
* [Set up realtime audiences](https://docs.hightouch.com/real-time/setup.md) to create realtime events and audiences for journey entry.
* [Journeys overview](https://docs.hightouch.com/customer-studio/journeys) to learn more about standard journeys.
* [Event streaming](https://docs.hightouch.com/events/event-streaming.md#supported-destinations) to see which destinations a **Send to destination** tile can use.
