Low Stock & Sold Out Watcher for Shopify — n8n 工作流

复杂度🔗 Webhook8 个节点🏷️ Miscellaneous👁 1,843 次查看作者:siyad

概览

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

使用的节点

HTTP RequestGraphQLCode

工作流预览

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

工作原理

  1. 1

    触发器

    工作流由 webhook 触发器启动。

  2. 2

    处理

    数据流经 8 个节点, connecting code, graphql, httprequest。

  3. 3

    输出

    工作流完成自动化并将结果发送到配置的目标。

节点详情 (8)

HT

HTTP Request

httpRequest

#1
GR

GraphQL

graphql

#2
CO

Code

code

#3

如何导入此工作流

  1. 1点击右侧 下载 JSON 按钮保存工作流文件。
  2. 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入
  3. 3选择下载的 low-stock-sold-out-watcher-for-shopify 文件并点击导入。
  4. 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
  5. 5点击 测试工作流 验证一切正常,然后激活它。

或直接在 n8n → 从 JSON 导入 中粘贴:

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

集成

codegraphqlhttprequestifwebhook

获取此工作流

一键下载并导入

下载 JSON在 n8n.io 上查看
节点8
复杂度medium
触发器webhook
查看次数1,843

创建者

siyad

siyad

@salsiy

标签

codegraphqlhttprequestifwebhook

n8n 新手?

n8n 是一款免费开源的工作流自动化工具,支持自托管或使用云版本。

免费获取 n8n →

Related Miscellaneous Workflows