Send Shopify Product Out of Stock Message to Discord

7 min setup
No coding required
Runs automatically

Get instant Discord alerts when Shopify products go out of stock. This workflow sends real-time notifications to your specified Discord channel the moment inventory reaches zero. Your team receives detailed product information to quickly restock items and minimize lost sales. Track stockouts across your store and maintain optimal inventory levels with targeted Discord messages that keep your whole team in the loop.

Shopify logo icon
Order Created
Retrieve Shop
Loop
Retrieve Product Variant
Filter
discord icon
Create Channel 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 get notifications whenever 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 monitors your Shopify store for new orders and kicks off the entire workflow, ensuring you're notified about stock shortages as they happen in real-time.

When a customer places an order in your Shopify store, this trigger automatically activates and captures all the order details including line items and product information. The trigger is pre-configured to run on every new order, so no setup is required from you. It immediately passes the complete order data to the next step for processing.

Retrieve Shop

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: This step gathers your store's basic information needed to create proper links back to your Shopify admin in the Discord notifications.

This step automatically retrieves your shop's domain name and other store details that will be used later to build admin URLs in your Discord messages. The system uses this information to create clickable links that take you directly to the product page in your Shopify admin. No configuration is needed as it pulls data directly from your connected Shopify store.

Loop

App connector: Loop • Time to complete: 0 minutes (Auto-configured)
Why this matters: This step processes each individual product in the order separately, allowing the workflow to check stock levels for every item the customer purchased.

The Loop step takes the order's line items and processes them one by one, creating individual iterations for each product variant in the order. This ensures that if a customer buys multiple different products, each one gets its own stock level check. The loop automatically handles both single-item and multi-item orders without any configuration needed.

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, which is essential to determine if the item is actually out of stock.

For each product in the order, this step pulls the complete variant details including the current inventory quantity from Shopify. It retrieves information like SKU, product options, and most importantly the real-time stock level that determines whether a Discord notification should be sent. The system automatically uses the variant ID from each loop iteration to fetch the correct product data.

Filter

App connector: Filter • Time to complete: 0 minutes (Auto-configured)
Why this matters: This step prevents unnecessary notifications by only allowing products with zero or negative inventory to trigger Discord messages.

The Filter step examines the inventory quantity retrieved in the previous step and only continues the workflow if the stock level is zero or below. This ensures you only get notified about genuine out-of-stock situations rather than receiving messages for every single order. Products with remaining inventory are filtered out and won't trigger Discord notifications.

discord icon

Create Channel Message

App connector: Discord • Time to complete: 2 minutes
Why this matters: This step sends the actual Discord notification with product details and admin links, giving you immediate visibility when items go out of stock.

You'll need to configure your Discord channel ID where you want to receive stock alerts. The message automatically includes either the product SKU or product name with variants, confirms the out-of-stock status, and provides a direct link to the product in your Shopify admin. To find your channel ID, right-click on your Discord channel and select "Copy ID" from the menu.

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

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

Get started →

Make it your own!

Customize this workflow even further:

Schedule delayed notifications
Add a Delay step before the Discord message to wait 5-10 minutes, giving you time to restock popular items before alerting your team about shortages.
Create restocking tasks automatically
Connect to project management tools like Asana or ClickUp to automatically create restocking tasks with product details and supplier information when items go out of stock.
Track stock shortage patterns
Add a Google Sheets or Airtable step to log all out-of-stock events with timestamps, helping you identify which products need better inventory forecasting.
Send different alerts by product type
Use additional Filter steps to route notifications to different Discord channels based on product categories, alerting your clothing team separately from your electronics team.

Common questions

Will this send notifications for every single item in large orders?

What happens if the same product goes out of stock multiple times in one day?

Can I customize the Discord message format or add more product information?

Ready to get notifications whenever products go out of stock after an order?

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

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