Shopify and Klaviyo: Repeat-Buyer Loyalty Segment Template

A scheduled Spojit workflow that counts each Shopify customer's orders and adds repeat buyers to a Klaviyo loyalty segment, so returning shoppers land in a dedicated rewards campaign.

What It Builds

A Schedule trigger fires on a cron you choose (say every morning). A Shopify Connector node pulls customers and their order counts, a Condition node keeps anyone at or above your repeat-buyer threshold, and a Klaviyo Connector node adds those profiles to a loyalty segment or list. Each run keeps the segment fresh without manual exports.

The Prompt

Paste this into Miraxa and it builds the workflow, connecting the tools for you:

Build a workflow that runs every morning, looks up each Shopify customer's total order count, and for anyone with 2 or more completed orders, adds their email to a Klaviyo segment called "Repeat Buyers" so they receive our loyalty rewards campaign.

Connectors Used

  • Schedule trigger - runs the workflow on a cron schedule in your time zone.
  • Shopify - reads customers and their order counts.
  • Klaviyo - adds qualifying profiles to a loyalty segment or list.

Customize It

Change 2 or more to set a different repeat-buyer threshold, rename the "Repeat Buyers" segment, swap "every morning" for your preferred cadence, or add a spend minimum (for example only customers above a lifetime total) so the prompt builds exactly the audience you want.

Tips

  • Give your Klaviyo connection write scope so it can add profiles to the segment.
  • Use Direct mode on each Connector node when the action is fixed (one exact tool, no AI cost); use Agent mode only if you want Miraxa to choose the call dynamically.
  • Match the cron tightly to how often new repeat orders arrive: daily is plenty for most stores.

Related

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.