Inventory Low-Stock to Purchase Approval
- Zapier
- Google Sheets
- Slack
- Paths by Zapier
- Formatter by Zapier
// THE BRIEF
An operations team needs to know when stock runs low, raise a purchase request, and get it approved before anything is ordered. Done by hand, shortages are noticed late, requests get duplicated, and nobody can see what is waiting for approval. The goal was a small procurement control flow: detect low stock, create one request per shortage, route it by cost, and record the decision. It reflects the kind of inventory and purchase request work I handled in manufacturing operations on SAP S/4HANA.
// WHAT I BUILT
The core Zap starts when an item's stock changes in a Google Sheets inventory. It creates a purchase request in a separate request ledger, routes it by cost with Paths, and records the approval decision. All data is fictional.
Zap overview: low-stock check, cost routing, and approve or reject outcomes
| Stage | What the Zap does |
|---|---|
| Stock change detected | The Zap starts when an item's Current_Stock changes in the Inventory sheet. |
| Check and de-duplicate | A filter continues only when the item is low on stock and has no open request, so repeated edits can't create a second request. |
| Create request | The date is formatted, a purchase request is added to the request ledger with the item, quantity, estimated total and supplier, and the request ID is saved on the inventory item. |
| Route by cost | Paths split requests into auto-approval (total of $100 or less) and manager approval (over $100). |
| Auto-approval | The request is marked approved under the demo policy and purchasing is notified in Slack. |
| Manager approval | Slack asks the manager to approve or decline. Paths then update the request ledger as approved or rejected. |
Pipeline Stages & Zap Actions
The Zap starts when an item's Current_Stock changes in the Inventory sheet.
A filter continues only when the item is low on stock and has no open request, so repeated edits can't create a second request.
The date is formatted, a purchase request is added to the request ledger with the item, quantity, estimated total and supplier, and the request ID is saved on the inventory item.
Paths split requests into auto-approval (total of $100 or less) and manager approval (over $100).
The request is marked approved under the demo policy and purchasing is notified in Slack.
Slack asks the manager to approve or decline. Paths then update the request ledger as approved or rejected.
// KEY DECISIONS
- A separate request ledger: an item can have many requests over time, and each one needs its own ID, status and history.
- A duplicate guard: the inventory item stores its open request ID, so editing the same low-stock row again doesn't create another request.
- Cost-based routing: small requests are approved automatically and larger ones need a manager's decision. The $100 limit is an illustrative demo policy that a real business would set.
- Approval is a deliberate decision in Slack, not just a notification.
// TESTING
I ran the workflow with fictional inventory data. A low-cost item was auto-approved and posted to Slack, a larger request was sent to the manager in Slack, and I tested both an approval and a rejection, confirming the request ledger updated each time.
Request ledger with auto-approved, approved and rejected requests
Slack approval request sent to the manager
// WHAT I'D ADD FOR PRODUCTION
- A restock step that closes the open request when goods are received
- Reminders and escalation for approvals left pending too long
- Error alerts so failed runs are visible and recoverable
- A database with unique constraints, since a spreadsheet can't fully prevent duplicate requests when two edits happen at the same moment
// OUTCOME
What this workflow delivers
- When an item drops below its reorder level, a purchase request is created without anyone checking the stock sheet.
- Orders of $100 or less are approved automatically. Larger ones go to the manager in Slack for one-click approve or reject.
Tested end to end with sample inventory data. In a live setup I’d track approval turnaround and stock-outs.
Practice project built on a common business process.