[ { "label": "Send an email to a customer when an order is tagged", "trigger_type": [ "order_created", "order_updated" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": { "0": { "field": "order.email", "settings": { "operator": "not_empty", "value": "" }, "weight": 999 }, "3": { "field": "order.tags_array", "settings": { "multiple": "any", "operator": "equals", "value": "your tag here", "long_value": "", "token_object_type": "order", "condition_type": "AND" }, "weight": 999 }, "4": { "field": "order.database", "settings": { "multiple": "any", "key": "tag_email", "operator": "not_equals", "value": "1", "token_object_type": "order", "condition_type": "AND" }, "weight": 999 } }, "actions": { "0": { "type": "email", "settings": { "token_object_type": "order", "to": "{{ order.email }}", "cc": "", "bcc": "", "reply_to": "", "subject": "Your subject line", "plain_text": "1", "body": "Your message", "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "", "run_once": 0 }, "weight": 999, "target_key": null }, "2": { "type": "order_set_database", "settings": { "token_object_type": "order", "key": "tag_email", "value": "1", "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "" }, "weight": 1009, "target_key": "order" } } } ], "shared_workflow_id": 12 }, "description": "This workflow fires when an order is created or updated. The workflow looks for your special tag. When the tag is found, it sends an email to the customer." } ]