[ { "label": "If an order has an order note, send an email to the shop owner", "trigger_type": [ "order_paid" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "order.note", "settings": { "operator": "not_empty", "value": "" }, "weight": 999 } ], "actions": [ { "type": "email", "settings": { "token_object_type": "order", "to": "{{ shop.email }}", "cc": "", "bcc": "", "reply_to": "", "subject": "{{ order.name }} for {{ order.customer.display_name }} has a note", "plain_text": "0", "body": "Order: {{ shopify_admin_link(order, {resource: 'orders'}) }}
\r\nCustomer Note: {{ order.note }}", "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "", "run_once": 0 }, "weight": 999, "target_key": null } ] } ], "shared_workflow_id": 259 }, "description": "This workflow runs when an order is paid. If the customer added a note to the order, the note will be sent to the shop email address." } ]