[ { "label": "Send me an email when a draft order is created", "trigger_type": [ "draft_order_created" ], "object_type": "draft_order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [], "actions": [ { "type": "email", "settings": { "token_object_type": "draft_order", "to": "{{ shop.email }}", "cc": "", "bcc": "", "reply_to": "", "subject": "New Draft Order: {{ draft_order.name }} - {{ draft_order.customer.display_name }}", "plain_text": "1", "body": "Hi there,\r\n\r\nDraft Order: {{ shopify_admin_link(draft_order, {resource: 'draft_orders'}) }}\r\nCustomer: {{ shopify_admin_link(draft_order.customer, {resource: 'customers'}) }}\r\n\r\nOrder Products:\r\n{{ order_products_list(draft_order, {format: 'html', link: true, quantity: true}) }}\r\n\r\nOrder Subtotal: {{ format_money(shop, draft_order.subtotal_price) }}\r\n", "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "", "run_once": 0 }, "weight": 999, "target_key": "draft_order" } ] } ], "shared_workflow_id": 336 }, "description": "The automation is fired when a draft order is created, it sends an email notification to the store's email address including the draft order details" } ]