Challenge: replenishment is decided by manually reviewing stock levels, so products run out too early or sit around too long
An online store (illustrative example) sells several hundred SKUs sourced from several suppliers. Stock levels are in the warehouse system, sales in the store platform, and prices and delivery times in messages and spreadsheets from suppliers. Once a week, the person responsible for purchasing exports stock levels, compares them with sales from recent weeks, manually calculates what to order, and writes orders to each supplier in turn.
This process had three recurring problems:
- the decision to order depends on when someone gets around to reviewing the data, so a popular product may be unavailable before it even appears in an order,
- the same numbers are retyped between the system, the spreadsheet, and the message to the supplier, which increases the risk of mistakes,
- nobody tracks deadlines, so the store learns about a delayed delivery only when customers start asking about availability.
Solution: from stock level to an approved order and a tracked delivery
The automation guides purchasing from the daily stock check to the moment the goods are back on the shelf:
- Daily stock check – n8n, a tool for building workflows between systems, runs at a set time (the schedule can be hourly, daily, weekly, or based on a cron expression). It pulls stock levels from the warehouse system and sales from the store platform via API, as long as both systems provide one.
- Replenishment rule – for each SKU, the workflow compares the stock level with a threshold set by purchasing, for example taking into account the sales rate and delivery time. SKUs below the threshold go onto a replenishment list, and the rest are skipped.
- Draft order – the list is grouped by supplier, and a ready draft order is created for each one, with quantities calculated according to the rule. The data is not retyped, because it comes from the same sources.
- Approval – the draft goes to the person responsible for purchasing with a request for a decision. The workflow waits for a reply and resumes after a link click or a form submission (n8n supports resuming after a webhook call or after a form is filled in). The person can approve the order, adjust the quantities, or reject it.
- Sending and deadline tracking – once approved, the order goes to the supplier in the agreed format, and the expected delivery date appears in the calendar. If the goods do not arrive on time, the workflow sends a reminder to the responsible person and records the problem in the supplier's history.
- Receiving goods – after the delivery is registered in the warehouse system, the workflow compares the received quantities with what was ordered and, if they match, closes the order. Discrepancies go to the warehouse as a task, together with the documents.
Sample timeline: 6 weeks from design to a working process
- Weeks 1–2 – audit and process mapping: we produce a diagram of the current steps, a list of systems, suppliers, and exceptions, and the metrics to measure before the change.
- Weeks 2–3 – rule design: replenishment thresholds, grouping by supplier, the format of orders, and escalation paths.
- Weeks 3–4 – building the workflow in n8n and the integrations with the warehouse system and the store platform.
- Weeks 4–5 – approvals and reminders: a decision form, messages to suppliers, and a delivery calendar.
- Weeks 5–6 – testing on part of the assortment, team training, and full rollout.
What results to expect
Specific numbers depend on the starting point, so before rollout we measure a few indicators and after rollout we compare them with the baseline. For purchasing, these are usually the number of stockouts during the month, the time purchasing spends preparing orders, and the number of deliveries received late.
The direction of change is usually as follows:
- Detecting shortages: from a weekly spreadsheet review to a daily check using the same rule.
- Preparing orders: from manual calculation and retyping to a draft that only needs to be checked and approved.
- Tracking deliveries: from one person's memory to reminders sent when a deadline passes.
- Supplier history: from scattered messages to a single place that shows who delivered late and when.
Where a human decides
The automation orders nothing without approval. A draft order is only a proposal, and whether it is sent is decided by the person responsible for purchasing, who knows seasonality, promotions, and marketing plans, that is, what no rule can see. That person also sets the replenishment thresholds, the list of suppliers, and the escalation rules, and changing a rule is a single edit in the configuration, not a rebuild of the process. Every proposal can be changed in one move: correct a quantity, switch the supplier, or reject the whole order. The team does not lose contact with suppliers, because price negotiations and conversations about problems stay with people. What it gains is the time that used to go into calculating and retyping.
Takeaways
Purchasing automation removes repetitive work, not people from the process. The biggest effect usually comes from three elements: daily stock checks using one rule, draft orders prepared from the same data, and reminders that track deliveries on the team's behalf.
If in your company products run out before anyone has time to order them, and purchasing loses time every week retyping numbers between systems, that is usually the first sign it is worth starting with an audit of the current process.