Personalize templates with event and cloud profile attributes
This feature is available in Accelerator version 26.4.2.
Send messages that reflect what a user just did, the moment they do it. When a user adds a pair of running shoes to their cart, the message a triggered journey sends seconds later can name the shoes, the size, and the price, because the template reads those values straight from the event that started the journey.
Templates for triggered journeys draw on two sources of data:
- Event attributes - The values carried by the event that started the journey, such as the product name in an add_to_cart event. You define these attributes in Manage events.
- Cloud profile attributes - The recipient data that MessageGears Cloud stores for each user, such as a loyalty tier or a preferred store. For more information, see Cloud profile overview.
Scheduled journeys, marketing campaigns, and experiments continue to personalize with user profile and audience data. For more information, see Personalizing your email content.
Before you begin​
Before you personalize a template with event attributes, make sure that:
- The event exists in Admin > Data > Manage events and has at least one attribute defined. For more information, see Define event attributes.
- The event is the entry event of the triggered journey that uses the template. Accelerator renders event attributes only from the event that started the journey, so an attribute from any other event renders empty.
- To use cloud profile attributes, at least one cloud profile sync has run so the attributes exist. For more information, see Create a cloud profile sync.
Connect a template to an event​
Accelerator shows event attributes in a template only after you connect the template to an event. You make the connection when you set the template's sample data.
To connect a new template to an event:
- Create a template. For more information, see Creating and managing templates.
- In the create modal, open the Sample data list and select one of the following tabs:
- Cloud profile - Personalize the message a triggered journey sends in real time, as soon as a user enters, or
- User profile - Personalize messages that a triggered journey sends during scheduled evaluation.
- In the Event field, select the event that starts your triggered journey.
The Event field displays only when you select Cloud profile or User profile. The event you select determines which event attributes are available for personalization in the template.

To change the sample data or the event on an existing template, select Configure Sample Data from the template. On the Sample data configuration page, choose a Sample data type:
| Sample data type | Use it to |
|---|---|
| Audience/blueprint | Personalize marketing and experiment messages. |
| User profile | Personalize scheduled journey messages. |
| Cloud profile | Personalize triggered journey entry messages. |
| Upload recipient file | Personalize with recipients from a CSV or XML file. |
When you select Cloud profile, supplemental data isn't available, because the real-time message reads only cloud profile and event data.
Review sample event data​
The Event data tab on the Sample data configuration page lists the attributes of the template's event and the sample values Accelerator uses to render previews. The tab sits next to Sample recipients and displays only when the sample data type is User profile or Cloud profile.
To review the event's attributes and sample values:
- On the Sample data configuration page, select the Event data tab.
- In the Select event field, select the event.
- To load the latest attribute definitions from Manage events, select Refresh event data.
The table lists each attribute in the Attributes column with its value in the Sample values column. Nested attributes display as dot-separated paths. For example, a tier property inside a customerLoyaltyDetails object displays as customerLoyaltyDetails.tier.
Sample values come from the attribute's enum default or sample values in Manage events. For more information, see Define event attributes.

Insert event and cloud profile attributes​
How you insert an attribute depends on the channel. Email uses the Personalization Helper. Push, SMS/MMS, and Inbox use the Insert recipient data menu.
Email​
To insert an event attribute in an email:
- Open the Personalization Helper from the email editor.
- Expand the Event data section. The section lists every attribute of the template's event, including the properties of objects and arrays of objects.
- Select an attribute to copy its personalization tag, then paste the tag into the subject line, preheader, or HTML body.
The Event data section copies a tag in the form ${Event.attribute_name}. Boolean attributes copy with a ?c suffix, such as ${Event.is_member?c}, so the value renders as true or false.

Push, SMS/MMS, and Inbox​
To insert an event attribute in a push, SMS/MMS, or Inbox field:
- In a field that supports personalization, select the lightning bolt icon. The Insert recipient data menu opens.
- Select the Event attributes tab. The tab names the template's event.
- In the Event attribute field, select an attribute. Object properties and array items are grouped under their parent attribute.
- If the attribute is inside an array, enter the Array item to use. The first item is 0.
- (Optional) To change how a text value renders, select a Lettercase.
- Select Insert.
Accelerator inserts the attribute as a chip in the field. The Event attributes tab is available in these fields:
| Channel | Fields |
|---|---|
| Push | Every field that supports personalization. |
| SMS/MMS | Message body, dynamic short code, and MMS image URL. |
| Inbox | Subject, message, thumbnail URL, and action value. |
If the template isn't connected to an event, the tab displays "No event selected. Add an event to your sample data configuration".
To insert a cloud profile attribute, select the Recipient data tab instead. When the template's sample data is a cloud profile, the tab lists the cloud profile attributes.

Personalization syntax​
Event attributes use the Event root and cloud profile attributes use the Recipient root. Both follow FreeMarker syntax, so the inserted tags work alongside any other FreeMarker in the template.
| Attribute shape | Event attribute | Cloud profile attribute |
|---|---|---|
| Top-level value | ${Event.item_name} | ${Recipient.loyalty_tier} |
| Property of an object | ${Event.product.color} | ${Recipient.address.city} |
| Item in an array of values | ${Event.sizes[0]} | ${Recipient.favorite_brands[0]} |
| Property of an item in an array of objects | ${Event.items[0].sku} | ${Recipient.orders[0].order_id} |
Array indexes start at 0, so [0] returns the first item.
Event attributes support one level of nesting: an object or an array of objects contains string, number, boolean, or date properties. A tag must point to a single value. A tag that points to a whole object, such as ${Recipient.address}, causes a rendering error in preview and in sends.
Preview and test​
Preview your content with sample event values before the journey goes live. Preview and test render ${Event.*} tags with the sample values from the Event data tab, and ${Recipient.*} tags with the selected sample recipient's cloud profile or user profile data.
To preview and test a template:
- Select Preview & Test.
- Review the rendered content for each sample recipient.
- In the Send a test message section, send the message to yourself or your test devices.
In the Event attributes section, each attribute starts with its first sample value. To render a different value, choose another sample value, or type your own and select Use. For example, change item_name from pants to shoes to check how the message reads for another product.
Preview and test render event attributes in email, push, SMS/MMS, and Inbox content. For Inbox, use Preview & Test on the push template that contains the Inbox content.
If a tag can't render, the preview displays an error banner. The most common causes are a tag that points to a whole object, and a template whose sample data has no event selected.
You can also preview and test from the message tiles in a triggered journey. The real-time message tile previews with cloud profile sample recipients, and message tiles in the scheduled section preview with user profile recipients. Both include the Event attributes section for the journey's entry event. For more information, see Create a triggered journey.
How attributes behave in a triggered journey​
- Entry event only - A triggered journey renders event attributes from the event that started the journey. Attributes from any other event aren't available.
- Real-time messages - The message a triggered journey sends as soon as a user enters reads only cloud profile attributes and entry event attributes. Supplemental data and blueprint data aren't available to it. For more information, see Create a triggered journey.
- Scheduled messages - Messages that a triggered journey sends during scheduled evaluation personalize with the user profile, and with the entry event's attributes when the template is connected to that event.
- Defined attributes only - MessageGears Cloud stores only the attributes defined on the event in Manage events. Any other property sent with the event is ignored.
- Kept only while the user is in the journey - MessageGears keeps a user's entry event attributes for personalization while that user is in the journey, and drops them when the user exits. Event attributes aren't stored against the recipient and aren't written to your data warehouse.
Related articles​
- Learn how triggered journeys start, wait, and send in real time. For more information, see Triggered journeys overview.
- Build a triggered journey and add a real-time message. For more information, see Create a triggered journey.
- Define the attributes an event carries. For more information, see Event setup for conversion reporting.
- Bring recipient data into MessageGears Cloud. For more information, see Cloud profile overview.
- Personalize email content with audience and user profile data. For more information, see Personalizing your email content.