How it works
Follow these 10 simple steps to start auto-tagging products based on SKU patterns
Product Created
Product Created
Tags Mapping To SKU Patterns
Tags Mapping To SKU Patterns
Create array of patterns to loop over
Create array of patterns to loop over
Loop over variants
Loop over variants
Loop over patterns
Loop over patterns
Check regex match of pattern and sku
Check regex match of pattern and sku
Filter: If it matches
Filter: If it matches
Retrieve Product
Retrieve Product
Filter: Check for tag
Filter: Check for tag
Product Add Tag
Product Add Tag
Make it your own
Customize this workflow even further:
Add multiple pattern variations for one tag
Create several mapping rows that all point to the same tag, like mapping both "ORGANIC-" and "ORG-" to the "Organic" tag, catching products regardless of which SKU naming convention was used.
Trigger on product updates instead of creates
Change the trigger to "Product Updated" so the workflow re-evaluates tags whenever you modify product details or SKUs, keeping your tagging current even when you reorganize your SKU structure.
Send notifications for unmatched products
Add a Filter step after the loops that checks if any tags were added, then use Email or Slack to alert you about products that didn't match any patterns, highlighting potential SKU naming issues.
Create collections based on new tags
Extend this workflow by adding steps that check for newly added tags and automatically assign products to matching collections, fully automating your catalog organization from SKU to storefront.
Frequently asked questions
What happens if a product's SKU matches multiple patterns?
The product receives all matching tags. For example, if you have patterns for "ORGANIC-" → "Organic" and "COTTON-" → "Cotton," a product with SKU "ORGANIC-COTTON-SHIRT-001" gets both the "Organic" and "Cotton" tags applied automatically.
Can I use this for existing products or only new ones?
This template triggers on product creation only, so it tags new products as they're added. To tag existing products, change the trigger to "Product Updated" and make a minor edit to each product (like updating the description), which will trigger the workflow to evaluate and tag based on current SKU patterns.
What if my SKU doesn't have a consistent prefix pattern?
The pattern matching looks for your specified text anywhere in the SKU, not just at the beginning. So a pattern of "TOWEL" will match "BEACH-TOWEL-001," "TOWEL-HAND-SM," or "COTTON-TOWEL-WHITE." Just ensure your pattern text is unique enough to avoid false matches.
What is a template?
Templates are pre-made workflows by our team of experts. Instead of building a workflow from scratch, these have all the steps needed to complete the task.
Can I personalize a template?
Yes! Every step can be customized to meet your exact requirements. Additionally, you can even add more steps and make it more sophisticated.
Are templates free?
Yes! Our entire library containing hundreds of templates are free to use and customize to your exact needs.
Ready to start auto-tagging products based on SKU patterns?
Join thousands who've automated their work and saved an average of 3.5 hours every week.
Start with this template — It's free7-day free trial • 11 min setup • Cancel anytime