Back to library
Inventory·n8n workflow

Daily Low Stock Alert with JavaScript

Advanced inventory scanning with custom threshold logic.

Overview

Polls Shopify product inventory daily, uses JavaScript to identify variants below threshold (configurable), and sends detailed email alerts. Includes SKU, product name, variant, and current qty. **What it automates:** - Daily scheduled inventory checks - Custom low-stock thresholds per SKU - Detailed email reports with variant-level details - Prevents accidental stockouts **Apps & credentials needed:** - Shopify (Admin API) - Gmail or SendGrid (email) - Code node (JavaScript for filtering) **Setup steps:** 1. Connect Shopify Admin API 2. Set low-stock threshold (default 5 units) 3. Add email recipients 4. Test with a product variant 5. Schedule check time (e.g., 9am daily) 6. Review first email to adjust threshold **Difficulty:** Intermediate+ | **Est. setup:** 20-25 min **Note:** Uses JavaScript code node for advanced filtering

What's included

Importable n8n workflow (JSON)
Real, wired nodes — trigger, logic, and actions
Setup notes: which credentials to connect
Free updates when the workflow changes
Commercial-use license — keep and customize
Email support if you get stuck

Quickstart

  1. 01

    Download the JSON

    With an active Library Pass, download the workflow file right from this page or your dashboard.

  2. 02

    Import into n8n

    Choose Import from File and select the downloaded JSON. The full agent graph appears, ready to configure.

  3. 03

    Plug in credentials

    Each integration node prompts for credentials on first run. The setup guide lists every credential the agent expects.

  4. 04

    Activate and test

    Run once with sample input, confirm the expected output, then flip the activate toggle.

Reviews (0)

No reviews yet. Be the first.

Sign in to leave a review.

Library Pass

Included with any pass

This agent — and every other in the library — comes with a Library Pass. One pass, the whole catalog.

Get a Library Pass
  • Every agent in the library
  • All new releases while active
  • Unlimited downloads
  • Commercial-use license
  • Priority email support
  • 30-day money-back guarantee
Browse the full library →