Webhook Node (Shopify Listener)
Configured with Graphql, HTTP Request, Webhook. Review the connections and setup before adapting this template.
Node categories in this workflow
- Trigger
- Code
- Routing
- Web / API
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| Webhook | Trigger | Webhook | See node parameters |
| Code | Code | Code | See node parameters |
| Low Inventory | Routing | If | See node parameters |
| Out of stock | Routing | If | See node parameters |
| HTTP Request | Web / API | HTTP Request | POST |
| HTTP Request1 | Web / API | HTTP Request | POST |
| GraphQL1- shopify | Web / API | Graphql | See node parameters |
| GraphQL - shopify | Web / API | Graphql | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
discordBotApi
Workflow notes
Webhook Node (Shopify Listener)
Webhook Node (Shopify Listener)
Setup Requirement: First, add the "Inventory Level Update" event in Shopify
Purpose: Listens for inventory updates from Shopify
Setup: Configured in Shopify settings; linked to n8n URL
Action: Triggers workflow on inventory level changes
Note: Ensure correct URL setup in Shopify for accurate triggers
Function Node (Inventory Check)
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 of stock (0 items)
Note: Adjust thresholds as needed for different stock levels
Sticky Note2
Checks if low_inventory is true (almost out of stock)
Sticky Note3
Checks if out_of_stock is true (no stock left)
Shopify graphql
Shopify graphql
Retrieves product variant, title, inventory quantity, and image. Uses Shopify's GraphQL API for detailed data retrieval.
Endpoint to be customized: Replace store.myshopify.com in https://store.myshopify.com/admin/api/2023-10/graphql.json with your actual Shopify store's myshopify URL.
Sticky Note5
Discord1: Configured to send messages to Channel A
Discord2: Configured to send messages to Channel B.
Low Stock & Sold Out Watcher for Shopify
Low Stock & Sold Out Watcher for Shopify
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.
Webhook Node (Shopify Listener)
Webhook Node (Shopify Listener)
Purpose and structure
This folder contains the Webhook Node (Shopify Listener) workflow. Its executable nodes use code, graphql, httpRequest, if, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
Webhook
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Code/0373_Code_Webhook_Automation_Webhook.json MIT; preserve source notices.