# Real-time Triggered Campaigns

A real-time triggered campaign is an Always-on Campaign in Engage Studio that sends a message to one customer each time a Real-time 2.0 trigger fires, such as after a cart abandonment or a price drop. The campaign stays Live and accepts every trigger event, so you write the content once and each qualifying customer receives it when the event occurs. Use this approach when a message should follow an individual behavior within minutes, rather than go out in a scheduled batch.

This page explains what to prepare for each channel, how personalization for trigger data differs from batch campaigns, and how to publish the campaign in the right order.

## Before you begin

Prepare the following before you create the campaign.

- A Parent Segment with Real-time 2.0 set up. See [Real-time 2.0 Getting Started](/products/customer-data-platform/real-time/getting-started).
- A real-time journey whose stage has a triggered activation for Engage Studio. The data engineer sets its authentication and payload. See [Real-time Trigger Activation for Engage Studio](/products/marketing-cloud/engage-studio/real-time-trigger-activation-for-engage).
- The channel for your campaign:
  - **Email:** a sender profile. See [Sender Configuration](/products/marketing-cloud/engage-studio/channels/email/email-sender-configuration).
  - **Mobile Push:** mobile push set up for your app. See [Mobile Push Setup](/products/marketing-cloud/engage-studio/channels/mobile-push/mobile-push-setup).
  - **LINE:** a LINE Official Account connected to Engage Studio. See [LINE OA Setup](/products/marketing-cloud/engage-studio/channels/line/line-oa-setup).
- Permission to create and manage Always-on Campaigns. See [Permissions](/products/marketing-cloud/engage-studio/permissions).


## Channels for real-time triggered campaigns

The channel is set when you create the campaign, and you can't change it afterward. Each channel sends a different kind of message.

| Channel | What the customer receives | What you configure in the campaign |
|  --- | --- | --- |
| Email | An email to the customer's email address | Sender profile, template or custom content, subject, and preview text |
| Mobile Push | A push notification in the app | Push title and message, with optional actions and deep links |
| LINE | A LINE message to a customer who has added your LINE Official Account as a friend | Up to five messages (text, imagemap, or Flex), and the LINE Official Account that sends them |


## How personalization differs from batch campaigns

In a batch campaign, personalization values come from a segment. You map the segment's columns to the message, and Engage Studio sends one message to each profile in the segment at the scheduled time. In a real-time triggered campaign, there is no segment to read from at send time. Each trigger event carries the recipient and the values for that one customer, and the Liquid tags in the message read those values when the message is built.

So when you write personalization, use the key names in the payload of the triggered activation, not the attribute names in a segment.

For example, suppose the trigger sends `first_name` and `cart_url` for each customer. The message can use these keys as follows.

```liquid
Hi {{ profile.first_name | default: "there" }},
You left items in your cart. Complete your order here: {{ profile.cart_url }}
```

Keep these rules in mind when you write the content.

- Use the key names agreed with the data engineer. If the template uses a key that the trigger doesn't send, the message can be rejected.
- Add a `default` filter to any value that might be missing.
- Don't use `activation_id` or `journey_id` for your own values. When the trigger includes activation and journey IDs, they overwrite any value with the same key.


For the syntax of merge tags and Liquid in email, see [Email Personalization](/products/marketing-cloud/engage-studio/channels/email/personalization-using-merge-tag-and-liquid-template).

## Create the campaign

Create an Always-on Campaign in Engage Studio. For the creation steps, the campaign statuses, and the content tabs, see [Always-on Campaigns](/products/marketing-cloud/engage-studio/always-on-campaigns).

When you create the campaign, select the Parent Segment whose real-time events will trigger it. You can't change the Parent Segment after you launch the campaign.

Write the content with the key names in the payload of the triggered activation. Add a `default` filter to every value that might be missing.

## Set up the real-time journey

A real-time journey connects the trigger to the campaign. A journey has an entry, a stage that contains the triggered activation, and an end. Create the journey for the Parent Segment, and add a triggered activation to the stage.

![Real-time journey canvas with stage1 containing an Engage trigger activation between entry1 and End](/assets/real-time-journey-with-engage-trigger.2bbf54ad6765780b106c5f1130e3199173b7c126ebe67a508e0d7e96279b60be.5be018a0.webp)

For the steps to create a real-time journey, see [Creating a Real Time Journey](/products/customer-data-platform/journey-orchestration/realtime/creating-a-real-time-journey). For the authentication and the payload of the triggered activation, see [Real-time Trigger Activation for Engage Studio](/products/marketing-cloud/engage-studio/real-time-trigger-activation-for-engage).

The keys in the payload are the keys that your content reads as `{{ profile.<key> }}`. Agree on these key names with the data engineer before you write the content.

## Test before you launch

Test sends check the layout and content of the message. They don't prove that the trigger sends the same key names that your template uses. Confirm the key names with the data engineer before you launch.

## Launch and publish in order

Publish the campaign in this order.

1. Finish the content and check it with test sends.
2. Launch the campaign so that its status changes to Live.
3. Ask the data engineer to turn on the trigger.


If the trigger is turned on before the campaign is Live, the sends are rejected and aren't retried. Launch the campaign first.

## Pause, change, and finish the campaign

- **Pause:** A paused campaign doesn't accept activations. Trigger events that occur while the campaign is paused are rejected and aren't retried.
- **Change:** Changes to the content, pauses, and deletions can take up to 60 seconds to apply to trigger sends.
- **Finish:** Finishing the campaign is permanent. A finished campaign can't be relaunched.


## Limits

- Each trigger event sends one message to one recipient.
- Every trigger event uses the content of the campaign. You can't choose a different template for each event.
- The Parent Segment can't be changed after the campaign is launched.


## Next steps

- [Real-time Trigger Activation for Engage Studio](/products/marketing-cloud/engage-studio/real-time-trigger-activation-for-engage) explains what the trigger sends for each channel, and how to read the result of each send.
- [Always-on Campaigns](/products/marketing-cloud/engage-studio/always-on-campaigns) explains the campaign statuses and the campaign tabs.