[ { "label": "Tag customer as a VIP if they place more than five orders", "trigger_type": [ "order_created" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "order.customer.orders_count", "settings": { "operator": "gt", "value": "5", "token_object_type": "order", "condition_type": "AND" }, "weight": 999 }, "2": { "field": "order.customer.tags_array", "settings": { "multiple": "none", "operator": "equals", "value": "vip", "long_value": "", "token_object_type": "order", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "customer_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "vip", "token_object_type": "order" }, "weight": 999, "target_key": "order.customer" } } } }, "shared_workflow_id": 37786 }, "description": "This workflow runs when an order is created. If the customer has placed more than 5 orders, the customer is tagged. The number of orders and the tag are easily changed." } ]