๐Ÿค Monitor D2C inventory, forecast demand with GPT-4o, and send POs via Google Sheets and Gmail

โšก 189 views ยท ๐Ÿค CRM & Sales Operations

Description

๐Ÿ“Š Description

Stop finding out youโ€™re out of stock after a customer already tried to buy. This workflow monitors your entire product inventory daily, calculates how fast each SKU is selling, and automatically raises purchase orders to your supplier before you hit zero โ€” all without you opening a spreadsheet. Built for D2C brands and ops teams who are tired of manual stock checks, surprise stockouts, and dead inventory eating up cash. The AI layer adds demand forecasting and tells you exactly what to bundle, discount, or kill every week.

What This Workflow Does

โฐ Triggers every morning at 8AM to fetch fresh product and stock data automatically ๐Ÿงฎ Calculates sales velocity per SKU using a 7-day rolling average from your Sales Log ๐Ÿšฆ Flags every SKU as ๐Ÿ”ด Stockout Risk, ๐ŸŸก Dead Stock, or ๐ŸŸข Healthy and updates Google Sheets ๐Ÿ“ง Sends instant email alerts when a SKU is about to run out or has been sitting unsold ๐Ÿ“‹ Automatically calculates reorder quantity using lead time and buffer stock formula ๐Ÿญ Emails a formatted Purchase Order directly to your supplier โ€” no manual drafting ๐Ÿค– Sends all dead/slow SKUs to GPT-4o every Sunday for actionable recommendations โ€” bundle, discount, or kill ๐Ÿ“Š Delivers a 30-day demand forecast every Sunday based on 90 days of sales history and seasonal context

Key Benefits

โœ… Never get caught off guard by a stockout again โœ… POs go to suppliers automatically โ€” zero manual work โœ… AI tells you what to do with slow-moving inventory every week โœ… 30-day demand forecast keeps you buying ahead, not reacting โœ… Everything logged in Google Sheets โ€” full visibility at all times โœ… Works with any product catalog โ€” just plug in your Sheet

How It Works

The workflow runs in 5 stages, each timed 5 minutes apart every morning so data flows cleanly from one stage to the next.

Stage 1 โ€” Data Sync (8:00 AM daily) Pulls product data from DummyJSON API (swap with your Shopify or WooCommerce endpoint when going live), simulates daily sales per SKU, and writes everything into your Google Sheets inventory log.

Stage 2 โ€” Stock Health Check (8:05 AM daily) Reads the last 7 days of sales, calculates average daily velocity per SKU, and assigns a flag. Anything running out in under 14 days gets flagged ๐Ÿ”ด. Anything with zero sales in 7 days gets flagged ๐ŸŸก. Everything else is ๐ŸŸข. Flags are written back to your sheet and email alerts fire immediately for anything critical.

Stage 3 โ€” Auto Reorder Engine (8:10 AM daily) Picks up every ๐Ÿ”ด SKU and runs it through a reorder formula โ€” (avg daily sales ร— lead time) + 7-day buffer stock. A properly formatted Purchase Order email goes straight to your supplier. Every PO is logged in the PO Tracker sheet with status, quantity, and date.

Stage 4 โ€” Dead Inventory AI Digest (Every Sunday 9:00 AM) All ๐ŸŸก SKUs get sent to GPT-4o with your stock levels and sales data. The AI comes back with a recommendation for each one โ€” bundle it, run a discount (with exact percentage), or kill the SKU entirely. You get a clean email grouped by urgency: high, medium, low.

Stage 5 โ€” 30-Day Demand Forecast (Every Sunday 9:30 AM) Aggregates the last 90 days of sales per SKU and sends it to GPT-4o with the current month for seasonality context. GPT predicts how many units youโ€™ll need in the next 30 days, calculates stock gap, and tells you what to reorder now, stock up on, or reduce. Delivered as a clean email report every Sunday morning.

Features

Requirements

Setup Steps

Target Audience

๐Ÿ›’ D2C brand owners managing inventory without a dedicated ops team ๐Ÿ“ฆ E-commerce operators tired of manual stock checks and surprise stockouts ๐Ÿ’ผ Operations managers who want a real-time view of inventory health ๐Ÿค– Automation agencies building supply chain solutions for e-commerce clients

๐Ÿ”— Nodes Used

Google Sheets, HTTP Request, Gmail, Schedule Trigger, Filter, OpenAI

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup