[ { "label": "USA Shipping Address Tag + Outside Of The USA", "trigger_type": [ "order_created" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "order.shipping_address.country", "settings": { "operator": "contains_one", "value": "", "long_value": "United States\r\nCanada\r\nMexico", "token_browser": "{{ Browse Tokens }}", "token_object_type": "order", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "order_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "USA Shipping Address", "token_object_type": "order" }, "weight": 999, "target_key": "order" } } }, "2": { "conditions": { "1": { "field": "order.shipping_address.country", "settings": { "operator": "not_contains_one", "value": "United States\r\nCanada\r\nMexico", "long_value": "United States\r\nCanada\r\nMexico", "token_browser": "{{ Browse Tokens }}", "token_object_type": "order", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "order_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "Outside Of The USA", "token_object_type": "order" }, "weight": 999, "target_key": "order" } } } }, "shared_workflow_id": 33587 }, "description": "This automation is triggered when is created. It can help to check if the order originated from the USA or outside by checking the shipping address. The workflow will tag the order with \"USA Shipping Address\" if the shipping address contains either USA, Mexico, or Canada and tag the order with \"Outside of the USA\" if none of these countries are not listed on the shipping address." } ]