Here's how you can set up a Flow workflow to send customers an email when they receive "Welcome bonus" points in your program.
Step 1: Install the Flow template
1. Go to Shopify Flow β Browse templates
2. Search for Alpha Loyalty workflows
3. Choose the template you need and click Install
If you have renamed the "Welcome bonus" earn way in your program to something else, please make sure to specify the right name in the condition:
Step 2: Set up your email
Open the newly added workflow for editing. Click on the "Send marketing email" step, choose Select template β Code your own.
Copy and paste the code of the ready-to-use Liquid email template we have prepared for you.
Subject line:
Your welcome bonus has arrived π
Paste this Liquid code:
<div style="text-align: center; color: #000000; padding: 20px 0;">
<h1 style="font-size: 28px; margin-bottom: 20px; font-weight: 400;">
Welcome to our loyalty program!
</h1>
<p style="font-size: 16px; margin-bottom: 15px; color: #000000;">
We're thrilled to have you with us. You've earned {{customer.metafields.alpha_loyalty.last_points_earned}} points as a welcome bonus.
</p>
<p style="font-size: 16px; margin-bottom: 30px; color: #000000;">
Check out which benefits are available for you.
</p>
<a href="{{shop.url}}/?AlLo_open_widget" style="background-color: #4E488C; cursor: pointer; color: #ffffff; padding: 18px 45px; text-decoration: none; border-radius: 50px; font-size: 16px; display: inline-block; margin-bottom: 40px;">
Explore benefits
</a>
<p style="font-size: 12px; color: #646462;">
No longer want to receive these emails?
{{unsubscribe_link}}
</p>
{{open_tracking_block}}
</div>
Then press the Set to active button for the template and turn the Shopify flow on.
Here's what the email will look like in your client's inbox:
Coding your own email
If you'd like to code your own email, you can use these dynamic Liquid variables (remember to add them via a Custom Liquid block):
{{customer.metafields.alpha_loyalty.last_points_earned}} β points earned from the last activity
{{customer.metafields.alpha_loyalty.balance}} β the customer's current points balance
π‘ The last_points_earned variable is created by this Flow workflow right before sending the email β that's why you can only use this variable within our template.
Need help? Reach out at [email protected]



