Receive Slack Notifications When a Shopify Product Goes Out of Stock

6 min setup
No coding required
Runs automatically

Stay on top of inventory levels with automatic Slack alerts whenever a product goes out of stock. This MESA workflow template notifies your team immediately, allowing you to address stockouts and take action to replenish inventory quickly. Avoid missed sales opportunities and keep your operations running smoothly with real-time stock updates.

Shopify logo icon
Order Created
Retrieve Product Variant
Determine if the product is out of stock
slack logo icon
Send Message

You're in good company

"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
PetFriendly

"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Zailys

"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Rothy's

How it works

6 steps to start receiving Slack notifications when products go out of stock after an order

Shopify logo icon

Order Created

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: This trigger captures every new order placed in your Shopify store, providing the essential data needed to check if any purchased items have gone out of stock.

When a customer completes an order in your store, this trigger automatically captures all the order details including line items, quantities, and product variants. The trigger runs immediately when an order is created and requires no configuration from you. It passes the complete order data to the next step so the workflow can examine each purchased item and check their current inventory levels.

Retrieve Shop

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: This step gets your shop's domain information, which is needed to create proper links to products in your Slack notifications.

The workflow automatically retrieves your shop's basic information from Shopify, including your store's domain name. This data gets used later when generating direct links to product pages in the Slack message, so you can quickly navigate to out-of-stock items from the notification. No configuration is needed as it pulls from your connected Shopify store automatically.

Loop through ordered products

App connector: Loop • Time to complete: 0 minutes (Auto-configured)
Why this matters: This step processes each individual item in the order separately, ensuring every product variant gets checked for stock levels rather than missing items in multi-product orders.

The Loop step takes the line items array from the order and creates a separate execution path for each product variant purchased. If someone orders 3 different products, this creates 3 parallel processes - one for each item. This ensures that every single product variant gets its inventory checked individually, preventing any out-of-stock items from being missed in larger orders.

Retrieve Product Variant

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: This step fetches the current inventory quantity for each product variant, providing the real-time stock data needed to determine if an item is out of stock.

For each product variant from the loop, this step queries Shopify to get the latest inventory information including current stock quantity, SKU, and product details. It retrieves the exact inventory count at the moment the workflow runs, not the inventory level from when the order was placed. This current data gets passed to the filter step to determine if the item has reached zero stock.

Determine if the product is out of stock

App connector: Filter • Time to complete: 0 minutes (Auto-configured)
Why this matters: This step only allows the workflow to continue when a product variant has exactly zero inventory, preventing unnecessary notifications for items that are still in stock.

The Filter step compares the current inventory quantity to zero and only passes items that match this condition. If the inventory quantity equals zero, the workflow continues to send a Slack notification. If the item still has stock remaining, the workflow stops for that particular variant. This ensures you only receive alerts for genuinely out-of-stock items, avoiding notification spam for products that are still available.

slack logo icon

Send Message

App connector: Slack • Time to complete: 1 minute
Why this matters: This step delivers the actual Slack notification with product details and a direct link to manage the out-of-stock item in your Shopify admin.

You'll configure which Slack channel should receive the out-of-stock notifications by entering your channel name in the "What is your Slack channel?" field. The message automatically includes either the product SKU or the product title with variant options, plus a direct link to the product page in your Shopify admin. Enter your channel name exactly as it appears in Slack (with or without the # symbol).

Ready to set this up? It only takes 6 minutes.

Our support team will even help you personalize this workflow for free.

Get started →

Make it your own!

Customize this workflow even further:

Set custom message formats
Customize the Slack notification to include additional product details like vendor, price, or inventory location using the Transform step.
Add email notifications alongside Slack
Connect an Email step to send notifications to multiple team members who aren't in your Slack workspace.
Store out-of-stock events in spreadsheets
Use a Google Sheets step to log all out-of-stock incidents with timestamps for inventory trend analysis.
Deploy restock reminder workflows
Chain this with a Delay step and Schedule trigger to send follow-up reminders if items remain out of stock after a set time period.

Common questions

Can I customize which products trigger notifications?

Will this send multiple notifications if the same product goes out of stock from different orders?

What happens if my Slack channel name changes?

Ready to start receiving Slack notifications when products go out of stock after an order?

7-day free trial • 6 min setup • Cancel anytime

Need help? Our automation experts will help you personalize this workflow for free. Contact support