Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Monitoring, Ops & Incidents

Monitoring, Ops & Incidents

Flag low stock Shopify products and export alerts to Google Sheets

Checks Shopify inventory against 7- and 30-day unit sales to flag OUT, LOW, OK or NO_SALES items with reorder points, writing results to Google Sheets or CSV.

What it does

## Low Stock Alerts for Shopify Stores v0.1 (free) · Stallkit Studio Periodically check inventory, flag OUT / LOW / OK / NO_SALES, and suggest a reorder point from the last 7 and 30 days of unit sales. Results go to a Google Sheet (or CSV on self-hosted n8n). No LLM / no Gemini — pure rules and math. Try it first (no keys, no store): leave mode: "mock" and output: "files", click Test workflow. Self-hosted writes CSVs under /home/node/.n8n-files/low-stock-alerts/. On n8n Cloud, open the Rows: nodes. Formulas - avg_daily_30 = sales_30d / 30 - reorder_point = ceil(avg_daily_30 × safetyDays) + lowStockExtraUnits (default safetyDays=14) - suggested_order_qty = max(0, reorder_point − inventory) - Status: OUT if tracked and qty≤0; LOW if qty>0 and qty≤reorder_point; NO_SALES if no sales and not OUT; OK otherwise; NOT_TRACKED if inventory tracking is off. Live Shopify (you connect): Header Auth credential — header name X-Shopify-Access-Token, value = Admin API token. Set shopDomain, mode: "shopify". Scopes typically needed: read_products, read_inventory, read_orders (confirm in current Shopify docs; 30d+ history may need read_all_orders). n8n Cloud is a paid n8n subscription; self-hosting needs your own computer or server. This is not inventory or accounting advice. Shopify and n8n are trademarks of their respective owners. Stallkit Studio is not affiliated with or endorsed by them.

The steps

  1. Run
  2. Config
  3. Mode = mock?
  4. Mock inventory (fake data)
  5. Build products query
  6. Shopify products (GraphQL)
  7. Build orders query
  8. Shopify orders (GraphQL)
  9. Normalize Shopify data
  10. Compute alerts
  11. Rows: Alerts
  12. Alerts to sheet?
  13. Write 'Alerts' tab
  14. Alerts to CSV

20 steps in total.

Similar automations