[ { "label": "Draft order follow up with emails", "trigger_type": [ "draft_order_created" ], "object_type": "draft_order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "draft_order.delay", "settings": { "wait": "custom", "custom_wait": "+4days", "check_date": { "submit": "Check Date" }, "token_browser": "{{ Browse Tokens }}", "condition_type": "AND" }, "weight": 1 }, { "field": "draft_order.status", "settings": { "operator": "any", "value": { "open": "open", "invoice_sent": 0, "completed": 0 }, "condition_type": "AND" }, "weight": 2 } ], "actions": [ { "type": "email", "settings": { "wait": "0", "custom_wait": "", "to": "{{ draft_order.email }}", "cc": "", "bcc": "", "reply_to": "", "subject": "", "plain_text": "0", "body": "Dear {{ draft_order.customer.first_name }},\r\n\r\n{{ draft_order.invoice_url }}" }, "weight": 999, "target_key": "draft_order" } ] }, { "conditions": [ { "field": "draft_order.delay", "settings": { "wait": "custom", "custom_wait": "+10days", "check_date": { "submit": "Check Date" }, "token_browser": "{{ Browse Tokens }}", "condition_type": "AND" }, "weight": 999 }, { "field": "draft_order.status", "settings": { "operator": "any", "value": { "open": "open", "invoice_sent": 0, "completed": 0 }, "condition_type": "AND" }, "weight": 999 } ], "actions": [ { "type": "email", "settings": { "wait": "0", "custom_wait": "", "to": "{{ draft_order.email }}", "cc": "", "bcc": "", "reply_to": "", "subject": "", "plain_text": "1", "body": "Dear {{ draft_order.customer.first_name }},\r\n\r\n{{ draft_order.invoice_url }}\r\n", "token_object_type": "draft_order" }, "weight": 999, "target_key": "draft_order" } ] } ], "shared_workflow_id": 8228 }, "description": "This automation is fired when a draft order is raised. It waits for 4 days and if the draft order is still open, sends out a follow-up to the customer. The workflow then waits for six more days and if the draft order is still pending, sends out a second follow-up email. " } ]