Skip to main content

Monitor Shopify low-stock items with OpenAI, Google Sheets, Slack and email

Workflow preview

Workflow preview
100%
Monitor Shopify low-stock items with OpenAI, Google Sheets, Slack and email preview
Open on n8n.io

1. Workflow Overview

(Retail) Supplier Restock Request Trigger This workflow automatically monitors your Shopify inventory, detects low stock products, generates smart alert messages, logs records in Google Sheets and ...

Best for

  • CRM automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.shopify, n8n-nodes-base.set, n8n-nodes-base.splitinbatches, n8n-nodes-base.if, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.code

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.

Original n8n.io source

1.1 Workflow description

Title
Monitor Shopify low-stock items with OpenAI, Google Sheets, Slack and email
Workflow name
Monitor Shopify low-stock items with OpenAI, Google Sheets, Slack and email

(Retail) Supplier Restock Request Trigger

This workflow automatically monitors your Shopify inventory, detects low-stock products, generates smart alert messages, logs records in Google Sheets and sends priority-based notifications to Slack.

This workflow checks your Shopify store every 5 hours, identifies products with low inventory (≤10 units), generates professional alert messages using AI, prevents duplicate alerts using Google Sheets, assigns priority based on stock level and notifies your team on Slack.

You receive:

  • Automated inventory checks every 5 hours
  • Google Sheet tracking for low-stock products
  • Priority-based Slack alerts (High / Medium / Low)

Ideal for teams that want proactive inventory visibility without manual stock checks.

Quick Start – Implementation Steps

  1. Connect your Shopify account to fetch products and inventory.
  2. Connect OpenAI to generate alert messages.
  3. Connect a Google Sheet for tracking alerts.
  4. Connect Slack to receive notifications.
  5. Activate the workflow — monitoring starts automatically.

What It Does

This workflow automates low-stock monitoring for Shopify products:

  1. Runs automatically every 5 hours.
  2. Fetches all products and inventory levels from Shopify.
  3. Cleans and prepares product data (SKU, name, stock, vendor).
  4. Processes products in small batches to avoid overload.
  5. Filters only products with stock ≤ 10 units.
  6. Generates a professional alert message using AI.
  7. Checks Google Sheets to avoid duplicate records.
  8. Appends new records or updates existing ones.
  9. Assigns priority based on stock level:
  • 2 units → High priority
  • 6 units → Medium priority
  • 10 units → Low priority
  1. Sends a clear Slack alert to the team.

This ensures timely restocking with no duplicate alerts.

Who’s It For

This workflow is ideal for:

  • E-commerce store owners
  • Inventory & operations teams
  • Shopify store managers
  • Supply chain teams
  • Startups managing limited stock
  • Businesses wanting automated restock alerts

Requirements to Use This Workflow

To run this workflow, you need:

  • n8n instance (cloud or self-hosted)
  • Shopify store with API access
  • OpenAI API key
  • Google Sheets access
  • Slack workspace with API permissions

No advanced technical knowledge required.

How It Works

  1. Scheduled Check – Workflow runs every 5 hours.
  2. Fetch Products – Retrieves all Shopify products.
  3. Prepare Data – Extracts SKU, name, stock, vendor.
  4. Low-Stock Filter – Keeps only items ≤ 10 units.
  5. AI Message Creation – Generates alert text.
  6. Duplicate Check – Looks up Google Sheet records.
  7. Update or Insert – Keeps the sheet up to date.
  8. Priority Assignment – Sets urgency level.
  9. Slack Alert – Notifies the team instantly.

Setup Steps

  1. Import the provided n8n workflow JSON.
  2. Open the Shopify nodes → connect your Shopify credentials.
  3. Add your OpenAI API key in the AI nodes.
  4. Connect your Google Sheets account and map fields.
  5. Connect Slack and select the alert channel.
  6. Adjust stock thresholds if needed.
  7. Activate the workflow — done!

How To Customize Nodes

Customize Stock Thresholds

Modify the IF / Switch nodes to:

  • Change low-stock limits
  • Add more priority levels

Customize Alert Messages

Edit the AI prompt to:

  • Change tone (urgent, friendly, formal)
  • Add emojis or mentions
  • Include pricing or vendor info

Customize Google Sheet Fields

You can add:

  • Vendor name
  • Last updated date
  • Restock status
  • Assigned team member

Customize Slack Alerts

Enhance messages with:

  • @mentions
  • Emojis
  • Links to Shopify product pages

Add-Ons (Optional Enhancements)

You can extend this workflow to:

  • Send email alerts
  • Create weekly summary reports
  • Add auto-restock triggers
  • Integrate with ERP systems
  • Track restock completion
  • Add dashboards using Google Sheets

Use Case Examples

1. Inventory Monitoring

Automatically track low-stock items.

2. Restock Planning

Prioritize restocking based on urgency.

3. Team Alerts

Notify operations instantly via Slack.

4. Audit & Tracking

Maintain a clean inventory alert log.

5. Store Scaling

Prevent stock-outs as order volume grows.

Troubleshooting Guide

Issue Possible Cause Solution
No Slack alerts Slack not connected Check Slack credentials
Duplicate rows SKU mismatch Ensure SKU is consistent
No low-stock items Threshold too low Adjust IF condition
AI message empty OpenAI key missing Verify API key
Workflow not running Trigger disabled Enable Schedule Trigger

Need Help?

If you need help customizing or extending this workflow with advanced features like adding analytics, ERP integrations, advanced alerts or scaling it for high-volume stores, then our n8n workflow developers at WeblineIndia are happy to help.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Trigger in Schedule time

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Fetch Products

Type / Role
n8n-nodes-base.shopify - shopify
Config choices
Version 1

Block 3 - Prepare Product data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Process each product

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 5 - Check low stock

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 6 - AI text genrator

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 7 - Genrate Alert Message

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 8 - Formate Alert Message

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Check existing records

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 10 - New or existing records??

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 11 - Add product alert to sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 12 - Update existing alert in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 13 - Set stock priority

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.3

Block 14 - High Priority Alert

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Medium Priority Alert

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - Low Priority Alert

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Send slack alert

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 18 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Notify team

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

3. Summary Table

Workflow Monitor Shopify low-stock items with OpenAI, Google Sheets, Slack and email
Complexity advanced
Nodes 23
Categories CRM, AI Summarization
Author WeblineIndia
Published 26 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14370/14370.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Monitor Shopify low-stock items with OpenAI, Google Sheets, Slack and email do?

(Retail) Supplier Restock Request Trigger This workflow automatically monitors your Shopify inventory, detects low stock products, generates smart alert messages, logs records in Google Sheets and ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your CRM, AI Summarization use case.