Quick overview
This workflow runs on a schedule to pull your full Shopify product catalog, identify variants whose inventory is below a configurable threshold, and send an HTML low-stock alert email via SMTP.
How it works
- Runs every 12 hours on a scheduled trigger.
- Sets the low-stock threshold, store name, and notification recipient email.
- Fetches all products from Shopify with pagination and extracts each product variant’s SKU and inventory quantity.
- Filters the variants to keep only those with inventory below the configured threshold and aggregates them into a single summary.
- If at least one low-stock item exists, builds an HTML table and sends the alert email via SMTP; otherwise, the workflow ends with no action.
Setup
- Add Shopify API credentials with permission to read products and select them in the Shopify node.
- Add SMTP credentials for your mail server and set the sender address used for the alert email.
- Update the low-stock threshold, recipient email address, schedule frequency, and (optionally) the store name in the workflow’s configuration fields.