You can personalize a message inside a Customer Journey with attributes of the event that triggered it. Here is how it works:
-
Use a preset for the message. Event-attribute personalization is available for presets only. If you type the content inline in the journey element, you can personalize it with tag values but not with event attributes. So save your push or email content as a preset first.
-
Add Dynamic content placeholders to the preset. In the preset editor, click the Personalization button at the top right of the field you want to personalize (title, message text, and so on) and insert a placeholder. A placeholder has the form:
{PlaceholderName|FormatModifier|DefaultValue}for example
{brand|CapitalizeFirst|our store}. The pipe characters separate the format modifier (for text values:regular,CapitalizeFirst,CapitalizeAllFirst,UPPERCASE,lowercase) and the default value used when no value is available. There is no{EventName|attributeName}syntax - the event name is not part of the placeholder. -
Bind the event attributes in the journey. On the Push or Email element of your journey canvas, turn on Personalise message with event attributes and map each placeholder in the preset to the event attribute that should fill it. If you prefer Liquid, write the preset text with Liquid objects such as
{{ brand }}, enable Overwrite Liquid placeholders and select the event: every attribute of that event becomes a Liquid variable with the same name. -
Test it. Create a small test segment (for example from a CSV of your test device identifiers), trigger the entry event with realistic attribute values, and confirm the message renders the attribute values rather than the raw placeholder or the default.
See Dynamic Content and Liquid Templates in journeys and Dynamic content.
Comments
0 comments
Please sign in to leave a comment.