[ { "label": "Update a product collection metafield based on the title", "trigger_type": [ "collection_created", "collection_updated" ], "object_type": "collection", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "collection.title", "settings": { "operator": "contains", "value": "shoes", "long_value": "", "token_object_type": "collection", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "any_set_metafield_value", "settings": { "token_object_type": "collection", "metafield_selection_type": "custom", "namespace": "custom_fields", "key": "section", "value_type": "string", "value": "shoes", "resource_type": "collections", "resource_id": "{{ collection.id }}", "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "" }, "weight": 999, "target_key": "collection" } } }, "2": { "conditions": { "1": { "field": "collection.title", "settings": { "operator": "contains", "value": "shirts", "long_value": "shoes", "token_object_type": "collection", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "any_set_metafield_value", "settings": { "token_object_type": "collection", "metafield_selection_type": "custom", "namespace": "custom_fields", "key": "section", "value_type": "string", "value": "shirts", "resource_type": "collections", "resource_id": "{{ collection.id }}", "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "" }, "weight": 999, "target_key": "collection" } } } }, "shared_workflow_id": 42500 }, "description": "This automation will set a custom field value based on collection's title, checking to see if the title contains specific phrases or words. " } ]