How it works

Follow these 6 simple 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.

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.

Frequently asked questions

Will this send notifications for every single item in large orders?
Yes, if a customer orders 5 different products and 3 of them are now out of stock, you'll receive 3 separate Discord messages. Each out-of-stock item gets its own notification with specific product details and admin links.
What happens if the same product goes out of stock multiple times in one day?
You'll receive a notification each time an order causes a product to hit zero inventory, even if it's the same product. This helps you understand demand patterns and restock urgency for popular items.
Can I customize the Discord message format or add more product information?
Absolutely. You can edit the message content in the Discord step to include additional product details like vendor, product type, or inventory policy. The workflow has access to all product variant data retrieved in earlier steps.
What is a template?
Templates are pre-made workflows by our team of experts. Instead of building a workflow from scratch, these have all the steps needed to complete the task.
Can I personalize a template?
Yes! Every step can be customized to meet your exact requirements. Additionally, you can even add more steps and make it more sophisticated.
Are templates free?
Yes! Our entire library containing hundreds of templates are free to use and customize to your exact needs.

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

Join thousands who've automated their work and saved an average of 3.5 hours every week.

Start with this template — It's free
7-day free trial • 7 min setup • Cancel anytime