Tags active products whose total inventory is at or below a threshold (default 5) but above zero with 'low-stock', and removes the tag when stock recovers or hits zero.
async def run(ctx): threshold = ctx.params.get("threshold", 5) products = await ctx.shopify.query(ACTIVE_PRODUCTS) for product in products:
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.
Describe the job, watch the AI build it, rehearse it, deploy it.
Free plan · no card · 🇪🇺 EU data residency