Auto update product Metafield based on tag

Topic summary

A user is attempting to automate product metafield updates in Shopify Flow based on product tags imported from their POS system. The goal is to populate a ‘Gender’ metafield with ‘Mens’, ‘Womens’, or ‘Unisex’ depending on whether products are tagged ‘MALE’, ‘FEMALE’, or both.

Current Issue:

  • The user understands the conditional logic needed but is struggling with the action configuration in Flow
  • They’ve created a ‘Gender’ metafield (single line text list with values: Mens, Womens, Unisex)
  • Their current Flow setup isn’t working, specifically at the action stage

Key Problem Identified:
A screenshot shows the user may be incorrectly entering values in the namespace and key fields. Another participant points out that the values being entered don’t appear to be actual namespace/key identifiers, sharing a reference image showing what proper namespace and key values should look like in Shopify Admin.

Status: The discussion remains open with the technical configuration issue not yet fully resolved.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

I would like to add a metafield automation to help improve our search filters. We currently have an automated import from our POS system when creating products. The import auto tags the product MALE or FEMALE based on the indicated gender. For context, these cannot currently be changed.

I want to run the following flow, but am struggling to get it to work.

IF Product Tag Equals ‘MALE’

Add ‘Mens’ to the product metafield titled ‘Gender’

IF Product Tag equals ‘FEMALE’

Add ‘Womens’ to the product metafield titled ‘Gender’

IF both ‘MALE’ & ‘FEMALE’ are present

Add ‘Unisex’ to the product metafield titled ‘Gender’

Is this even possible using Shopify Flow? Any pointers on how I can achieve it?

Hey @RonAS1 ,

Thank you for reaching out! It’s definitely possible to automate the process of adding gender-based metafields using Shopify Flow. Here’s how we can set it up:

  1. Trigger: Set the flow to run when a product is created or updated.

  2. Conditions:

  • If the product tag contains ‘MALE’, add ‘Mens’ to the ‘Gender’ metafield.

-If the product tag contains ‘FEMALE’, add ‘Womens’ to the ‘Gender’ metafield.

-If both ‘MALE’ and ‘FEMALE’ tags are present, add ‘Unisex’ to the ‘Gender’ metafield.

This should improve your search filters by ensuring that each product has the correct gender tag automatically assigned. Let me know if you’d like me to set this up for you, or if you need further assistance!

Please feel free to reach out to my email if you have any questions.

Best regards,

Rajat

Hi RajWeb,

Thanks for the reply, however, I am aware of he process that needs to happen, the issue I am having what to enter at the action stage stage of the flow.

Here is my current flow for an example of the Mens tag (which isn’t working)

The product metafield ‘Gender’ has already been created with a single line text list of (Mens, Womens, Unisex).

I have selected that in both the namespace and key, but worried this is incorrect, and is the part I am looking for advice on.

Yeah, those are not namespaces or keys. From my own Admin: