[ { "label": "Tag customers by lifetime value tiers", "trigger_type": [ "order_paid" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "order.customer.total_spent", "settings": { "operator": "gte", "value": "500" }, "weight": 999 }, { "field": "order.customer.total_spent", "settings": { "operator": "lte", "value": "999" }, "weight": 999 }, { "field": "order.customer.tags", "settings": { "operator": "not_contains", "value": "Big Spender" }, "weight": 999 } ], "actions": [ { "type": "customer_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "Big Spender" }, "weight": 999, "target_key": "order.customer" } ] }, { "conditions": [ { "field": "order.customer.total_spent", "settings": { "operator": "gte", "value": "1000" }, "weight": 999 }, { "field": "order.customer.tags", "settings": { "operator": "not_contains", "value": "High Roller" }, "weight": 999 } ], "actions": [ { "type": "customer_add_remove_tags", "settings": { "wait": "0", "custom_wait": "", "add_tags": "High Roller", "remove_tags": "Big Spender" }, "weight": 999, "target_key": "order.customer" } ] } ], "shared_workflow_id": 339 }, "description": "This workflow fires when an order is paid. It checks the total amount spent by the customer and adds a tag if the customer falls between preset ranges." } ]