Shopify and Klaviyo: First-Time Buyer Segment Template
A ready-to-build Spojit template that tags genuinely new Shopify customers into a Klaviyo first-purchase welcome list, so your welcome flow only greets true first-time buyers.
What It Builds
A Webhook trigger receives each new Shopify order. A Shopify Connector node looks up the customer's order history, a Condition node checks whether this is their first purchase, and a Klaviyo Connector node adds the profile to a first-purchase welcome list. Repeat buyers are skipped, so no one gets the welcome flow twice.
The Prompt
Paste this into Miraxa and it builds the workflow, connecting the tools for you:
Build a workflow that triggers on a Shopify order webhook, looks up the customer's past order count in Shopify, and if this is their first order, adds their email to my Klaviyo "First-Purchase Welcome" list. Skip customers who already have previous orders.
Connectors Used
- Webhook trigger - fires on each new Shopify order.
- Shopify - looks up the customer's order history to confirm first purchase.
- Klaviyo - adds the profile to your welcome list.
Customize It
Change the Klaviyo list name to match your account, point the welcome list at a different flow, or widen the condition to also tag buyers who order again within 30 days. You can also add the order total or first product name to the Klaviyo profile so the welcome email feels personal, all by editing the prompt before you build.
Tips
- Use Shopify's order-created webhook topic and verify the Shopify HMAC signature on the trigger.
- Keep the Klaviyo node in Direct mode for the add-to-list call so there is no AI cost on a simple, repeatable action.
- Make sure your Klaviyo API key has profile write scope before the first run.