Automate with Aariene
← Back to projects
PRACTICE PROJECT

Inventory Low-Stock to Purchase Approval

// 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

Pipeline Stages & Zap Actions

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.

// KEY DECISIONS

// 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

// 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.

← Back to projects

Practice project built on a common business process.