How it works
Follow these 8 simple steps to send unique discount codes to new Shopify 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 Shop
Retrieve Shop
Filter (Phone Number Check)
Filter (Phone Number Check)
Send Message
Send Message
Make it your own
Customize this workflow even further:
Send email instead of or in addition to SMS
Add an email step after the discount code creation to send a branded HTML email with the discount code, especially useful for customers who don't provide phone numbers or for markets where email is preferred.
Vary discount amounts based on customer source
Add conditional paths that check where the customer came from (using UTM parameters or referral sources) and create different discount amounts for social media signups versus organic signups.
Set minimum purchase thresholds
Modify the price rule's prerequisite_subtotal_range to require a higher minimum purchase (like $50 instead of $1) to protect margins while still incentivizing meaningful first orders.
Create urgency with shorter expiration windows
Change the ends_at date from 14 days to 48 or 72 hours to create stronger urgency and drive faster conversion while signup excitement is highest.
Frequently asked questions
What happens if a customer signs up without a phone number?
The discount code is still created and tagged to their customer profile, but no SMS is sent. The filter step prevents the workflow from failing when phone numbers are missing. Consider adding an email step as a fallback to ensure all customers receive their codes regardless of whether they provided phone numbers.
Can customers share these codes with others?
No, the price rule is restricted to the specific customer ID via prerequisite_customer_ids, so the code will only work when that exact customer uses it at checkout. If someone else tries to use the code, Shopify will reject it as invalid for that customer.
How do I change the discount from 20% to a fixed dollar amount?
In the "Create Price Rule" step, change the value field from -20 to your desired dollar amount (like -10 for $10 off), and change the value_type field from "percentage" to "fixed_amount". Don't forget to update the SMS message to reflect the new discount type and amount.
What is a template?
Templates are pre-made workflows by our team of experts. Instead of building a workflow from scratch, these have all the steps needed to complete the task.
Can I personalize a template?
Yes! Every step can be customized to meet your exact requirements. Additionally, you can even add more steps and make it more sophisticated.
Are templates free?
Yes! Our entire library containing hundreds of templates are free to use and customize to your exact needs.
Ready to send unique discount codes to new Shopify customers automatically?
Join thousands who've automated their work and saved an average of 3.5 hours every week.
Use this template — It's free7-day free trial • 13 min setup • Cancel anytime