[ { "label": "Tag every customer by their email domain when they order", "trigger_type": [ "order_created" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "order.customer.tags", "settings": { "operator": "not_contains", "value": "{{ order.email|split('@')[1] }}" }, "weight": 999 } ], "actions": [ { "type": "customer_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "{{ order.email|split('@')[1] }}" }, "weight": 999, "target_key": "order.customer" } ] } ], "shared_workflow_id": 548 }, "description": "This automation is fired every time an order is raised. It checks and splits the email to get the domain and then adds the domain as a tag to the order." } ]