AI Blocks agents

E-commerce

Split a buy by size and colour

Paste sales by size and colour, size returns and factory minimums. Get corrected shares, a make list, units per variant and fixed gaps.

What you fill in

  • Org context or store, buyers, markets and size systems
  • Product and total units to buy
  • Sales by size and colour with days out of stock
  • Returns by size with reasons
  • Exchanges, if tracked
  • Factory minimums and small-run surcharge
  • Carton or pack ratio
  • Landed cost per unit

The full prompt

About my store

Paste your org context here if you have one. If not, fill in:

  • Store and range: [STORE AND RANGE, e.g. women's knitwear]
  • Our buyers: [WHO BUYS]
  • Markets and size systems: [COUNTRIES AND SIZES, e.g. US and UK, XS to XXL]

The product and the buy

  • Product: [PRODUCT, e.g. a merino crew-neck jumper]
  • Total units I plan to buy: [UNITS]
  • Sales by size and colour, last 12 months, with days each variant was out of stock: [PASTE ROWS: COLOUR | SIZE | UNITS | DAYS OUT OF STOCK]
  • Returns by size with reasons (too small, too big, other): [PASTE]
  • Exchanges, if I track them (from size to size): [PASTE, OPTIONAL]
  • Factory minimums: per style, per colour, per size, and fabric per colour, plus any small-run surcharge: [PASTE]
  • Carton or pack ratio: [E.G. 1-2-2-1 PER CARTON, OR "none"]
  • Landed cost per unit: [COST]

Your job

Act as a product developer who plans size and colour buys so the best sizes do not sell out while the edges pile up. Split my total buy by size and colour, check every variant against the factory minimums, and fix every gap with its cost.

Use only my numbers. If the product is new and has no sales, ask which of my products sells to the same buyer in the same size system and use that, labelled an estimate. Never invent a sales figure or a minimum.

Method

  1. Shares from in-stock days. Units sold per day in stock for each size and colour. Raw sales understate a size that sold out.
  2. Put stockouts back. When a size is out, some buyers take the next size and some leave. Add lost sales back to the sold-out size and take the same units off the neighbour that caught them. Use my exchange data if I gave it; if not, assume about half switched and label it.
  3. Count exchanges toward the size the buyer kept.
  4. Read size returns. If one size returns for fit far more than the rest (over 1.5 times the product average), it may be out of spec at the factory: measure that size before buying more. "Too small" across every size means the base or grading runs small; fix the spec, do not just buy the next size up.
  5. Choose what to make. Keep every size and colour that clears the minimum. Keep a small-share size or colour that repeat buyers rely on, in a smaller run, a pre-order or a later drop. Fewer colours and sizes per order lower the factory's cost, but range-led products need choice.
  6. Split. Units = total x colour share x size share, rounded to the carton ratio. Give the two best sizes a small buffer and keep at least a week of sales for every kept size.
  7. Check minimums and fix gaps, cheapest first: move units from an over-planned size of the same colour, use the factory's stock fabric, pay the surcharge (show it per unit), share fabric with another style, pre-order it, or drop the colour.

Output format

SHARE TABLE: Colour | Size | Raw share | Corrected share | Size-return rate | Note MAKE LIST: Colour | Size | Make or drop | Units | Reason MINIMUM CHECK: Variant | Planned | Minimum | Gap | Fix | Extra cost per unit SPEC FLAGS: sizes to measure before the buy MISSING: list, or none

Check before you answer

  • Units add up to my total buy.
  • Shares use in-stock days and the stockout correction is shown.
  • Every gap against a minimum has a fix and its cost per unit.
  • No kept size gets less than a week of sales.
  • Estimates are labelled.

Used by Maxine, Product developer and tech pack specialist, Omar, E-commerce inventory and demand planner.