[ { "label": "Set a static billing address when an order is tagged with a special term", "trigger_type": [ "draft_order_created", "draft_order_updated" ], "object_type": "draft_order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "draft_order.tags_array", "settings": { "multiple": "any", "operator": "contains", "value": "Fancy Company" }, "weight": 1 }, { "field": "draft_order.billing_address.company", "settings": { "operator": "not_contains", "value": "Fancy Company" }, "weight": 999 } ], "actions": [ { "type": "draft_order_set_fields", "settings": { "wait": "0", "custom_wait": "", "fields": { "billing_address": { "first_name": { "value": "Someone At" }, "last_name": { "value": "The Company" }, "address1": { "value": "123 Any Street" }, "address2": { "value": "" }, "city": { "value": "Company City" }, "company": { "value": "Fancy Company" }, "phone": { "value": "" }, "country_code": { "value": "" }, "province_code": { "value": "" }, "zip": { "value": "" } } } }, "weight": 999, "target_key": "draft_order" } ] } ], "shared_workflow_id": 567 }, "description": "This automation is fired when a draft order is created or updated. If the draft order contains a pre-defined tag, then the automation updates the billing address to a static address. " } ]