How to Send Shopify Flow Low-Stock Alerts Only at the Threshold

Catch Low Stock. A manager checks a nearly empty shelf.

Published

A warehouse picks the last few units of a fast-selling size. Your inventory tool sends another email for every order after that. By the time someone notices the alert that matters, it looks like the previous five. A Shopify Flow low-stock alert is more useful when it fires as stock first crosses the threshold.

This tutorial builds that crossing rule for one tracked variant. Test on a spare product or a test store before enabling it on the live catalogue. The inventory team should be able to explain why each alert fired.

Choose a threshold that gives someone time to act

Say you sell four units per day and need two days to replenish. A threshold of ten leaves two units beyond the eight you expect to sell during that lead time. This is a fictional starting point. Check your actual sales and lead times, especially for products with irregular demand. Assign a recipient who can place an order or confirm when more units will arrive.

Choose the inventory scope first. If your team buys against the total variant quantity, use the total quantity exposed by the variant. A shop that needs a warning for one fulfilment location needs a location-specific rule and test. Positive stock at another location can hide a shortage where orders are normally dispatched. Shopify’s inventory quantity trigger documentation

An employee scans a carton in a warehouse.
AI-generated editorial illustration by Qandey Tech.

Create a condition that detects a crossing

In Shopify Flow, create a workflow using Product variant inventory quantity changed. For the pilot, add a check for the one variant you are testing. Then add two conditions joined with AND. The prior inventory quantity must be greater than ten, and the current inventory quantity must be ten or less.

Shopify documents the prior quantity as inventoryQuantityPrior and exposes the variant in the trigger. Use the corresponding current inventory quantity for that same variant. Check the two fields in the editor before turning the workflow on. A rule based solely on current quantity would also match the next change from ten to nine. Shopify’s inventory quantity trigger documentation

On the matching branch, add an internal email addressed to the inventory owner. Include the variant or SKU, previous quantity, current quantity and what action the recipient should take. If purchasing is already underway, ask the recipient to confirm the open purchase order before placing another. Keep the first version informational.

Verify the rule with five changes

Begin at 12 units. Change the test variant from 12 to 10 and expect one alert. Drop it from 10 to 9 and expect the workflow to run without sending another alert. Replenish from 9 to 14 and expect no alert. Drop from 14 to 7 and expect another alert because stock crossed the threshold again. Change a different variant and confirm the pilot excludes it.

The equality check matters. A step from 12 to exactly 10 should alert, along with a step that skips straight from 14 to 7. Use the workflow’s run history to check the input values and which branch executed. Match the two expected sends with what arrived in the recipient’s inbox. A run that evaluated a condition successfully can still have a different result from a message that reached the recipient.

An inventory planner reviews a laptop in a warehouse office.
AI-generated editorial illustration by Qandey Tech.

Review edge cases before enabling more products

A variant that is already below ten when you enable the rule has yet to cross the threshold while the workflow is active. Give the inventory team an initial low-stock list so they can handle those items separately. If a transfer or inventory adjustment makes quantities fluctuate around ten, each new crossing can legitimately alert. Try the transfer process with your pilot variant before deciding whether to add a cooldown.

Write down which inventory changes your team tested, who receives the message and how they mark it handled. Review missed or repeated alerts in the first week before expanding beyond a few variants. If the stock is already gone, make a separate decision about whether to take backorders and what dispatch date you can support. When to take Shopify backorders

For additional checks on failure logs and retries, see Qandey Tech’s guide to making automation workflows reliable. Qandey Tech’s workflow reliability checklist

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *