Manage raw material stock from delivery to usage in one connected flow. The system receives goods, logs costs, processes issue requests with approvals, and keeps stock levels accurate across tools. It fits teams that track inventory in spreadsheets but need clear approvals and timely low stock alerts.
The flow begins with three webhooks: one for receiving materials, one for issue requests, and one for approval clicks from email. Data is standardized, total price is calculated, and entries are written to Google Sheets and Supabase. The workflow looks up current stock, adds or deducts quantities, and checks a minimum level to prevent stockouts. Approvers get a Gmail message with approve or reject links, and low stock alerts send by email when the threshold is reached. Code nodes validate numbers, remove duplicates, and calculate new balances, while merge nodes bring branches back together for clean records.
Setup requires Google Sheets, Gmail, and Supabase credentials, plus a form or service that can post to the n8n webhooks. Expect faster approvals, fewer entry mistakes, and a single source of truth across Sheets and Supabase. Ideal for operations teams that buy materials often and must control usage with an audit trail and alerting.