Low Stock & Sold Out Watcher for Shopify — n8n Workflow

Medium complexity🔗 Webhook8 nodes🏷️ Miscellaneous👁 1,843 viewsby siyad

Overview

This n8n workflow automates the process of monitoring inventory levels for Shopify products, ensuring timely updates and efficient stock management. It is designed to alert users when inventory levels are low or out of stock, integrating with Shopify's webhook system and providing notifications through Discord (can be changed to any messaging platform) with product images and details.

Workflow Overview

Webhook Node (Shopify Listener): This node is set up to listen for Shopify's inventory level

Nodes used

HTTP RequestGraphQLCode

Workflow Preview

Webhook Node (Shopify Listener)
Setup Requirement: First, add the "Inventory Level Upda
Purpose: Listens for inventory updates from Shopify
Setup: Configured in Shopify setti
Function Node (Inventory Check)
Purpose: Processes inventory data from Shopify.
Action: Extracts available inventory and item ID
Logic: Determines if inventory is low (<4 items) or out
Checks if low_inventory is true (almost out o
Checks if out_of_stock is true (no stock left
Shopify graphql
Retrieves product variant, title, inventory quantity, a
Uses Shopify's GraphQL API for detailed data retrieval.
Endpoint to be customized: Replace store.myshopify.com
Discord1: Configured to send messages to Chan
Discord2: Configured to send messages to Channel B.
Low Stock & Sold Out Watcher for Shopify
This n8n workflow automates the process of monitoring i
It is
W
Webhook
Code
L
Low Inventory
O
Out of stock
HTTP Request
HTTP Request1
GraphQL1- shopify
GraphQL - shopify
8 nodes7 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a webhook trigger.

  2. 2

    Process

    Data flows through 8 nodes, connecting code, graphql, httprequest.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (8)

HT

HTTP Request

httpRequest

#1
GR

GraphQL

graphql

#2
CO

Code

code

#3

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded low-stock-sold-out-watcher-for-shopify file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Low Stock & Sold Out Watcher for Shopify", "nodes": [...], ...}

Integrations

codegraphqlhttprequestifwebhook

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes8
Complexitymedium
Triggerwebhook
Views1,843

Created by

siyad

siyad

@salsiy

Tags

codegraphqlhttprequestifwebhook

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →

Related Miscellaneous Workflows