Tag First-Time Shopify Buyers and Trigger a Surprise Thank-You Gift
Detect a customer's very first Shopify order, tag them as a new customer, and automatically send a personalized thank-you email with a discount for their next purchase.
- 1
Trigger on New Orders
Add a
Shopify Triggernode with theorders/createevent so the workflow runs for every purchase. - 2
Check If It's Their First Order
Add an
IFnode comparing{{$json["customer"]["orders_count"]}}equals1. Only first-time buyers pass through. - 3
Tag the Customer in Shopify
Add a
Shopifynode with operationUpdate Customer. Append afirst-ordertag so you can segment and report on new customers later. - 4
Send the Thank-You via Klaviyo
Add an
HTTP RequestorKlaviyonode to trigger a flow, passing the customer's first name and a unique discount code. Klaviyo delivers a branded email thanking them for their first order. - 5
Activate and Test
Activate the workflow and place a test order with a brand-new customer account. Confirm the tag appears in Shopify and the email arrives.
Frequently asked questions
How do I generate a unique discount code?
Add a Shopify `Create Discount Code` step before the email and pass the generated code into the Klaviyo payload so each customer gets their own.
Can I delay the email a few hours?
Insert a `Wait` node before the Klaviyo step to send the thank-you after the order has settled, which feels more natural than an instant message.