Automatically Update Shopify Product Metafields from Tags

4 min setup
No coding required
Runs automatically

Metafields power filters, product badges and theme sections, but filling them in by hand for every new product is slow and easy to forget. This workflow runs when a Shopify product is created, reads its tags, and sets the matching product metafield value automatically, so a product tagged vegan or bestseller gets the right metafield the moment it's added.

Shopify logo icon
When a new product is added to Shopify
Match the product's tags to a metafield value
Skip products with no matching tag
Shopify logo icon
Save the value to the product's metafield

How it works

4 steps to fill in product metafields automatically from the tags you already use

Shopify logo icon

When a new product is added to Shopify

App connector: Shopify • Time to complete: 1 minute

Runs each time a product is created in Shopify.

Match the product's tags to a metafield value

App connector: Logic • Time to complete: 1 minute

Check the product's tags against your rules, for example a vegan tag sets the diet metafield to Vegan, and pick the value to save.

Skip products with no matching tag

App connector: Filter • Time to complete: 1 minute

Continue only if one of the rules matched, so products without a mapped tag are left as they are.

Shopify logo icon

Save the value to the product's metafield

App connector: Shopify • Time to complete: 1 minute

Set the product metafield you chose, by namespace and key, to the value picked in the logic step.

Trusted by 1,000+ merchants
Logo: Rothy's Logo: Adidas Logo: Allure Logo: GQ Logo: DraftKings Logo: Chubbies Logo: Made In Cookware Logo: MUD/WTR

Ready to fill in product metafields automatically from the tags you already use

Get setup in 4 minutes.

Use this template →

FAQs

Can it update metafields on products I already have?

Yes. Run a one-time version on a Schedule trigger that gets your product list and loops through it, then keep this workflow on for new products.

Can it set variant, order or customer metafields?

Yes. MESA also has Set Product Variant Metafield, Set Order Metafield and Set Customer Metafield actions, so the same pattern works for those.

Why not run it whenever a product is updated?

You can, but add a filter that stops when the metafield already has the right value. Otherwise saving the metafield can count as another update and run the workflow again.

Personalize this template

Customize this workflow even further:

Use product type or vendor
Base the rules on the product type or vendor instead of tags, for example every product from one vendor gets the same care instructions.
Set several metafields at once
Add more Set Product Metafield steps so one tag can fill in a badge, a filter value and a theme section together.

You're in good company

"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
PetFriendly

"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Zailys

"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Rothy's

fill in product metafields automatically from the tags you already use

4 min setup • Fully supported if you need help