How it works
Follow these 9 simple steps to start generating unique product discount codes for new customers automatically
Customer Created
Customer Created
Create Price Rule
Create Price Rule
Retrieve Price Rule
Retrieve Price Rule
Create Price Rule Discount Code
Create Price Rule Discount Code
Customer Add Tag
Customer Add Tag
Retrieve Product
Retrieve Product
Retrieve Shop
Retrieve Shop
Filter: Phone Number Check
Filter: Phone Number Check
Send Message
Send Message
Make it your own
Customize this workflow even further:
Add email notification
Insert an email step (either replacing or supplementing SMS) that sends a welcome email with the discount code, product image, and call-to-action button, providing a richer notification experience.
Create tiered discounts
Add conditional logic that checks customer tags, order history, or other factors and varies discount amounts for different customer segments, creating VIP welcome offers.
Apply to product collections
Modify the price rule to use entitled_collection_ids instead of entitled_product_ids, allowing the discount to work on any product in a collection like "Welcome Collection" or "First Purchase Items".
Send reminder SMS
Create a companion workflow triggered by a schedule that checks for customers with welcome code tags who haven't placed orders and sends reminder texts before codes expire.
Frequently asked questions
Can customers share their discount codes?
No, the price rule is restricted to the specific customer's ID (prerequisite_customer_ids). Even if someone else obtains the code, it won't work for them. Only the customer who received it can use it.
What happens if a customer creates an account but doesn't provide a phone number?
They still receive the discount code and customer tag, they just won't get the SMS notification. Consider adding an email step to notify customers without phone numbers, or display the code on the post-signup page.
Can I change which product the discount applies to without recreating the workflow?
You'll need to update the configuration in the "Create Price Rule" step. Edit the entitled_product_ids field with the new product ID, and update the SMS message to reference the new product name.
What is a template?
MESA templates are fully pre-configured workflows built and vetted by Shopify Experts. Unlike competitor templates that provide basic scaffolds requiring extensive setup, MESA templates come with all data variables properly mapped, required fields configured, and steps ready to activate. You can turn them on immediately and start automating.
Can I customize a template?
Absolutely! While our templates work out-of-the-box, every step can be personalized to match your exact business requirements. Add conditional logic, integrate additional apps, or build more sophisticated workflows. MESA's templates provide a solid foundation that you can expand as needed.
Are templates free?
Yes! Our entire library of expert-built, production-ready templates is free to use. Unlike platforms that charge for premium templates or provide only basic scaffolds, MESA gives you access to hundreds of fully-configured, vetted workflows at no additional cost.
Ready to start generating unique product discount codes for new customers automatically?
Join thousands who've automated their work and saved an average of 3.5 hours every week.
Start with this template — It's free7-day free trial • 17 min setup • Cancel anytime