[ { "label": "Tag a new product by title, sku, and variant titles", "trigger_type": [ "product_created", "product_updated" ], "object_type": "product", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "product.title", "settings": { "operator": "contains", "value": "Shirt", "long_value": "", "condition_type": "AND" }, "weight": 999 } ], "actions": [ { "type": "product_add_to_collections", "settings": { "wait": "0", "custom_wait": "", "collection_ids": "[CLICK TO EDIT]" }, "weight": 999, "target_key": "product" }, { "type": "product_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "Shirts, Tops" }, "weight": 999, "target_key": "product" } ] }, { "conditions": [ { "field": "product.variants.sku", "settings": { "multiple": "any", "operator": "contains", "value": "SLIM", "long_value": "SKNY", "condition_type": "AND" }, "weight": 999 } ], "actions": [ { "type": "product_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "Slim Fit" }, "weight": 999, "target_key": "product" } ] }, { "conditions": [ { "field": "product.title", "settings": { "operator": "contains", "value": "Red", "long_value": "", "condition_type": "AND" }, "weight": 999 } ], "actions": [ { "type": "product_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "Red" }, "weight": 999, "target_key": "product" } ] } ], "shared_workflow_id": 1160 }, "description": "This workflow is triggered when a product is created or updated. It checks for pre-defined keywords from the title and tags the product based on the attributes. It then adds the product to a collection based on the tags. " } ]