Want to autofill metafield based on content in product description

Topic summary

A user wants to automatically populate product metafields based on keywords found in product descriptions. For example, if “Mineralglas” appears in a watch description, it should auto-fill a “Glas” metafield with that value.

Attempted Solution:

  • Tried using Shopify Flow with a condition checking product.descriptionHtml for specific words
  • Used the “Update product metafield” action with a text metafield type
  • Encountered errors when attempting to set the metafield value (screenshots show the Flow configuration)

Current Status:
The user is seeking alternative approaches or confirmation whether Shopify Flow is the right tool for this automation. One respondent suggested creating a product metafield and using Shopify Flow, but the original poster’s screenshots indicate this approach isn’t working as expected. The issue remains unresolved.

Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

Hi everyone!

I’m looking for a simple way to achieve the following:

I want to write a product description manually, for example when adding a new watch. Based on the content of that description, I’d like Shopify (or an app like Flow or similar) to automatically detect specific words — for example, “Mineralglas” — and then use that to populate a product metafield (in this case, a metafield for the type of glass).

Goal:
If I write “Mineralglas” somewhere in the product description, the system should automatically fill in the “Glas” metafield with the value “Mineralglas”.

I’ve tried doing this using Shopify Flow by checking if product.descriptionHtml contains the word and then using the “Update product metafield” action — but I keep running into errors when setting the value, even when using a text metafield.

So instead of asking what I’m doing wrong, I’d love to hear:
What’s the best way to achieve this kind of automation?
Is Shopify Flow the right tool, or should I approach this in another way?

Thanks in advance for any guidance!

Hi,

Hope this will help

  • Create a product metafield
  • Use Shopify flow to build a flow

as you can see here. Something doesent work