Skip to content
Learnby Zqdo

AI and Business Automation

How to Get a Shopify Alert Before You Sell Out

A stockout is often discovered by a customer, or by an ad that is still sending people to an unavailable variant. Shopify Flow can watch inventory and send an alert when a quantity crosses a line you choose. The video is that workflow. Here is how to set it up without alerting yourself about every sample or draft product.

Author
By David Frempong
Published
Updated
Last reviewed
Reading time
7 min read

Read the guideWatch the video

Watch the video

Never Run Out of Stock Again | Shopify Low Inventory Alerts Tutorial

5:06 · Published

Quick Answer

In Shopify Flow, start from an inventory-quantity change, continue only when the available quantity is at or below your threshold, and send one internal email or Slack message that names the variant. Test it by adjusting a single variant. Flow will not order the stock for you.

Key Takeaways

  • Alert on available quantity for the variant you sell, not on a product that has five sizes.
  • Pick a threshold that matches how long a reorder takes. Zero is already a stockout.
  • Exclude locations, drafts, or samples if they would page you for inventory you do not sell online.
  • An alert is a message. Someone still has to reorder, pause the ad, or hide the variant.

When an alert is worth building

Use this if you have sold out of a hero product while ads or emails were still sending traffic, or if you find out from a customer. If you already live in a purchasing tool that warns you, do not add a second alarm that nobody reads. The broader set of Flow examples is in the Shopify Flow automations guide.

The workflow

Shopify’s Flow editor changes labels over time. Follow the current Flow manual for the click path, and keep the logic to these three parts.

  1. Trigger when an inventory quantity changes. A daily “check everything” workflow is possible, but a change trigger is the one that catches a sale.
  2. Condition: available quantity is at or below your number, and the variant is one you sell. Add a location condition if only one warehouse feeds the online store.
  3. Action: email the person who reorders, or post to the channel they already watch. Include the product title, variant, SKU, and the quantity that remains.

Choose the number on purpose

If a supplier takes two weeks, alerting at zero is a postmortem. Set the line at the quantity you expect to sell during the reorder, plus a small buffer. A threshold of five on a product that sells five a day is still late.

Test it before you trust it

  1. Duplicate the logic against one inexpensive variant, or lower a test variant’s inventory in admin.
  2. Confirm one message arrives, with the right SKU.
  3. Raise the inventory again and confirm you are not emailed for every later edit above the line.
  4. Turn the workflow on for the real products only after that test.

What Flow will not do

  • It will not pause ads. That is a separate step when the alert arrives.
  • It will not fix inventory that Shopify never receives from a warehouse sync. If the number in admin is wrong, the alert is wrong.
  • It can fire once per variant change. A product with many variants needs a message you can scan, or you will ignore the inbox.
  • It is not a purchasing system. The alert is the prompt to reorder or to stop selling the variant.

Official sources

Check the linked documentation before you change a live site. This page does not guarantee rankings, speed scores, or app results.

Have a repetitive task you'd like to simplify?

I help small teams decide whether a workflow needs a simpler process, an existing tool, or a small custom build — then help plan or build the version that is actually worth maintaining.

Questions and things that go wrong

Does Shopify email me when stock is low?

Not as a complete reorder system by itself. Shopify Flow can send that message when inventory quantity changes and a condition matches. You choose the threshold and the recipient.

Should the alert fire at zero?

Only if you are comfortable being late. Zero means the variant is already unavailable. Alert at the quantity that covers the time it takes you to restock.

Will this stop overselling?

No. Overselling is a checkout and inventory-policy setting. This workflow only tells a person that quantity crossed a line.

David Frempong, founder and digital consultant at Zqdo

About the author

David Frempong

Founder & Digital Consultant at Zqdo

David Frempong is the founder and digital consultant at Zqdo. He is a hands-on web developer and Shopify developer who helps ecommerce brands and local businesses improve their websites, integrations, SEO, AEO, analytics, and conversion performance.

  • Shopify development
  • WordPress & website development
  • SEO & local SEO
  • AEO
  • CRO & analytics
  • Integrations & performance