[ { "label": "Add a metafield value as a tag", "trigger_type": [ "product_created", "product_updated" ], "object_type": "product", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [ { "field": "product.tags_array", "settings": { "multiple": "none", "operator": "equals", "value": "{{ product.metafields.special[\"extra-tag\"].value }}" }, "weight": 2 }, { "field": "product.metafields", "settings": { "multiple": "any", "namespace": "special", "key": "extra-tag", "operator": "not_empty", "value": "" }, "weight": 1 } ], "actions": [ { "type": "product_add_remove_tags", "settings": { "wait": "0", "custom_wait": "", "add_tags": "{{ product.metafields.special[\"extra-tag\"].value }}", "remove_tags": "" }, "weight": 3, "target_key": "product" } ] } }, "shared_workflow_id": 316 }, "description": "This workflow can be used to add and remove tags from the product based on metafield values. You can use this with Shopify defined metafields as well as legacy metafield types. You only need to pass the metafield key and namespace to use a specific metafield." } ]