[ { "label": "Send an email to a distributor based on shipping zone", "trigger_type": [ "order_paid" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "order.shipping_zone.id", "settings": { "operator": "any", "value": { "48750002294": "48750002294", "48750035062": 0 }, "condition_type": "AND" }, "weight": 999 } ], "actions": [ { "type": "email", "settings": { "wait": "0", "custom_wait": "", "to": "[CLICK TO EDIT]", "cc": "", "bcc": "", "reply_to": "", "subject": "New order from {{ shop.name }}: {{ order.name }}", "plain_text": "0", "body": "Hi there,\r\n\r\nYou have a new order from {{ shop.name }}\r\n\r\nPlease ship the following:\r\n{{ order_products_list(order, {format: 'html', link: true, quantity: true}) }}\r\n\r\nCustomer Information\r\n{{ order.customer.display_name }}\r\n{{ format_address(order.shipping_address, {format: 'html', country: true, company: false, phone: false}) }}" }, "weight": 999, "target_key": "order" } ] } ], "shared_workflow_id": 375 }, "description": "This automation is fired when an order is paid. If the order shipping address falls within a pre-defined shipping zone, the workflow sends out a custom email to the distributor." } ]