Skip to main content

Send post-purchase points notifications via Shopify Messaging

Here's how you can set up a Flow workflow to send an email notification every time a customer makes a purchase.

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


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:

You've earned some loyalty points! 🎁

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;">
You've earned {{customer.metafields.alpha_loyalty.last_points_earned}} points
</h1>
<p style="font-size: 16px; margin-bottom: 15px; color: #000000;">
Great work! You placed an order and earned {{customer.metafields.alpha_loyalty.last_points_earned}} points.
</p>
<p style="font-size: 16px; margin-bottom: 30px; color: #000000;">
Now you have {{customer.metafields.alpha_loyalty.balance}} points to redeem.
</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;">
Redeem now
</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]

Did this answer your question?