Build a real-time journey

Real-time journeys activate customers throughout the day, as the events you send to Amperity arrive. Unlike a batch journey, which activates its audience on a schedule, a real-time journey activates each customer individually, in response to their own events.

A customer enters the moment they:

  • join a real-time segment; or

  • send an event, such as adding to a cart or submitting a form.

They move through the journey’s steps, pausing at each Delay, and leave the moment they meet an exit condition. Use a real-time journey for programs where timing matters, such as abandoned cart recovery, welcome series, order and booking messages, and loyalty milestones.

This page describes how real-time journeys differ from batch journeys. For how real-time journeys behave, see Journeys in the real-time reference.

How real-time journeys differ from batch journeys

Real-time journey

Batch journey

Runs

Continuously

On a schedule

Entry

Real-time segments, or a trigger event, from one profile collection

Database segments

Exclusion

Real-time segments

Database segments

Exit conditions

Event type, real-time segment, or real-time journey

Segments

Goal conditions

None

Supported

Delay units

Minutes, hours, days, weeks, or months

Hours, days, weeks, or months

Quiet hours

Supported

Not available

Destinations

Real-time destinations

Destinations for journeys and campaigns

Measurement

Travel log, with a control group from a percent split

Goals, milestones, conversion metrics, and the travel log

Choose the kind of journey under Select type when you create it:

  • Batch segment audience is a batch journey.

  • Real-time segment audience is a real-time journey that customers enter by joining a real-time segment.

  • Trigger event is a real-time journey that customers enter by sending an event.

Changing the type clears the journey’s entry conditions, exit conditions, and linked journeys, so decide which kind of journey you are building before you configure it.

Who enters and who leaves

Entry conditions are required, and the journey’s type decides how customers enter:

  • Segment membership. A Real-time segment audience journey Includes one or more real-time segments. A customer enters the moment they join one of them, and travels the journey once at a time.

  • Event arrival. A Trigger event journey names one event type. A customer enters the moment an event of that type arrives for them. Depending on the journey’s Event key, they travel the journey once at a time, or once for each order, cart, or booking the events are about. See Start a journey on an event.

A journey enters customers by segment membership or by event arrival, never both. Either way, Exclude real-time segments of customers who must never enter, such as customers who have not consented to the channel. All of a journey’s segments must belong to the same profile collection.

Exit conditions remove a traveler from the journey immediately. A traveler exits when they:

  • receive an event of an Event type, such as an order, which exits them the moment they purchase;

  • join a Real-time segment, such as a segment of customers who purchased;

  • enter another Real-time journey that takes priority.

Leaving the entry segment does not remove a traveler from the journey. A customer who abandons a cart and then buys it stays in an abandoned cart journey, and keeps receiving its messages, until an exit condition removes them or they reach the end of their path. Add an exit condition for every reason a traveler should stop.

Re-entry controls whether a customer can go through the journey more than once:

  • Allow re-entry lets a customer enter again after they finish their previous path.

  • Cooldown period sets how long they must wait before entering again, from minutes to months.

  • Linked journeys keeps a customer out while they are in another journey you name, or within that journey’s cooldown, or when that journey doesn’t allow re-entry.

Start a journey on an event

A Trigger event journey starts a customer on the journey each time they send a particular event, without a segment. Use it for moments that are events rather than audiences: a cart started, a form submitted, a booking made, a flight delayed.

Its entry condition has three settings:

  • Event is the event type that starts the journey, listed under the event stream it arrives on. Event types are set up by your operators on an event stream.

  • Event key is the event property that decides how many times one customer can be in the journey at once. It defaults to amperity_id.

  • Profile is the profile collection that matches the event to a customer. Only profile collections that subscribe to the event’s stream are offered, and the profile can’t be changed after the journey is created.

Choose the event key

  • amperity_id keys the journey to the customer. A customer travels the journey once at a time, however many trigger events they send.

  • An event property, such as a cart ID, an order ID, or a confirmation number, keys the journey to that property. Each unique value travels the journey separately: a customer with three open carts is in the journey three times, and each cart has its own delays, splits, and messages. A Percent Split assigns paths by customer, so all of a customer’s carts take the same percent-split path.

An event that has no value for the event key property doesn’t start the journey.

Re-entry and exits by event key

When the event key is an event property, re-entry and exits apply to each value of it, not to the customer:

  • Allow re-entry and Cooldown period decide whether the same value can travel the journey again. Without Allow re-entry, each value travels the journey once. Another event with a value that is already traveling doesn’t start it again.

  • An Event type exit condition has its own Event key. An exit event removes only the traveler whose value matches. A purchase event for one cart ends that cart’s journey, and the customer’s other carts keep traveling.

  • A Real-time segment exit condition applies to the customer, not to one value. When a customer joins an exit segment, every value they have traveling the journey exits: all of their carts leave the journey at once.

Set each exit event’s Event key to a property that holds the same values as the trigger event’s key, such as the cart ID on the order event. When the journey’s event key is amperity_id, set each exit event’s Event key to amperity_id too. An exit event whose key doesn’t match the journey’s never removes a traveler. Amperity warns you when an exit event is keyed by amperity_id and the journey by an event property, or the reverse.

Use the event’s details

A traveler carries the event that started them through the journey, including across Delay and Quiet Hours steps:

  • A Conditional Split can test the event’s properties, such as the cart total. See Steps.

  • An Activate step can send the event’s properties, such as the order number, to the destination with the profile attributes.

Steps

A real-time journey has the same steps as a batch journey, plus Quiet Hours:

  • Activate sends the traveler to one or more real-time destinations, with the profile attributes the destination needs, such as the items in their cart. On a Trigger event journey, set Source to Event properties to also send properties of the event that started the traveler, such as an order number. Some destinations also take payload settings, such as a campaign ID or an event name. Real-time destinations are set up by your operators; a real-time journey can’t send to a batch destination. See Real-time destinations for the supported connectors.

  • Delay waits a set time before the traveler continues, from minutes to months.

  • Quiet Hours holds travelers until a quiet window ends in their local time, so that messages are not sent overnight. The window has a Start and an End, a Timezone attribute on the profile that holds each customer’s time zone, and a Fallback timezone for customers whose time zone is unknown. These settings apply to every Quiet Hours step in the journey.

  • Conditional Split sends travelers down different paths. Each path matches a real-time segment, or Custom criteria: conditions on the traveler’s profile attributes, such as their value tier. On a Trigger event journey, Custom criteria has Trigger event conditions on the properties of the event that started the traveler, and Profile conditions on their profile attributes; a traveler matches the path only when both match. Travelers go down the first path they match, and travelers who match none go down No match.

  • Percent Split sends travelers down randomly assigned paths by percentage. Include control adds a Control Group path for travelers who receive nothing, so that you can measure the journey’s effect.

  • Merge brings split paths back together.

Test and run a real-time journey

A new real-time journey is Paused. Before it sends to customers:

  • Test it. Set Destinations to Test to run the journey without sending to your live destinations, and review what the journey did with View test results. Set Destinations back to Live when you’re ready.

  • Turn it on. Set Status to Running and save the journey. From then on, a customer enters the moment they join an entry segment, or the moment a trigger event arrives for them. A customer who was already in the segment when the journey started does not enter until they leave the segment and join it again.

If customers don’t enter the journey or messages don’t send, see Troubleshoot real-time.

To stop a running journey, set Status to Paused, and choose what happens to the customers in it:

  • Remove travelers, which is recommended, ends the journey for every traveler, and nothing more is sent to destinations.

  • Drain travelers lets current travelers finish their paths, and lets no new travelers enter.

Measure a real-time journey

Real-time journeys don’t track goals, milestones, or conversion rates. To measure one, use its travel log, which records every step each traveler takes, the percent-split path they took, whether that path is the control, and why they exited. On a Trigger event journey keyed by an event property, the travel log’s event_id holds the event key value, so that you can follow each cart or order through the journey. A row for any exit other than an Event type exit holds the customer’s Amperity ID instead.

The travel log is sent to a destination on a schedule: choose a JTL Destination and a Recurrence in the journey’s settings. The travel log goes to a destination for journeys and campaigns, not to a real-time destination. To measure lift, compare the outcomes of travelers on each percent-split path with those on the Control Group path.