[ { "label": "Email customers after a long period of not ordering anything", "trigger_type": [ "order_paid" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "order.delay", "settings": { "wait": "custom", "custom_wait": "+3 months" }, "weight": 999 }, { "field": "order.customer.accepts_marketing", "settings": { "value": "true" }, "weight": 999 }, { "field": "order.customer.last_order.processed_at", "settings": { "operator": "before", "value": "-80 days", "check": "Check Date" }, "weight": 999 } ], "actions": [ { "type": "email", "settings": { "wait": "0", "custom_wait": "", "to": "{{ order.customer.email }}", "subject": "{{ order.customer.first_name }}, enjoy this 15% off coupon", "body": "

\r\nDear {{ order.customer.first_name }},\r\nWe miss you!\r\n<\/p>\r\n\r\n

\r\nWe've recently launch dozens of new products that we think you'll love!\r\nWe're giving you an exclusive 15% off coupon, just enter the code \"[DISCOUNT CODE]\" during checkout.\r\n<\/p>\r\n\r\n

\r\nThanks again for being a valued customer!\r\nSincerely,\r\n{{ shop.name }}\r\n<\/p>" }, "weight": 999, "target_key": null } ] } ], "shared_workflow_id": 10 }, "description": "Remind your customers why they purchases goods from your store in the first place. Send them a discount code or just a friendly reminder about new products in stock." } ]