Tags customers 'vip' when lifetime spend crosses €500 or they reach 5 orders (both configurable); removes the tag when they no longer qualify. Runs on customer create/update events.
async def run(ctx): spend_floor = ctx.params.get("spend", 500) order_floor = ctx.params.get("orders", 5)
How do you tag VIP customers on Shopify automatically?
To tag VIP customers on Shopify automatically, this template watches customer create and update events and applies the vip tag when lifetime spend or order count crosses your thresholds, €500 or five orders by default, with both numbers configurable. It also removes the tag when a customer no longer qualifies, which is the half every manual process skips. Email flows, support views, storefront perks and shipping upgrades can all key off one tag that stays current on its own.
Manual VIP lists age immediately: last year's big spender keeps the perks forever while this month's new regular goes unnoticed until someone re-exports the customer file. Because the check runs on events rather than a schedule, status follows behavior within moments of the qualifying order. The report shows which customers would gain or lose the tag, so the thresholds get sanity-checked on real names before going live.
Last updated August 24, 2026
If you run a sharper version of this template, or something it inspired, send it in. We review every application and publish the good ones, credited to you or your agency.
AI writes real Python or TypeScript, a dry run rehearses it, you approve, it deploys.
Free plan · no card · 🇪🇺 EU data residency