Shopify Flow, Shopify's automation app, runs workflows when something changes in your store. For inventory, the trigger is Product variant inventory quantity changed, which starts a workflow that checks the new quantity and acts on it. Shopify's help center points to a ready-made template, Publish and unpublish products based on inventory level, for hiding sold-out products and showing them again on restock, and mentions Flow for low-stock alerts. Flow can also change settings like continue selling, using an Admin API request action where there's no ready-made one.
The short version
- Trigger: Product variant inventory quantity changed.
- Condition: check the variant's inventory quantity against a number.
- Actions: unpublish or publish the product, add or remove a tag, send an email.
- Template: Publish and unpublish products based on inventory level.
- Test every workflow on one product first.
Workflow 1: Hide sold out, show on restock
- Start from the Publish and unpublish products based on inventory level template.
- Condition: quantity at or below 0 → Unpublish product.
- Second branch: quantity above 0 → publish again.
The alternative without Flow is an automated collection with the condition "Inventory stock is greater than 0", which hides sold-out products from that collection but leaves the product page live.
Workflow 2: Low stock email
- Trigger: Product variant inventory quantity changed.
- Condition: new quantity at or below your threshold, and the previous quantity above it, so it fires once.
- Action: send an internal email naming the product, variant and quantity.
Store each product's threshold in a metafield so one workflow covers every product. Shopify low stock alert covers choosing thresholds.
Workflow 3: Turn continue selling on or off
Some makers want preorders to open automatically when stock hits zero, or to close when the backlog reaches a limit. Flow can do it, but continue selling has no simple action in every account; use Flow's action for sending an Admin API request to update the variant's inventory policy, or a tag that your theme or an app reads. Shopify continue selling when out of stock covers the setting itself.
A made-up example
Kāneʻohe Kettle Corn has 30 flavors, and seasonal ones sell out for weeks. It sets up Workflow 1 so sold-out flavors drop off the store and reappear when a batch is added, and Workflow 2 with a threshold of 12 bags for the eight best sellers. In the first month, the owner stops hiding products by hand and gets four alerts, each with a day to spare before the batch was needed.
Testing and safety
- Test on one product, watching the workflow's run history.
- Add a tag condition (only products tagged "flow-stock") while testing.
- Check that workflows don't fight: one unpublishing while another publishes.
Where this stops working
Flow watches finished-product quantities. It can't alert on ingredients or packaging, because Shopify doesn't hold them, and it can't know that a batch is due tomorrow. An alert at 12 bags is too late if the corn kernels ran out. Shopify raw materials inventory covers the upstream half.
How TaroStack does it
TaroStack for Shopify runs inside your Shopify admin and watches what Flow can't: ingredients and packaging in days of cover, batches planned against what's on hand and on order, and what will expire unsold. When a batch finishes, the finished products are added to your Shopify location, and your Flow workflows react as usual. Free for 14 days.
