[ { "version": 1, "label": "Update collection SEO title", "trigger_type": [ "collection_updated", "collection_created" ], "object_type": "collection", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "collection.metafields", "settings": { "multiple": "any", "metafield_selection_type": "custom", "namespace": "global", "key": "title_tag", "value_type": "string", "operator": "empty", "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": "global", "key": "title_tag", "value_type": "single_line_text_field", "value": "[updated value]", "resource_type": "collections", "resource_id": "{{ collection.id }}", "wait": "0", "cw_timezone": "Europe\/Vilnius", "custom_wait": "" }, "weight": 999, "target_key": "collection" } } } } }, "description": "This workflow is fired when a collection is created or updated. It then sets the SEO title to pre-defined value if empty." } ]