From stock alert to purchase order, automatically
How an AI agent can turn low-stock signals into draft purchase orders using days of cover and supplier lead times, with a person signing off.
Keystone Technologies · 13 November 2026 · 4 min read
Running out of a bestseller is one of the most avoidable problems in a growing brand. The warning signs are usually there: stock dropping faster than usual, a supplier who always takes longer than promised, a sale coming up next month. The trouble is that someone has to notice, do the maths and raise the order, and that someone is often busy with ten other things.
A low-stock alert on its own doesn't fix this. It tells you there's a problem, then waits for a person to work out what to do. An AI agent can go a step further: read the alert, work out how much to order and from whom, prepare the purchase order and put it in front of the right person to approve. Here's how that works in practice, and where people stay in charge.
Why a fixed threshold isn't enough
Most inventory setups start with a simple rule: alert me when a product falls below a set number of units. It's a reasonable start, but a fixed number treats every product the same. Twenty units of a slow-moving item might last months. Twenty units of your bestseller might be gone by the weekend.
A more useful measure is days of cover: how many days your current stock will last at the rate it's actually selling. If a product sells ten units a day and you have fifty, you have about five days of cover, whatever the raw number looks like. Thinking in days of cover lets one rule work across your whole catalogue, and it adjusts naturally as demand rises or falls.
Lead times change the maths
Days of cover only matters when you compare it with how long a new order takes to arrive. If your supplier needs three weeks and you have two weeks of stock, you're already late. So the real question for each product is: will the next delivery land before the shelf goes empty?
That means the agent needs to know, for each product or supplier:
- The usual lead time, and ideally how much it tends to vary in practice.
- Minimum order quantities, pack sizes and any price breaks.
- A safety buffer you're comfortable with, so a slow shipment or a busy week doesn't leave you empty.
- Stock already on order, so it doesn't raise a second order for goods that are on their way.
- Known events coming up, such as a planned sale, a festive season or a product launch.
Much of this already lives somewhere: in your store, your ERP or inventory system, and often in a spreadsheet one person keeps up to date. Part of setting up an agent is pulling those details together and agreeing which source is the one to trust.
What the agent actually does
Once the rules are clear, the daily work is straightforward. The agent checks stock levels and recent sales across your channels, works out days of cover for each product and compares it with the supplier's lead time plus your buffer. When a product is close to the line, it calculates a suggested order quantity, rounds it to the supplier's pack size or minimum order, and prepares a draft purchase order in the system you already use.
Each draft comes with a short explanation: current stock, recent sales rate, days of cover, lead time and why it picked that quantity. That explanation matters. The person approving should be able to see in a few seconds whether the suggestion makes sense, without opening three other screens to check the agent's working.
The agent prepares the order. A person decides whether it goes out. That's the line we draw by default, and you can move it only when you're comfortable.
Human sign-off, and when to loosen it
Purchase orders commit real money, so in the early weeks every order should go to a person for approval. That gives your team a chance to see the agent's suggestions, correct them and build confidence in the rules. Corrections are useful too: if someone keeps adjusting the quantity on a particular product, that's usually a sign a rule needs updating.
Over time, some teams choose to let routine, low-value reorders from trusted suppliers go through with lighter review, while anything new, unusual or above an agreed value still needs a named approver. Those limits should be written down, easy to change and visible in the agent's activity log. Some things should always stay with a person:
- Ordering from a new supplier or changing an existing one.
- Orders above an agreed value, or far larger than usual for that product.
- Products being discontinued, replaced or reformulated.
- Anything involving negotiation, credit terms or a disputed invoice.
Getting started without a big project
You don't need perfect data to begin. A sensible first step is to choose a small group of products that matter most, usually your bestsellers or items with long lead times, and agree the rules for those. Run the agent alongside your current process for a few weeks, so you can compare its suggestions with what your team would have ordered. Where they differ, find out why and adjust.
Once the suggestions are consistently sensible, widen the range of products and suppliers. Keep the rules versioned, so you always know which logic produced which order, and review them whenever your suppliers, prices or sales patterns change.
If stockouts or last-minute reorders are taking up more of your week than they should, book a call with us. Pilots start from ₹40,000, with the final price depending on the systems and work involved, and a typical first agent goes from discovery to production in about three to five weeks, depending on system access.

