Skip to main content

Set up your emails with Braze

How to set up your email flows

nawel avatar
Written by nawel
Updated today

Before you start

After integrating Braze with your Loyoly account, you will be able to create your email flows. Follow this guide to understand how they work and how to modify them.

💡 If you haven’t completed the integration yet, follow our guide to connect Loyoly with Braze.


Set up your flows

In Braze, campaigns are email sequences triggered by specific events and can include one or more steps.

📝 Note: Make sure to manually disable emails in your Loyoly account to prevent your customers from receiving duplicate emails after setting up email flows in Braze.

Here are the emails you can configure:

  • Points earned

  • Reward

  • Reward reminder

  • Unused rewards

  • Referral

  • Referral reminder

  • Referral confirmed

  • Post-purchase

  • Points expiration

If VIP tiers are enabled (via Braze flows):

  • Tier reached

  • Birthday

If product testing is enabled:

  • Product test: approved

  • Product test: declined

💡 Please note

We have included only the variables we use.

On your side, you can also add the following variables:

  • Customer’s first name

  • Total points

  • Your brand name

  • Link to your website

In the Referral section:

  • Amount of the referral reward

Similarly, the CTA link should be configured on your side: it can lead to your loyalty program page or a product page

For each email, you will need to select the “Perform Custom Event” action and the trigger for each email. All triggers are detailed later in our guide.


Section 1: Missions

Points earned

This email is automatically generated upon the successful completion of a mission.

  • For the trigger, here is the starting metric to select: points_earned

  • The list of variables related to the event:

points_earned: points earned from the completed mission

mission_name: name of the completed mission

  • To configure it:

Subject :

You have earned {{event_properties.${points_earned}}} points!

Body:

You have just won {{event_properties.${points_earned}}} points!

You have completed the {{event_properties.${mission_name}}} mission.

You can continue to accumulate points by completing further missions to gain access to exclusive rewards.

CTA: Earn more points

Section 2 : Rewards

Rewards

This email is automatically sent when a user redeems their points for a reward.

  • For the trigger, here is the starting metric to select: reward_redeemed

  • The list of event-related variables:

reward_name: the reward the user unlocked

reward_points: the number of points for the reward

reward_image: the image of the reward

reward_code: the reward code

reward_link: link to the reward

reward_expiration: expiration date of the code

reward_condition: minimum purchase condition

  • To configure it:

Subject :

Get your reward {{event_properties.${reward_name}}}

Body : Distribution via a code

Enjoy your reward {{event_properties.${reward_name}}}. 

Congratulations! You have used {{event_properties.${reward_points}}} points to claim the reward {{event_properties.${reward_name}}}.

Here’s how to redeem your reward:
Code to use: {{event_properties.${reward_code}}}
On the site: (add your store link)
Before: {{event_properties.${reward_expiration}}}
Minimum purchase amount: {{event_properties.${reward_condition}}}

You can access this information anytime from the program.

CTA: Redeem my reward

Body : Send the reward yourself

Enjoy your reward {{event_properties.${reward_name}}}.

Congratulations! You have used {{event_properties.${reward_points}}} to claim the reward {{event_properties.${reward_name}}}.

(Your brand name) will contact you to send you the reward.

You can access this information anytime from the program.

CTA: Redeem my reward

Rewards reminder

This email is generated when a user has redeemed their points for a reward but has not claimed it within 30 days.

  • For the trigger, here is the starting metric to select: reward_unused

  • The list of event-related variables:

reward_name: name of the reward

reward_date: date the reward was obtained

reward_code: code to use for the reward

reward_link: link to the reward

reward_image: image of the reward

reward_expiration: expiration date of the code

  • To configure it:

Subject:

Get your reward

Body:

Your reward is waiting for you! 

Congratulations, you have {{person|lookup:"Loyoly_Point_Balance"|default:"0"}} points and can unlock the reward {{event_properties.${reward_name}}}.

You can also keep collecting points to get the{{event_properties.${next_reward_name}}} at {{event_properties.${next_reward_points}}}.

You can redeem your points now, or save them for future rewards.

CTA: Go to rewards

Rewards unused

This email is generated when a user has redeemed their points for a reward but has not claimed it within 30 days.

  • For the trigger, here is the starting metric to select: reward_unused

  • The list of event-related variables:

reward_name: name of the reward

reward_date: date the reward was obtained

reward_code: code to use for the reward

reward_link: link to the reward

reward_image: image of the reward

reward_expiration: expiration date of the code

  • To configure it :​

Subject:

Use your reward!

Body :

Your reward {{event_properties.${reward_name}}} is waiting to be used! 

You redeemed points for this reward on {{event_properties.${reward_date}}}.

{{event_properties.${reward_image}}}

Here’s how to claim your reward: {{event.reward_code}} on the site {{event.reward_link}}

Expiration date: {{event_properties.${reward_expiration}}}

You can retrieve this information at any time from the programme!


Section 3 : Referrals

Friend referral

The referrer can choose to share their referral link or enter their friend’s email address. This email is sent directly to the referred friend (only if they have never placed an order).

  • For the trigger, here is the starting metric to select: referral_friend_link

  • The list of event-related variables:

referral_customer_firstname: first name of the referrer

referral_link: link to access the referral code

  • To configure it:

Subject :

Referral: (add your reward) offered

Body :

Enjoy [Referral Reward] offered!

Thanks to your friend {{event_properties.${referral_customer_firstname}}}, you receive [Referral Reward] on your first order.

Go to {{event_properties.${referral_link}}} to get your code and use it. Valid on a minimum purchase of [minimum purchase]€.

PS: Your code expires in (add number of days) days.

CTA: Claim my [Referral Reward]

Link: {{event_properties.${referral_link}}}

Referral reminder

The referral reminder email is sent halfway to the code’s expiration date, directly to the referred friend if they haven’t made a purchase since receiving the referral email.

  • For the trigger, here is the starting metric to select: referral_reminder

  • The list of event-related variables:

referral_customer_firstname: first name of the referrer

referral_code: code to use the reward on your store

referral_expiration: expiration date of the code

  • To configure it:

Subject:

Only X days left to use your referral code

Body:

Hello,

Thanks to your friend {{event_properties.${referral_customer_firstname}}}, you receive (add your reward) on your first order.

Your code expires on {{event_properties.${referral_expiration}}}.

Visit our site (add your store link) and use your code now: {{event_properties.${event.referral_code}}}

CTA: Claim my (add your reward)

The referral_reminder event is triggered only when referral email verification is enabled.

Referral completed

This email flow activates when a referred friend makes a purchase and is sent to the referring customer. The successful referral is confirmed once the friend completes a purchase, and the advocate (referring customer) receives this email.

  • For the trigger, here is the starting metric to select: referral_success

  • The list of variables related to the event:

event.friend_email: referred friend’s email

event.referral_code: code to use the reward in your store

event.referral_expiration: code expiration date

To set it up:

Subject:

Congratulations, your referral has been confirmed

Body:

Congratulations (First Name)!

Your friend {{event_properties.${friend_email}}} has placed their first order! You receive (add your reward) on your next order.

Visit our site (add your store link) and use your code now: {{event_properties.${event.referral_code}}}

Note: Your code expires on {{event_properties.${referral_expiration}}}

CTA: Claim my (add your reward)


Section 4 : Loyalty

Attribution delay

This email is sent when a customer places an order. Points are calculated based on the order amount, excluding taxes and shipping fees.

  • For the trigger, here is the starting metric to select: post_purchase

  • The list of event-related variables:

points_earned: total points earned (order amount × points)

attribution_date: date when points are attributed

  • To configure it:

Subject:

Your points are on their way!

Body:

You have just earned {{event_properties.${points_earned}}} points!

You earned points from your recent purchase. Your points will be available on {{event_properties.${attribution_date}}}.

Keep earning points by completing missions to unlock exclusive rewards.
CTA: Access the program

Points expiry

This email is sent when a customer’s points are about to expire and the expiration mode is set to a fixed date. The email is sent 60 days before the points expire.

  • For the trigger, here is the starting metric to select: points_expiry

  • The list of event-related variables:

expiration_date: date when the points will expire

  • To configure it:

Subject:

Your points are expiring soon!

Body:

Hello,

Your loyalty points will expire on {{event_properties.${event.expiration_date}}}. Use your points to get discounts or exclusive gifts.

Log in to your account on [Link to store] to redeem them before they expire.
If you don’t have enough points for a reward, don’t worry! You can continue earning points to unlock more offers.

earning points to unlock more offers.
Thank you for your loyalty!
CTA: Access the program


Section 5 : VIP tiers

Tier reached

This email is sent when a user reaches a VIP tier. For the trigger, the starting metric to select is new_tier_reached.

📝 Note: For this event, no variables are sent to Braze. You will need to create conditional splits immediately after inserting the trigger.

The emails are structured as follows:

You will need to create a decision split and an email for each configured tier. Here are the parameters to set:

📝 Note: The tier name must be added manually for each decision split. The tier name should match exactly your tier.

For the attribute, use Loyoly_Tiers_name.

  • To configure it :

Subject:

New level reached

Body :

Congratulations (First Name),

You have just reached the new tier {tier name}.

Here are the new rewards and benefits of this tier:

{example}
{example}

You can now start using your rewards. Simply go to your account in the “Rewards” section and select “Redeem”.

CTA: Access the program

Birthday

This email is sent on your customer’s birthday as a VIP tier reward.

  • For the trigger, here is the starting metric to select: birthday_gift

  • The list of event-related variables:

reward_name: the reward the user has unlocked

reward_icon: image of the reward

reward_code: code to use the reward in your store

reward_link: link to the reward

  • To configure it:

Subject:

Happy Birthday! Discover your gift!

Body: Distribution via a code

We wanted to wish you a wonderful birthday!

To celebrate, here is your gift: {{event_properties.${reward_name}}}
{{event_properties.${reward_icon}}}

Here’s how to redeem your reward:

Code to use: {{event_properties.${reward_code}}}
On the site: {{event_properties.${reward_link}}}

CTA: Redeem my reward

Body: Manual send

We wanted to wish you a wonderful birthday!

To celebrate, here is your gift: {{event_properties.${reward_name}}}
{{event_properties.${reward_icon}}}

(Your brand name) will contact you to send your reward.
You can access this information anytime from the program.

CTA: Redeem my reward


Section 6 : Product testing

If the product test feature is enabled, you can configure these two emails.

Application accepted

This email is sent when you accept a user’s product test request.

  • For the trigger, here is the starting metric to select: application_accepted

  • The list of event-related variables:

product_test_name: name of your product test

reward_code: code you added in the settings

reward_link: link you added in the settings

  • To configure it:

Subject:

Application accepted

Body : Distribution via a code

Application accepted

Congratulations! Your application to test " {{event_properties.${product_test_name}}}" has been accepted.

You will be contacted by {{event_properties.${brand_name}}} to receive your product.

Once you have received it, log in to your account and join the program to complete the related missions.

CTA: Access the program


Body : Send the reward yourself

Application accepted

Congratulations! Your application to test "

{{event_properties.${product_test_name}}}" has been accepted.

Use {{event_properties.${reward_code}}} on {{event_properties.${reward_link}}} to claim " {{event_properties.${product_test_name}}}".

Once you have received your product, log in to your account and join the program to complete the related missions.

CTA: Access the program

Application refusal

This email is sent when you decline a user’s product test request.

  • For the trigger, here is the starting metric to select: application_refused

  • The list of event-related variables:

product_test_name: name of your product test

  • To configure it:

Subject:

Application not accepted

Body:

Application not accepted

Unfortunately, your application to test "{{event_properties.${product_test_name}}}" was not accepted.

Don’t worry! (add your brand name) will contact you for upcoming test opportunities.

CTA: Access the program

Congratulations! ✅

Your integration is complete, and your emails have been successfully set up.



Did this answer your question?