How it works

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

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.

Filter

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).

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.

Frequently asked questions

Can I customize which products trigger notifications?
Yes, you can add additional Filter steps before the Slack message to exclude certain products by vendor, product type, or tag. For example, you could filter out discontinued items or seasonal products that you don't want to restock.
Will this send multiple notifications if the same product goes out of stock from different orders?
No, the workflow only triggers when an order is placed. If a product is already at zero inventory, subsequent orders for that item won't trigger additional notifications since the trigger requires a new order to activate.
What happens if my Slack channel name changes?
The workflow will fail to send messages to the old channel name. You'll need to edit the Send Message step and update the channel field with your new channel name to resume notifications.
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 start receiving Slack notifications when 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 • 6 min setup • Cancel anytime