[ { "label": "Ask for a review once an order has been delivered", "trigger_type": [ "fulfillment_event_created" ], "object_type": "fulfillment_event", "app_id": "triggers", "tags": [], "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "fulfillment_event.status", "settings": { "operator": "any", "value": { "delivered": "delivered", "label_printed": 0, "label_purchased": 0, "attempted_delivery": 0, "ready_for_pickup": 0, "confirmed": 0, "in_transit": 0, "out_for_delivery": 0, "failure": 0 }, "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "trigger_child_workflow", "settings": { "target_path": "fulfillment_event.order", "exported_workflow": { "label": "Order subworkflow", "trigger_type": [ "manual" ], "object_type": "order", "app_id": "triggers", "tags": [], "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "order.billing_address.country_code", "settings": { "operator": "not_empty", "value": "", "long_value": "", "token_browser": "{{ Browse Tokens }}", "token_object_type": "order", "condition_type": "AND" }, "weight": 999 }, "2": { "field": "order.billing_address.phone", "settings": { "operator": "not_empty", "value": "", "long_value": "", "token_browser": "{{ Browse Tokens }}", "token_object_type": "order", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "sms", "settings": { "wait": "0", "custom_wait": "", "to": "{{ order.billing_address.phone }}", "body": "Kindly rate our service", "token_object_type": "order" }, "weight": 999, "target_key": "order" } } }, "2": { "conditions": { "1": { "field": "order.customer.verified_email", "settings": { "value": "true", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "email", "settings": { "wait": "0", "custom_wait": "", "to": "{{ order.customer.verified_email }}", "cc": "", "bcc": "", "reply_to": "", "subject": "RATE OUR SERVICE", "plain_text": "1", "body": "How do you rate our service", "token_object_type": "order" }, "weight": 999, "target_key": "order" } } } } } } }, "weight": 999, "target_key": "fulfillment_event" } } } }, "shared_workflow_id": 29615 } } ]