Stockout warning before the next delivery
The agent works out how many days of stock each item has left, compares that with the supplier's lead time and alerts you about items that will run out first. It drafts a purchase order with safety stock to cover forecast error. You place the order.
What the agent does
- 1
Read sales and stock.
- 2
Compute days of cover.
- 3
Compare with the supplier's lead time.
- 4
Send an alert.
- 5
Draft a purchase order. → seller orders
Enough to decide?
Proposed pattern- Required input
- No example input written yet
- Example output
- No example output written yet
- Stop condition
- forecast error; safety stock
- Reviewer
- Not yet independently reviewed
- Last run
- Not run by us yet
What it costs to run
A rough range per run, from the cheapest to the dearest of the paid models we checked. Your real cost depends on how much text you send.
Checked 2026-11-25 source
$0.001 to $0.30 per run · $0.016 per run with a mid-priced model
- Small, cheap model
- $0.001 per runPer 100 runs: $0.11
- Typical
- $0.016 per runPer 100 runs: $1.63
- Large model
- $0.30 per runPer 100 runs: $30.00
Free tiers and local models can bring this to zero while you test.
How we worked this out
- 5 model calls, one per step (at least 2)
- 4,000 input tokens per call (it reads documents or data)
- 500 output tokens per call
- each call re-reads the earlier outputs
- no retries, no loops, no cached-input discount
- Longer inputs cost more; agents that retry or loop use more calls.
- Free tiers may cover small volumes: see free AI tokens.
- Local models have no per-token price but need your own hardware.
Works with
Tags
Before you start
- Access the agent needs
- ecommerce-platform, spreadsheet
- Who approves
- seller orders
- What to log
- every action it proposes and the decision taken
- When to stop
- forecast error; safety stock
Why it is worth it
A stockout costs you the sale, the ranking and sometimes the review. A warning a week early is worth more than a perfect forecast.
Start this week
- Give the agent 90 days of sales, today's stock and each supplier's lead time in one sheet.
- Ask for days of cover per item and a list of items that run out before the next delivery could arrive.
- Check its draft purchase order against your own judgement for two cycles before you trust it.
Watch out for
Promotions and seasons break simple forecasts. Tell the agent about planned sales, and keep some safety stock.
Measure this
Stockout days per month and money tied up in excess stock.
About this entry
Proposed pattern Checked 2026-11-27 Next check 2026-12-25 v2026-11-26.1
What we checked
| Item | Result | Date | By | Source and note |
|---|---|---|---|---|
| Text and steps | Checked | 2026-11-25 | — | — |
| Human checkpoint and risks | Checked | 2026-11-25 | Reviewer to be named | — |
| Workflow run | Not checked yet | — | — | — |
| Cost estimate | Checked | 2026-11-25 | — | source · mid-priced model assumed |
| Tool links | Not checked yet | — | — | — |
| Outside evidence | Not checked yet | — | — | — |
Limitations
- This is a pattern written from how the job is usually done. We have not run it.
- Steps, tools and risks are general. Your systems and rules will differ.
- Test it with made-up or public data before using real data.
- Not checked yet: workflow run, tool links, outside evidence.
Change history
- Long text added: why it is worth it, how to start, what to watch out for, how to measure it spec v2026-11-26.1
- Added to the catalogue spec v2026-11-25.1
Evidence
- No outside evidence yet; this is our own analysis.
Spec versions
- v2026-11-26.1 · Long text added: why it is worth it, how to start, what to watch out for, how to measure it
- v2026-11-25.1 · Added to the catalogue
Run it with AI
Pick the AI you already use.
You are helping e-commerce seller. Goal: Stockout warning before the next delivery. The agent works out how many days of stock each item has left, compares that with the supplier's lead time and alerts you about items that will run out first. It drafts a purchase order with safety stock to cover forecast error. You place the order. Work through these steps and show your result for each: 1. Read sales and stock. 2. Compute days of cover. 3. Compare with the supplier's lead time. 4. Send an alert. 5. Draft a purchase order. Tools or data I can give you: ecommerce-platform, spreadsheet. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: seller orders. Watch for: forecast error; safety stock.
Opens the tool with your prompt already filled in. Review it there before you send.
Copies the prompt, then opens the tool. Paste it in to start.
Nothing happened? The Claude Desktop app (Mac, Windows, or Linux, where it is still in beta) may not be installed. Use the copy button instead.
ROLE: Assistant for e-commerce seller. TASK: Stockout warning before the next delivery. SUMMARY: The agent works out how many days of stock each item has left, compares that with the supplier's lead time and alerts you about items that will run out first. It drafts a purchase order with safety stock to cover forecast error. You place the order. PROCEDURE: 1. Read sales and stock. 2. Compute days of cover. 3. Compare with the supplier's lead time. 4. Send an alert. 5. Draft a purchase order. HUMAN CHECKPOINT: seller orders GUARDRAILS: forecast error; safety stock RULES: ask when inputs are missing; never invent facts; cite where each fact came from.
Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "stockout-predictor-0107",
"goal": "Stockout warning before the next delivery",
"persona": [
"ecom-seller"
],
"autonomy": "supervised",
"tools": [
"ecommerce-platform",
"spreadsheet"
],
"plan": [
"Read sales and stock.",
"Compute days of cover.",
"Compare with the supplier's lead time.",
"Send an alert.",
"Draft a purchase order."
],
"human_in_the_loop": "seller orders",
"guardrails": "forecast error; safety stock",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"trigger": "On a schedule",
"steps": [
{
"n": 1,
"do": "Read sales and stock."
},
{
"n": 2,
"do": "Compute days of cover."
},
{
"n": 3,
"do": "Compare with the supplier's lead time."
},
{
"n": 4,
"do": "Send an alert."
},
{
"n": 5,
"do": "Draft a purchase order."
}
],
"connects": [
"ecommerce-platform",
"spreadsheet"
],
"approval": "seller orders",
"stop_on": "forecast error; safety stock"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "stockout-predictor-0107",
"goal": "Stockout warning before the next delivery",
"persona": [
"ecom-seller"
],
"autonomy": "supervised",
"tools": [
"ecommerce-platform",
"spreadsheet"
],
"plan": [
"Read sales and stock.",
"Compute days of cover.",
"Compare with the supplier's lead time.",
"Send an alert.",
"Draft a purchase order."
],
"human_in_the_loop": "seller orders",
"guardrails": "forecast error; safety stock",
"output": "a draft for human review"
}Opens the tool with your prompt already filled in. Review it there before you send.
Copies the prompt, then opens the tool. Paste it in to start.
You are helping e-commerce seller. Goal: Stockout warning before the next delivery. The agent works out how many days of stock each item has left, compares that with the supplier's lead time and alerts you about items that will run out first. It drafts a purchase order with safety stock to cover forecast error. You place the order. Work through these steps and show your result for each: 1. Read sales and stock. 2. Compute days of cover. 3. Compare with the supplier's lead time. 4. Send an alert. 5. Draft a purchase order. Tools or data I can give you: ecommerce-platform, spreadsheet. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: seller orders. Watch for: forecast error; safety stock.
Copies the prompt, then opens the tool. Paste it in to start.
You are helping e-commerce seller. Goal: Stockout warning before the next delivery. The agent works out how many days of stock each item has left, compares that with the supplier's lead time and alerts you about items that will run out first. It drafts a purchase order with safety stock to cover forecast error. You place the order. Work through these steps and show your result for each: 1. Read sales and stock. 2. Compute days of cover. 3. Compare with the supplier's lead time. 4. Send an alert. 5. Draft a purchase order. Tools or data I can give you: ecommerce-platform, spreadsheet. Ask me for anything missing before you start. Do not take any action yourself; stop for my decision where: seller orders. Watch for: forecast error; safety stock.
Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "stockout-predictor-0107",
"goal": "Stockout warning before the next delivery",
"persona": [
"ecom-seller"
],
"autonomy": "supervised",
"tools": [
"ecommerce-platform",
"spreadsheet"
],
"plan": [
"Read sales and stock.",
"Compute days of cover.",
"Compare with the supplier's lead time.",
"Send an alert.",
"Draft a purchase order."
],
"human_in_the_loop": "seller orders",
"guardrails": "forecast error; safety stock",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
{
"name": "stockout-predictor-0107",
"goal": "Stockout warning before the next delivery",
"persona": [
"ecom-seller"
],
"autonomy": "supervised",
"tools": [
"ecommerce-platform",
"spreadsheet"
],
"plan": [
"Read sales and stock.",
"Compute days of cover.",
"Compare with the supplier's lead time.",
"Send an alert.",
"Draft a purchase order."
],
"human_in_the_loop": "seller orders",
"guardrails": "forecast error; safety stock",
"output": "a draft for human review"
}Copies the prompt, then opens the tool. Paste it in to start.
At a glance
- Industry
- marketplace
- Autonomy
- supervised
- Difficulty
- Works with
- Steps
- 5 · 1 human checkpoint
- Runs as
- scheduled
- Data touched
- financial
- Needs approval
- seller orders
- What it costs to run
- $0.016 per run with a mid-priced model
- Evidence
- ID
UC-0107
Compare routes for this job
Share this comparison| For this job | n8n | Claude | ChatGPT |
|---|---|---|---|
| What you do by hand | Build and test the workflow once. After that it runs on each new item, and you do the human checkpoint this use case names (approve, edit or decide) before anything goes out. | Paste or attach the input each time, check the answer, and carry the result to where it goes yourself. | Set up the assistant once with your instructions and files. Then paste or attach each new input, check the answer and carry the result on. |
| Human checkpoint | seller orders | ||
| Typical API cost (same for every route) | $0.016 per run with a mid-priced model checked 2026-11-25 · pricing source | ||
| Learning curve | Terminal | Point and click | Point and click |
| Price model | free | free tier | free tier |
| Where your data goes | It runs where you install it. Your workflow data goes to the apps and models it connects to. By default n8n also sends anonymous usage data to its makers; our beginner guide switches that off. | What you type and upload goes to Anthropic's servers and is handled under its terms. Check its data settings before you use real work data. | What you type and upload goes to OpenAI's servers and is handled under its terms. Check its data settings before you use real work data. |
| Before you start | Docker or a similar tool on your computer, or a server. Our tested examples have a beginner guide. | An account on the website. The free plan is enough to try it. | An account on the website. The free plan is enough to try it. |
| Evidence for this route | Proposed pattern | Proposed pattern | Proposed pattern |
| Open | Open in run panel Tool page | Open in run panel Tool page | Open in run panel Tool page |
Where to go from here
All e-commerce seller use casesSimilar work
These use cases do the same kinds of work as this one. Each card shows what they have in common.
Software contract renewals and right-sizing
The agent lists upcoming software renewals, compares licences with actual usage and proposes changes, with alerts so no renewal is missed. The IT lead decides.
Supplier lead-time tracker
The agent computes each supplier's real delivery time from orders and receipts, flags when it slips, alerts you and updates safety stock. It checks the data first. You act.
Seasonal baselines per product
The agent fits a seasonal model to each product's sales history, computes the expected band and flags sales outside it. Products need a minimum history, and you review.
Same kinds of tools, a different job
These use cases connect to the same kinds of tools as this one, so part of your setup carries over.
Return reasons that point to fixable listings
The agent classifies return reasons, links them to product and supplier and ranks the problems you can fix in the listing. It shows sample returns so you can check its classification. You act on the fixes.
Peak-season promo and stock plan
The agent reads last season's sales, forecasts demand, plans promotions and estimates the stock you will need, with scenarios to avoid overstock. You decide.
Subscription box planner
The agent chooses items for the monthly box from stock and customer preferences, keeps the cost under a cap, reserves stock, creates the pick list and drafts the email. You approve.