I was hoping somebody might be able to help me use flow to automate the process of adding a “restocked” tag to products when the inventory count increases.
I wanted to build a collection using the tag, so that popular items will automatically be sorted into position when we receive a new shipment.
Is it possible? I’m fairly new to Shopify and Flow, so I’m still figuring things out.
Yes, you can absolutely automate this using Shopify Flow! Here’s how you can create a workflow that adds a “restocked” tag whenever the inventory increases:
Steps to Create the Flow:
Trigger: Use “Inventory quantity changed” as the trigger.
Condition: Check if the inventory increased.
Use the condition “Inventory quantity before” is less than “Inventory quantity after” to ensure the stock went up.
Action: Add the “restocked” tag to the product.
How to Set It Up in Shopify Flow
1.Open Shopify Admin → Apps → Shopify Flow.
Click Create workflow.
Add Trigger: Select “Inventory quantity changed”.
Add Condition: Select “Inventory quantity before is less than Inventory quantity after”.
Add Action:
Choose “Add product tags”.
Enter “restocked” as the tag.
Bonus: Removing the “restocked” Tag After Some Time
If you don’t want the tag to stay forever, you can create a second Flow:
Trigger: “Product tagged”
Condition: If product is tagged with “restocked”.
Action: Use “Wait” (e.g., 7 days), then Remove product tag.
What Happens Next?
When stock increases, Flow automatically adds the “restocked” tag.
You can create a collection in Shopify that includes products tagged with “restocked”, ensuring they get featured when back in stock.
Optionally, another Flow can remove the tag after a few days.
Let me know if you need help setting this up! Please don’t hesitate to reach out in my signature below
If I was able to help you, please don’t forget to Like and mark it as the Solution!
Some of the items in quotes here are not the correct phrasing that you’ll see in the Flow app, but the idea is correct. I’d recommend you start with a template in Flow, which will show you both the trigger and condition you need.
Are you able to offer any further advice? I’m still struggling getting it to work exactly as intended. I’m still fairly new to Flow and am just figuring things out.
I’m still attempting to create a Flow that tags items in the inventory with “Restock”, so they can be automatically added to a collection that displays when previously carried items are restocked
I followed the advice in the thread, but I am getting instances of the tag being added when the inventory count has not increased.
My flow is as follows;
Trigger: Product variant inventory changed
THEN
Check if: Inventory quantity prior is less than product variant inventory quantity
THEN
Do this: Add product tags - “Restock”
Does this appear correct to you?
I had considered setting a limit, for example, that the tag will only be added if the number of an item has increased by X.
I’d appreciate any helps and thoughts you could give me.
Search the workflow runs by the tag or product ID to find where Flow added the tag. Look at the workflow run and see if it explains the issue. If not, post a screenshot of it here with where you are confused.
Thanks Paul. It’s helpful to see the runs. I think it is working as intended, but without further conditions the tag is being applied too liberally.
Do you know if it’s possible to set an “AND” condition to the “Check if: Inventory quantity prior is less than product variant inventory quantity” so it only tags increases more than f. ex. 3?
I tried searching for terms like “increase”, and tested what I found, but couldn’t get what I tried to work.
If you need to count how much it changes by, you would need to add a run code step. It should be a pretty basic one, but does requiring writing a bit of JavaScript. The step would just do the math. Then you could check the output in a condition and branch your logic.
If you just want to check if it increased only, you would do that in a Condition and just compare the two variables (current vs prior inventory)