🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Shopify + Slack: low stock alerts your team will act on

Lisa Granqvist Partner Workflow Automation Expert

You don’t run out of stock because you “forgot inventory.” You run out of stock because nobody noticed that one variant slipped to 3 units, then hit zero overnight, and now you’re refunding orders and explaining delays.

This Shopify Slack alerts setup hits ecommerce managers first, but ops leads and small business owners feel it too. It gives you a single, clear message in Slack when something needs action, not a daily pile of noise.

Below is the exact automation, how it works, what you need, and what results to expect once you stop checking inventory “just in case.”

How This Automation Works

The full n8n workflow, from trigger to final output:

n8n Workflow Template: Shopify + Slack: low stock alerts your team will act on

The Problem: Low-stock issues show up too late

Shopify inventory looks “fine” until it suddenly isn’t. The real pain is that stock problems are usually variant-level (size, color, bundle) and they don’t announce themselves. So you end up doing manual checks, exporting product lists, or reacting to customer emails that start with “I ordered yesterday, but…” It’s not just time. It’s the mental load of remembering what to check, plus the opportunity cost of pausing marketing because you can’t trust your inventory.

It adds up fast. Here’s where it breaks down in day-to-day operations.

  • Variant inventory gets missed because most people only spot-check best sellers, not every option.
  • Someone notices the problem after a stockout, which means refunds, backorders, and support tickets.
  • Teams share inventory updates in scattered places (email, DMs, a spreadsheet), so nobody is sure who is actually handling restocks.
  • Basic notifications become noisy, so the important ones get ignored along with everything else.

The Solution: Daily Shopify variant scans with Slack alerts

This workflow runs a scheduled inventory scan in n8n, pulls your Shopify product catalog (including all variants), and checks each variant’s available quantity against a threshold. The default threshold is 10 units, but you can change it in one place. When the workflow finds low-stock variants, it builds a clean, human-readable alert message and posts it to Slack so the right people can restock immediately. If nothing is low, it stays quiet. Honestly, that “no empty notifications” detail matters more than people expect.

The workflow starts at 9 AM each day on a Cron-like schedule inside n8n. Shopify data is downloaded, filtered in a Code step, and then an If check decides if an alert is worth sending. Finally, Slack receives a formatted report your team can act on without opening Shopify.

What You Get: Automation vs. Results

Example: What This Looks Like

Say you have 80 products with 4 variants each. That’s about 300 variants to sanity-check, and even a quick manual spot check can take 5 seconds per variant (plus loading, clicking, getting distracted), which turns into roughly 30 minutes most mornings. With this workflow, you spend maybe 2 minutes scanning a Slack message, and only on days when something is low. If nothing is under your threshold, you get zero notifications. That’s the point.

What You’ll Need

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Shopify to access products, variants, and inventory levels.
  • Slack to deliver alerts to your inventory channel.
  • Shopify API credentials (from your Shopify admin app settings).

Skill level: Beginner. You’ll connect Shopify and Slack, then adjust a threshold value and channel name.

Don’t want to set this up yourself? Talk to an automation expert (free 15-minute consultation).

How It Works

A daily schedule kicks things off. At 9 AM (by default), n8n starts the run automatically. You can move it earlier, later, or run it multiple times a day if you sell fast-moving items.

Shopify inventory is pulled in one sweep. The workflow retrieves your full product catalog, including variants, so you’re not guessing which sizes or colors are quietly running out.

Low-stock logic filters the list. A Code step compares each variant’s quantity to your threshold (default: 10 units). Then an If step checks a simple rule: if there are no low-stock items, stop and send nothing.

Slack gets a message your team can use. When there are low-stock variants, the workflow formats a concise report like “T-Shirt Blue (Medium): 3 left” and posts it in the channel you choose.

You can easily modify the threshold and alert formatting to match your catalog. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Scheduled Trigger

Set the workflow’s schedule so it checks inventory automatically on your chosen cadence.

  1. Add the Scheduled Stock Scan node as your trigger.
  2. Set the cron schedule in Rule to 0 9 * * * to run daily at 9:00 AM.
  3. Confirm Scheduled Stock Scan connects to Retrieve Product Catalog to start the data pull.

Step 2: Connect Shopify

Pull your full product list from Shopify for inventory evaluation.

  1. Add Retrieve Product Catalog and set Resource to product.
  2. Set Operation to getAll and Return All to true.
  3. Credential Required: Connect your Shopify credentials.
  4. Verify the flow from Scheduled Stock ScanRetrieve Product CatalogIsolate Low Stock Records.

Step 3: Set Up Processing and Alert Logic

Filter low stock variants and determine whether an alert should be sent.

  1. In Isolate Low Stock Records, keep the JavaScript Code as provided and adjust const lowStockThreshold = 10; if needed.
  2. In Assess Alert Requirement, set the condition Left Value to {{ $('Isolate Low Stock Records').all().length }}, operator to gt, and Right Value to 0.
  3. Ensure the execution path is Isolate Low Stock RecordsAssess Alert RequirementCompose Alert Payload.

⚠️ Common Pitfall: If your Shopify products have no variants or inventory fields, the code in Isolate Low Stock Records may return an empty list—verify your Shopify inventory tracking is enabled.

Step 4: Configure the Output Notification

Build the Slack message payload and send it to your inventory channel.

  1. In Compose Alert Payload, set Mode to raw.
  2. Set JSON Output to:
    ={ "alert_message": "🚨 *Low Stock Alert* The following items are running low: {{ $('Isolate Low Stock Records').all().map(item => `• ${item.json.product_title} (${item.json.variant_title}): ${item.json.current_stock} left`).join('\n') }}", "products_count": "{{ $('Isolate Low Stock Records').all().length }}" }
  3. In Dispatch Stock Alert, set Text to {{ $json.alert_message }} and select your target Channel.
  4. Credential Required: Connect your Slack credentials (OAuth2) in Dispatch Stock Alert.

Step 5: Test and Activate Your Workflow

Run a manual test to confirm Shopify data is pulled, filtered, and posted to Slack.

  1. Click Execute Workflow and confirm Retrieve Product Catalog returns products.
  2. Check Isolate Low Stock Records output for items at or below the threshold.
  3. Confirm Assess Alert Requirement passes when low stock items exist and that Dispatch Stock Alert posts to Slack.
  4. When successful, toggle the workflow to Active for scheduled production runs.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Common Gotchas

  • Shopify credentials can expire or be missing scopes. If alerts suddenly stop, check the Shopify credential in n8n first and confirm inventory read permissions are enabled.
  • If your Slack message fails to post, it’s often the channel setting or missing permission to post in private channels. Verify the Slack app is invited to the channel and that the token is still valid.
  • The default threshold in the Code node is generic. If you sell items with long supplier lead times, raise it, otherwise you will still feel “late” even though the workflow is working.

Frequently Asked Questions

How long does it take to set up this Shopify Slack alerts automation?

About 30 minutes if your Shopify and Slack access is ready.

Do I need coding skills to automate Shopify Slack alerts?

No. You’ll mostly connect accounts and change a threshold value. The “Code” step is already written for you.

Is n8n free to use for this Shopify Slack alerts workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in Shopify access (your plan) and normal Slack usage costs.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I customize this Shopify Slack alerts workflow for different thresholds by product type?

Yes, but you’ll tweak the logic in the “Isolate Low Stock Records” Code node. Many teams add simple rules like “hats alert at 5” and “hoodies alert at 15,” then keep the Slack message grouped by product category. You can also route “critical” items (stock at zero) to a different Slack channel by adjusting the “Assess Alert Requirement” If node and adding a second Slack message.

Why is my Shopify connection failing in this workflow?

Usually it’s expired or incorrect Shopify API credentials in n8n. Recheck the Shop Subdomain, API key/password, and confirm the app has permission to read products and inventory. If it works in a manual test but fails on schedule, your token may be hitting limits during peak times, so try moving the run earlier.

How many variants can this Shopify Slack alerts automation handle?

Thousands.

Is this Shopify Slack alerts automation better than using Zapier or Make?

Often, yes, because inventory scans tend to be “loop over a big list, filter it, then message once,” and n8n handles that without turning every item into a billable task. You also get a self-hosting option, which is handy if your catalog is large or you want more control. Zapier or Make can still work if you already pay for them and your store is small, but you may need extra steps to avoid spammy alerts. The big difference is flexibility: thresholds, grouping, and “only notify when needed” logic are straightforward here. Talk to an automation expert if you want help choosing the simplest route for your setup.

Once this is live, low-stock stops being a surprise and turns into a simple task list. Set it up once, let Slack do the nagging.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal