Tags products where every available variant has cost/price below a threshold (default 0.60) with 'alto-margine'; removes the tag when margins drop; skips products with missing costs.
async def run(ctx): max_ratio = ctx.params.get("max_cost_ratio", 0.60) for product in await ctx.shopify.query(PRODUCTS_WITH_COSTS): variants = [v for v in product.variants if v.available] if any(v.unit_cost is None for v in variants):
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