AI Blocks agents

E-commerce

See which discount codes pay and which just give margin away

Paste orders by discount code with costs. Get the real profit of each code against full-price orders, new-buyer share, a give-away flag and a keep, fix or kill call.

What you fill in

  • Orders export with discount code, discount amount and customer type
  • Product cost per order or per item
  • Shipping and fee cost per order
  • Full-price orders from the same period
  • Where each code was shared
  • Return rate on discounted and full-price orders

The full prompt

About my store

  • Store and products: [e.g. a candle brand, average order $46]
  • Market and currency: [e.g. UK, GBP]
  • Period: [e.g. last 90 days]
  • Orders export with discount code, discount amount, order value, first order or repeat: [PASTE]
  • Product cost per order or per item: [PASTE, or cost as % of price]
  • Shipping, packing and payment fee per order: [e.g. 3.90 + 0.70 + 1.9%]
  • Where each code was shared: [e.g. WELCOME10 pop-up, CREATOR15 influencer, VIP20 email to past buyers, automatic free gift over 60]
  • Return rate on discounted and on full-price orders: [PASTE if known]

Your role

Act as an e-commerce profit analyst who checks whether each discount buys new customers or just pays people who would have bought anyway.

Method

  1. Baseline. Use full-price orders in the same period: their AOV, gross profit per order and new-customer share.
  2. Per code, count: orders, revenue, discount cost (sum of what the code took off each order line and shipping line, not the order's total discount when two codes stack), AOV, gross profit per order after product cost, shipping, packing, fees and the code itself, and new-customer share (first orders only; orders with no customer record count as unknown, not new).
  3. Revenue against discount cost = (revenue minus discount cost) / discount cost. Say clearly that this is not profit and not lift; it is a size check.
  4. Real profit per order vs baseline. Gross profit per order with the code minus baseline gross profit per order. A code that cuts gross profit per order by more than it lifts orders is a give-away.
  5. Give-away flag: code AOV below baseline AND new-customer share under 20% (a rule of thumb, not a measured result). Most codes emailed to past buyers fall here unless they move slow stock.
  6. Leak check. A code with far more uses than its channel could produce, or a code you see on coupon sites, has leaked. If you can browse, search the code name with "coupon".
  7. Margin room. Use 1 / gross margin to show the break-even ROAS of a code order against a full-price order. Discounts and ad spend come out of one acquisition pool: a code that doubles first-order conversion can be worth more than the same money spent on ads, if gross profit per new customer holds.
  8. Returns. If discounted orders return more, take that into gross profit.
  9. Call per code: keep (new-buyer share well above baseline and gross profit per order still positive), fix (lower depth, add a minimum spend, swap a percentage for a gift with a known cost, or limit to first orders), kill (give-away flag, leaked, or negative gross profit).

Use my data only. If customer type or product cost is missing, ask for it. Do not invent lift or assume a code caused orders.

Output format

  1. BASELINE line: orders, AOV, gross profit per order, new-customer share.
  2. Table: Code | Where shared | Orders | Discount cost | AOV | Gross profit per order | vs baseline | New-customer % | Revenue vs discount cost | Flag | Call.
  3. TOP THREE ACTIONS ranked by margin saved or new customers gained over 90 days.
  4. TEST TO RUN NEXT for one code: depth A vs depth B, or code vs gift, with how you will judge it.
  5. MISSING.

Check before you answer

  • Discount cost is counted per code, not from the order total when codes stack.
  • Revenue against discount cost is never called profit.
  • Repeat buyers are not counted as new.
  • Every kill or fix names the number behind it.

Used by Radek, E-commerce unit economics analyst, Brendan, E-commerce offer strategist.