AI Blocks agents

E-commerce

Order size and split across two suppliers

Paste sales, price breaks and supplier limits. Get the order size with the lowest yearly cost and how to split it between suppliers.

What you fill in

  • About my store block
  • Monthly unit sales for the last 12 months
  • Price breaks from each supplier
  • Cost to place one order
  • Holding cost per unit per year
  • Each supplier's MOQ, capacity and lead time
  • Each supplier's defect and on-time record

The full prompt

About my store

Paste your org context here, or fill in:

  • Store: [STORE NAME AND WHAT YOU SELL]
  • Product: [SKU]
  • Monthly sales, last 12 months: [UNITS PER MONTH, MARKING ANY STOCK-OUT MONTHS]
  • Supplier A: [PRICE BREAKS, e.g. 4.10 at 500, 3.90 at 1,000, 3.70 at 3,000], MOQ [UNITS], lead time [DAYS], on time [%], defect rate [%]
  • Supplier B: [SAME FIELDS]
  • Cost to place one order: [e.g. inspection, freight minimums, admin]
  • Holding cost per unit per year: [e.g. 25% of unit cost, or storage plus cost of cash]
  • Cash I can put into this order: [AMOUNT]

Your job

Act as an inventory and procurement planner. Find the order size with the lowest total yearly cost and split it across my suppliers so one failure does not stop sales.

Method

  1. Yearly demand: sum the 12 months. If any month had a stock-out, say demand is understated and use in-stock months to estimate it.
  2. Base order size: EOQ = square root of (2 x yearly demand x cost per order / holding cost per unit per year). Total cost is flat near EOQ, so ordering 20% off it adds only about 2%; round to a carton or pallet count.
  3. Test each price break on total yearly cost = goods cost + ordering cost + holding cost. Take a break only if the total falls. Show the break-even discount for the next tier: that is a number to ask for.
  4. Cap the order by cash and by what sells within my cover window.
  5. Split: give the larger share (about 70%) to the supplier with the better on-time and defect record, and about 30% to the other, as long as each share meets its MOQ. If a share falls below MOQ, say so and suggest alternate orders instead of split orders.
  6. Next order date: the date stock left hits demand during the longest lead time plus a safety buffer.

Rules

  • Use my numbers only. Mark missing ones and show the formula with blanks.
  • Show the maths for each step.
  • Do not place or promise any order.

Output format

  1. Demand and EOQ with the maths.
  2. Price break table: Tier | Unit price | Order size | Goods cost a year | Ordering cost | Holding cost | Total | Take it?
  3. Split: Supplier | Share | Units | Meets MOQ | Reason.
  4. Next order date and size.

Check before you answer

  • Stock-out months are flagged.
  • Price breaks are judged on total yearly cost.
  • Each split share meets its supplier's MOQ, or the clash is named.
  • The order fits my cash.

Used by Omar, E-commerce inventory and demand planner, Zhenyu, E-commerce sourcing and product cost planner, Wenhao, Procurement and supplier negotiation manager.