You can use data from the event that triggers a Customer Journey to personalize the emails sent within that journey.
Here's how:
- Set up your Customer Journey: Start the journey with an Event Trigger element, selecting the specific event that contains the data you want to use (e.g., an event like
Coupon_Generated
which has an attribute containing the actual promo code). - Add the Email Element: Add a Send Email element after the Event Trigger.
- Configure Custom Data Mapping:
- In the Send Email element's settings, find the section for mapping data.
- Enable the option to use Custom data from the triggering event.
- Map the specific attribute from your event (e.g.,
coupon_code
) to a placeholder name that you will use in your email template (e.g.,promo_placeholder
). - Example: If your event
Coupon_Generated
has an attributecoupon_code
with the valueSAVE15
, you would map the event attributecoupon_code
to a placeholder likepromo_placeholder
.
- Use the Placeholder in Your Email Template:
- Edit the email template you are using in the Send Email element.
- Insert the placeholder where you want the event data to appear, using the appropriate syntax (this might look like
{{ custom_data.promo_placeholder }}
or similar, depending on the template engine). - Important: The placeholder name you use in the template (e.g.,
promo_placeholder
) must correspond to an existing Tag or Attribute name within your system for the template validation to pass, even though the value will be dynamically replaced by the event attribute during the journey execution.
When the journey runs, the Send Email element will automatically replace the placeholder in the template with the actual value from the specified attribute of the triggering event for each user.
Comments
0 comments
Article is closed for comments.