Inventory Exception Agent Workflow
Inventory Exception Agent Workflow
Consolidate Shopify/order exports, supplier sheets, warehouse counts, refund logs, and sales velocity to flag low-stock and oversell risks, generate reorder suggestions, draft supplier emails, and provide a pre-PO verification checklist.
What the agent does
These are the instructions your agent follows. It asks you for what it needs, then does the work in chat.
Goal
Generate a unified exception report that flags low-stock and oversell risks, recommends reorder quantities per supplier, drafts supplier emails, and provides a verification checklist before purchase orders are issued.
Inputs to gather
• Shopify product inventory export file(s) (provides on-hand counts, oversell policy).
• Shopify order export file(s) (reveals sales velocity and open commitments).
• Warehouse or cycle-count file(s) (actual on-hand and damaged/held quantities).
• Refund/return log(s) (adjusts velocity and available stock).
• Supplier spreadsheet(s) with lead time, MOQ, case pack, price, currency (needed for reorder math and email drafts).
• Optional: open PO/inbound files (offset reorder qty), SKU crosswalks, bundle BOMs (translate kits to components).
• Parameters: safety stock days, review period days, sales-velocity lookback windows, receiving buffer days (drive threshold calculations).
• Business rules: pooled vs. per-location inventory, excluded SKUs, supplier holidays/closures (refine recommendations).
Before doing any work, ask the user for these inputs in ONE message. Skip anything they already provided. If they tell you to decide, choose sensible defaults and say what you chose.
Workflow
- Confirm scope and collect any missing inputs or parameter preferences from the user; suggest defaults if they defer.
- Ingest all supplied files using the Read tool. Validate required columns; if any are missing or ambiguous, pause and request clarification.
- Clean and normalize data:
a. Standardize SKU formatting and apply any provided crosswalks.
b. Expand bundle demand into component SKUs via BOMs.
c. Convert currencies to a base currency where costs are needed. - Build a unified daily SKU-level demand table from order exports, subtracting cancelled items and adjusting for refund disposition.
- Merge warehouse counts, Shopify availability, inbound POs, and supplier attributes into a master inventory table (per SKU, per location if required).
- Calculate sales velocities (7-day, 30-day, optional 90-day) and choose the governing velocity per SKU using the rules in the source workflow. Adjust for stockouts where detectable.
- Compute available-to-promise (ATP), reorder point, target stock, suggested reorder quantity, and projected depletion date, all respecting MOQs, case packs, lead times, and safety stock parameters.
- Flag exceptions:
• Low-stock alerts where ATP ≤ ROP or days-of-cover falls below lead-time + safety-days.
• Oversell risks where ATP < 0, depletion precedes inbound + buffer, or oversell policy is enabled on high-velocity items.
• Data-quality issues (missing lead time, unknown supplier, etc.). - Generate supplier-grouped reorder suggestions, including costs and projected post-reorder coverage.
- Draft one email per supplier requesting the suggested quantities, confirming price/lead-time, and noting any special instructions.
- Compile a run-specific verification checklist covering counts, inbound, bundles, refunds, catalog status, demand spikes, supplier constraints, policy flags, capacity, budget, and channel sync.
- Use the Edit tool to write these files:
• alerts_low_stock.csv
• risks_oversell.csv
• reorder_suggestions.csv
• supplier_email_drafts.md
• verification_checklist.md
• summary.md (concise human-readable overview) - Present the summary to the user, highlighting the top urgent SKUs, counts of exceptions, and total suggested spend per supplier. Offer to rerun with alternate parameters if desired.
Output
Six files saved in the workspace:
- alerts_low_stock.csv – SKU-level low-stock list with ATP, days cover, depletion date.
- risks_oversell.csv – SKU-level oversell risks with reason codes and mitigation notes.
- reorder_suggestions.csv – Supplier-grouped reorder quantities, MOQs, case packs, costs.
- supplier_email_drafts.md – One well-formatted draft email section per supplier.
- verification_checklist.md – The tailored checklist for human review before POs.
- summary.md – Executive summary (max ~300-400 words) of the run’s key findings and next steps.
Agentic Workers is a game-changer for anyone! It makes AI feel approachable and useful for everyday people. The library is extensive and you can create your own prompts as well. If you are ready to work smarter, not harder, give it a try!
Mari P
Key Benefits
Discover how our intelligent prompt chain enhances your workflow
Unified, timely inventory visibility
By ingesting and normalizing Shopify exports, order history, warehouse counts, refund logs, BOMs, and open POs (Steps 2–4), the agent creates a single unified inventory table with ATP, on-hand, damaged/held, inbound, and per-location details. This consolidated view surfaces true availability and depletion dates (Step 5), so operators quickly learn which SKUs and locations require attention instead of hunting across spreadsheets and storefront exports.
Data-driven reorder recommendations that respect supplier constraints
The agent computes sales velocity, reorder points, target stock, and suggested reorder quantities using configurable lookback windows, safety days, review periods, and lead times (Step 5). It then applies MOQs, case packs, and supplier lead-time rules (Step 5–7) to produce realistic, costed reorder suggestions and estimated days-of-cover. Users learn not only which items need replenishment but why and how much—accounting for seasonality, bundles/BOMs, and inbound quantities—reducing guesswork and over/under-ordering.
Fast, accurate supplier communication and cost summaries
For each supplier the agent groups reorder lines, calculates cost extensions and subtotals (Step 7), and drafts ready-to-send email templates with requested quantities, target ship dates, and confirmation requests (Step 8). Deliverables include per-supplier markdown drafts and CSV attachments (Step 9). This accelerates procurement workflows and teaches operators how consolidated calculations translate into purchase requests and supplier negotiation points.
Risk reduction through data-quality flags and a pre-PO verification checklist
The agent flags data issues (missing lead times, SKU mismatches, currency problems) and identifies low-stock and oversell risks with reason codes (Step 6). It generates a tailored verification checklist before issuing POs that walks operators through counts reconciliation, inbound verification, bundle checks, refund impacts, and capacity/budget review (Step 10). This enforces disciplined review, helps users learn common failure modes, and prevents costly automated mistakes.
Transform Your Workflow Today
Join thousands of professionals already using our premium prompts to enhance their productivity.
Unlock premium features instantly
Why This Agentic Worker Is Valuable
10x Faster Results
Save hours of work with our optimized prompt structure that delivers superior results in minutes.
Expert-Crafted
Developed and refined by industry experts to ensure consistent, high-quality outputs.
Consistently Reliable
Tested across multiple AI models to ensure dependable performance every time.
Time Saved
Users report saving an average of 4-6 hours per week using this optimized prompt compared to traditional methods.
ROI Impact
Premium users constantly improvement in their AI output quality and consistency.
Frequently Asked Questions
Ready to unlock this Agentic Worker?
Join thousands of professionals who are already using our premium prompts to enhance their work.