Skip to content
Request a proposal

Automation and AI

Low stock alerts: how to automate replenishment

Connect inventory, alerts, and purchase proposals. An example with projected stock, minimums, and full boxes to prepare replenishment with data and review.

To automate low stock alerts, you need to connect inventory, define when to warn, and assign an action to the person responsible. The flow can detect a need, check expected incoming stock, and prepare a replenishment proposal. Before turning it into an order for the supplier, it should apply the purchasing conditions and the approval you’ve agreed on.

The difference shows up in the alert. “There are only a few units left” makes you investigate. “This item will drop below the minimum; there’s a pending delivery and a purchase proposal to review” lets you decide with context.

The cover is an AI-generated illustration about data review; it does not show an inventory or a real Digency case.

What stock should trigger the alert

The figure shown in the warehouse is not always the one you can sell. Part of the material may be committed, waiting to be checked, or in a location from which that order cannot be shipped. There may also be goods on the way.

Before connecting tools, agree on what each data point means:

  • Usable physical stock: present units that are not damaged, blocked, or waiting to be validated.
  • Committed outgoing stock: units that must be delivered within the period you’re reviewing.
  • Confirmed incoming stock: goods pending receipt, with quantity, location, and expected date.
  • Projected stock: the result of combining those movements for a specific date.

If your system already returns an available quantity that subtracts reservations, don’t subtract them again. Also check that expected incoming stock doesn’t include cancelled purchases or material that has already been received.

Timing matters: a delivery expected after the date you need the product does not solve that shortage. Review movements by date, not just the final month-end balance. Also define what happens if the supplier delays a delivery.

Example: from 16 projected units to a purchase proposal

This is a fictional, simplified example, with one item, one warehouse, and one planning period. It is not a recommendation on quantities for your business.

Example data Units
Usable physical stock 20
Committed outgoing stock in the period 8
Confirmed incoming stock arriving on time 4
Projected stock: 20 − 8 + 4 16
Minimum that triggers review 18
Target level after replenishment 30

Since 16 is below 18, the review is triggered. To reach the target, you need 14 units. If the supplier only ships in boxes of five, the proposal would be for 15 units: three boxes. The projected balance would be 31; the person responsible should be able to see that the target is exceeded because of the purchasing format.

The formula is not enough to confirm the order. You also need to check the lead time for the new purchase, any supplier minimums, and whether there is already a pending proposal for that need. If replenishment arrives too late, another decision is needed: consider a stock transfer or manage the timing with the person waiting for the delivery.

These rules may already exist in your management system. For example, Odoo documents minimums, maximums, purchase multiples, and manual or automatic replenishment triggers. It’s worth reviewing that setup before adding another automation that competes with it. Odoo replenishment rules.

How to set up the alert and replenishment flow

1. Choose an inventory source

Decide which system is the source of truth: the ERP, the warehouse system, or the store, depending on how you operate. The data should identify the product, variant, unit of measure, and location. “One box” and “one unit” can’t be swapped without a defined conversion.

If sales come through multiple channels, make sure their movements are recorded before calculating. When inventory is out of date or the connection fails, show the issue and avoid presenting the calculation as current.

2. Define the rules by product and warehouse

Set the minimum, target level, supply lead time, and purchasing conditions. Adapt them to turnover, storage capacity, and product constraints. An item with an expiry date or seasonal demand needs specific review.

Also choose when to check: after certain movements, on a scheduled review, or with both options. Don’t promise real-time alerts if the data source is updated once a day.

3. Send an alert that lets people act

Include the item, location, projected stock, calculation date, reason for the alert, and a link to the record. Assign an owner and separate routine review from an urgent need.

Shopify Flow, for example, offers a template to send an email when a variant’s inventory drops. Its documentation also includes summaries of low-stock items. It’s one alert option; you need to review which data and scope the specific flow uses. Internal notifications in Shopify Flow.

Avoid a new email every time the process finds the same shortage. Keep one open alert per need, update it when the data changes, and define when to remind people or escalate it.

4. Prepare a proposal and check its status

The proposal should keep the calculation, the chosen supplier, the suggested quantity, and who needs to approve it. First check open purchases and drafts: a confirmed purchase may already cover the need; a draft doesn’t yet guarantee delivery, but it also shouldn’t be duplicated.

Before approving, check the inventory and conditions again. If the integration fails when saving the order, verify whether the record was created before trying again. Keep its reference so you can track it through to receipt.

If you also need to record orders sent by your customers, that’s another flow: turn email orders into ERP records. Here we’re preparing supply from your inventory.

Where AI adds value

Comparing a quantity with a minimum and rounding to boxes are calculations that rules can handle. AI can help when less structured information comes in: interpreting an email from the supplier, suggesting extraction of a new date, or drafting an explanation of the alert from verified data.

For example, when faced with “item A will arrive on Thursday and B is still pending,” it can prepare an update proposal with the original message linked. The system should validate the references and the exact date before changing forecasts. If the data is missing, it should leave it pending review.

Demand forecasting is a different project. It requires suitable historical data and checking how forecasts behave against reality. Don’t assume that adding an AI assistant fixes incomplete inventory or predicts every sales change.

What to test before activating automatic purchasing

Start with a limited group of items and proposals reviewed by a person. Include tests with a partial receipt, an unvalidated return, a supplier date change, two simultaneous runs, and a failed connection.

Check that each proposal can be rebuilt: which data it used, which rule it applied, and what changed afterward. Measure useful alerts, discarded ones, quantity corrections, and review time. It’s not enough to count how many alerts were sent.

To explore a custom AI automation, prepare examples of items, how you record incoming and outgoing stock, and who makes purchasing decisions. At Digency, we can review that flow and define a first connection between inventory, alerts, and replenishment proposals.

Common questions

Common questions.

AI Automation

Shall we do this at your company?

We automate what repeats every week (quotes, reviews, reports) with a person in charge of every decision. Pilot with real data before rollout.

Contact

Tell us what you're working on.

A new website, a video, a campaign or all three at once. Tell us about it and we will say where we would start.

Or write it down here

Fill this in and we will come back with something specific, not a catalogue.

What you do, what you want to move and by when. Two lines is plenty.