A practical guide to Shopify Flow merchandising automation: auto-tagging new arrivals, handling sold-out products without breaking links, low-stock alerts, and where Flow stops and a sorting tool starts.
Shopify Flow merchandising automation is the quiet work that keeps a catalogue tidy while nobody is looking: tagging a product the moment it is created, taking a sold-out item out of the way, telling the buying team when a bestseller is down to its last few units, and clearing a 'new' label after a month so the New Arrivals collection stays honest. None of it is glamorous. All of it is the kind of job that gets skipped in a busy week, and a skipped week is how a collection page ends up leading with products nobody can buy.
This guide walks through the Flow workflows we would set up first on a Shopify store that sells physical products, with the exact trigger and action names from Shopify's Help Center, a worked example for each, and the places where Flow is the wrong tool. Flow is very good at reacting to events. It is not built to decide the order of 200 products on a collection page, and knowing that boundary saves a lot of fiddly workflows that try.
Shopify Flow: what the app is and who can use it
Shopify Flow is Shopify's own automation app. According to Shopify's Help Center, it is a free app available on the Basic, Grow, Advanced and Plus plans. You install it from the Shopify App Store and open it from the Apps section of your admin. Usage limits follow the API limits of your plan, and one action, Send HTTP request, is limited to the Grow, Advanced and Plus plans. Everything in this guide uses actions available on the Basic plan.
Every workflow has the same three parts:
- A trigger: the event that starts the workflow. Shopify's trigger list includes Product created, Product status updated, Product variant out of stock, Product variant back in stock, Product variant inventory quantity changed, Order created and Scheduled time, among many others.
- Conditions: optional checks that decide whether the workflow carries on. For example, only continue if the product's type is Earrings, or if its total inventory is zero.
- Actions: what Flow does. The ones that matter for merchandising are Add product tags, Remove product tags, Add product to collections, Remove product from collection, Publish product, Unpublish product, Update product status, Send internal email and Wait.
There is no action called 'hide product' and none that sorts a collection. Hiding is done by unpublishing or changing status, and ordering is a different problem, which we come back to near the end.
Before you build: three rules that prevent most Flow mistakes
- 1Prefer tags plus smart collections over moving products directly. A workflow that adds the tag 'new' and a smart collection with the condition 'Tag includes new' is easier to audit than a workflow that adds products to a collection, because anyone can see the rule on the collection page in admin.
- 2Write down every tag a workflow adds or removes, and who owns it. Flow-managed tags should be clearly named, such as 'flow-new' or 'flow-low-stock', so nobody on the team adds or deletes them by hand thinking they are ordinary labels.
- 3Test on one product before you turn a workflow on for the catalogue. Shopify's documentation for the out-of-stock trigger suggests testing by changing a variant's inventory from above zero to zero. Do that on a test product, check the result, then reverse it.
Workflow 1: tag new arrivals automatically, and clear the tag after 30 days
A New Arrivals collection is only useful if it contains new arrivals. On many stores it is a manual collection someone remembers to update at launch and forgets to prune, so six months later it is a second, staler copy of the full catalogue. Two small workflows fix that.
The first adds the tag. Use the Product created trigger, add a condition if you want to exclude certain product types such as gift cards or samples, and finish with the Add product tags action, entering a tag such as 'flow-new'. Then create a smart collection under Products > Collections with the condition 'Tag includes flow-new'. Every product created from that point joins the collection on its own.
The second removes the tag after a set period. Flow's Scheduled time trigger starts a workflow at a time you choose and can repeat it, with a repeat rule in days, weeks or months. Shopify notes that it defaults to your store's time zone and can run at most once every 10 minutes. Pair it with the Get product data action, which finds products using Shopify's search syntax and returns up to 100 products per run, then a For each step that applies Remove product tags to every result.
- 1Create a workflow with the Scheduled time trigger, set to repeat every 1 day at an hour when the store is quiet, such as 6 am.
- 2Add Get product data. Use an advanced query that finds products tagged 'flow-new' that were created more than 30 days before the scheduled time. Shopify's documentation shows a similar query built with the scheduledAt variable and the date_minus filter.
- 3Add For each over the returned products, and inside it add Remove product tags with 'flow-new'.
- 4Run it once on a test store or a small set, confirm only old products lost the tag, then turn the workflow on.
Illustrative example: a fashion label adds 40 products in the first week of the month for a festive drop. Each one is tagged 'flow-new' on creation and appears in New Arrivals immediately. Thirty days later, the daily run removes the tag from each of them, and New Arrivals shows only the products launched in the last month. Nobody had to remember either step.
Workflow 2: sold-out products, and why hiding them is usually the wrong fix
The template most merchants look for first is 'hide out of stock products'. Flow can do it: the Product variant out of stock trigger fires when a variant's inventory drops from 1 or more to 0 or less, and the Unpublish product action removes the product from the publications you choose, such as the Online Store. A matching workflow on Product variant back in stock with Publish product brings it back.
Before you build that, weigh what unpublishing does. An unpublished product disappears from the storefront, which means its product page stops being available to shoppers and search engines while it is unpublished. Any link to it, whether from an Instagram post, a WhatsApp broadcast, a Google result or a customer's wishlist, leads to a page that no longer shows the product. For a product that will be restocked next week, that throws away traffic you already earned.
For most stores, a softer approach works better:
- Tag instead of unpublish. Use Product variant out of stock with a condition that checks the product's total inventory is zero or less, so a single sold-out size does not trigger it, then Add product tags with 'flow-sold-out'. On Product variant back in stock, remove the tag.
- Exclude the tag from the collections that matter. A smart collection can use 'Tag does not include flow-sold-out' alongside its other conditions, which keeps sold-out products off a campaign collection while leaving their product pages live.
- Keep the main category collections complete, but push sold-out products to the end of the order, where they do not take the first rows. That is an ordering decision rather than an inclusion decision, and it is covered below.
- Unpublish only what will not come back. Discontinued products, one-off pieces and end-of-season stock with no restock planned are reasonable candidates, ideally with a redirect to the closest collection when the product is finally archived.
Workflow 3: low-stock alerts the buying team actually reads
The useful alert is not 'this variant changed'. It is 'this variant just crossed the line below which we need to reorder'. Flow's Product variant inventory quantity changed trigger starts on any inventory change for a variant, from an order, a manual adjustment or an app, and it provides the variant's previous quantity as inventoryQuantityPrior. That previous value is the key to sending one alert rather than a stream of them.
- 1Create a workflow with Product variant inventory quantity changed.
- 2Add a condition that the variant's current inventory quantity is below your threshold, say 5, and a second condition that inventoryQuantityPrior was 5 or more. Together they mean the variant has just crossed the line, rather than sitting below it.
- 3Optionally narrow it to products that matter, for example those carrying a 'core' or 'bestseller' tag.
- 4Add Send internal email to the buying or operations inbox, with the product title, variant title, SKU and current quantity in the message.
- 5Optionally add Add product tags with 'flow-low-stock', so the team can filter the product list in admin to see everything currently low.
Note one quirk Shopify documents for this trigger: it starts a workflow even when a product has Inventory tracked turned off, so add a condition that the variant's inventory is tracked if your catalogue mixes tracked and made-to-order items. Also, the current quantity Flow exposes per location is the available figure at a single location, so a store with several warehouses should decide whether the threshold applies per location or to the variant as a whole before building the condition.
Illustrative example: a skincare brand sets a threshold of 20 units for its three hero serums and 5 for everything else. When a 30 ml serum goes from 21 to 19 after a morning of orders, one email reaches the operations inbox. It does not send another as the stock falls to 18, 17 and 16, because the prior quantity is already below the line.
Workflow 4: a weekly digest, and an alarm for when workflows break
Single-event alerts are good for urgent stock problems. For everything else, a weekly digest is kinder to the team. A Scheduled time workflow set to repeat every week on Monday morning can use Get product data to find, for example, active products tagged 'flow-low-stock', and Send internal email to list them. The weekly merchandising review then starts from a list rather than from memory.
Add one more workflow that most stores forget: Workflow error occurred is a trigger in its own right. Point it at Send internal email so someone hears about it when a workflow fails, for example after a tag was renamed or a collection was deleted. Automation that fails silently is worse than no automation, because everyone assumes the job is being done.
More Shopify Flow examples worth considering
- Vendor or brand tagging on creation. Product created, then Add product tags based on the vendor or product type, which feeds smart collections and Search & Discovery filters without manual tagging.
- Price-band tags for gift collections. Product created or a scheduled run, then tags such as 'under-1000' or 'under-2500' based on price, so budget collections can use tags rather than separate price conditions in every collection.
- Draft-to-active hand-off. Product status updated, with a condition that the new status is Active, then Send internal email to the marketing team so new launches are photographed, described and added to campaigns.
- Collection metafield updates. Flow has Update collection metafield and Get collection data actions, which advanced teams use to store a collection's last-checked date or campaign owner. Most stores will not need this on day one.
Where Flow stops: ordering a collection page
Every workflow above decides whether a product is in a collection, whether it is published, or whether someone should be told about it. None of them decides where a product sits within the collection. Flow's action list has nothing that writes a collection's sort order, and trying to approximate it with tags, for example by adding 'top-row' tags and building separate collections, quickly becomes a maze of collections that nobody can maintain.
Ordering needs a different kind of logic. It has to look at every product in the collection at once, compare them on sales, views, add-to-carts, stock and margin, and produce a single sequence, then write that sequence back to Shopify and keep it current as the numbers move. That is a ranking problem, not an event problem. A good split is: Flow handles membership, tags and alerts; a sorting tool handles the order; and a person still makes the final call on the hero products.
If you want to see what your current order looks like before automating anything, paste a collection link into our free collection checker at /tools/collection-checker. It shows sold-out products in the first rows, sizes running out and new arrivals buried below older products, which tells you whether ordering, not tagging, is the bigger leak.
Honest trade-offs of automating merchandising with Flow
- Every workflow is a small piece of software you now own. Rename a tag, delete a collection or change a product type, and a workflow can break or, worse, keep running against the wrong products. Keep a one-page list of active workflows with an owner for each.
- Event triggers miss what happened before you built the workflow. A tagging workflow on Product created does nothing for the 600 products already in the store. Plan a one-off bulk edit or a scheduled run to bring existing products into line.
- Flow acts on Shopify's data, not on your reality. If stock lives in a warehouse system that syncs to Shopify a few times a day, Flow reacts when Shopify's numbers change, which may be hours after the shelf is empty.
- Unpublishing is easy to automate and costly to get wrong. A misconfigured condition can unpublish half a category overnight. Prefer tags for anything reversible, and add a Send internal email step to any workflow that unpublishes so there is a record.
- More automation is not always better. A store with 80 products and one person running it may get more from a 20-minute weekly review than from ten workflows. Start with the one or two that remove a job you keep forgetting.
A starter set for most stores
- Tag new products on creation and remove the tag after 30 days, feeding a smart New Arrivals collection.
- Tag fully sold-out products, and untag them when stock returns, rather than unpublishing.
- Send one email when a key variant crosses below its reorder threshold.
- Send a weekly digest of low-stock products before the merchandising review.
- Send an email whenever a workflow errors.
Flow keeps the catalogue tidy. SellRank keeps the order right.
Once Flow is keeping tags, membership and alerts in order, the remaining question is what a shopper sees first on each collection page. That is the job SellRank, our Shopify collection-sorting app, was built for. It ranks the products in a collection by real performance, such as views, add-to-carts, orders, revenue, conversion rate, profit or sell-through, writes that order into Shopify's own manual sort, and re-sorts daily or weekly on a schedule in your store's time zone. You can add conditions like in-stock, compose the page as percentage slots so new arrivals get a guaranteed share of the first rows, and pin or demote products by hand. A sort-health check every two hours flags a collection if its order drifts on Shopify.
Install SellRank free from the Shopify App Store at apps.shopify.com/sellrank-collection-sort, or read more at /products/sellrank. The free plan covers one collection with the full editor, live preview and one live sync, enough to pair your new Flow tags with an order that puts in-stock products first.

