๐Ÿค Monitor Shopify low-stock items with OpenAI, Google Sheets, Slack and email

โšก 133 views ยท ๐Ÿค CRM & Sales Operations

Description

(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:

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
  10. 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:

Requirements to Use This Workflow

To run this workflow, you need:

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:

Customize Alert Messages

Edit the AI prompt to:

Customize Google Sheet Fields

You can add:

Customize Slack Alerts

Enhance messages with:

Add-Ons (Optional Enhancements)

You can extend this workflow to:

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

IssuePossible CauseSolution
No Slack alertsSlack not connectedCheck Slack credentials
Duplicate rowsSKU mismatchEnsure SKU is consistent
No low-stock itemsThreshold too lowAdjust IF condition
AI message emptyOpenAI key missingVerify API key
Workflow not runningTrigger disabledEnable 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.

๐Ÿ”— Nodes Used

Google Sheets, Slack, Shopify, Gmail, Schedule Trigger, Basic LLM Chain

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup