[ { "label": "Send a welcome email the first time a customer places an order", "trigger_type": [ "order_paid" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "order.customer.orders_count", "settings": { "operator": "equals", "value": "1", "condition_type": "AND" }, "weight": 999 }, { "field": "order.buyer_accepts_marketing", "settings": { "value": "true", "condition_type": "AND" }, "weight": 999 } ], "actions": [ { "type": "email", "settings": { "wait": "0", "custom_wait": "", "to": "{{ order.customer.email }}", "cc": "", "bcc": "", "reply_to": "", "subject": "Welcome to {{ shop.name }}", "plain_text": "0", "body": "[UPDATE ME]\r\nSome inspiration for your welcome emails: https:\/\/blog.hubspot.com\/marketing\/welcome-email-examples" }, "weight": 999, "target_key": "order" } ] } ], "shared_workflow_id": 691 }, "description": "The workflow is fired every time an order is raised. It checks if this is the customer's first order and if true, sends out a custom welcome email to the customer's order email. " } ]