[ { "label": "Tag orders by payment gateway", "trigger_type": [ "order_created" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "order.payment_gateway_names", "settings": { "multiple": "any", "operator": "contains", "value": "Your Gateway Name", "long_value": "", "condition_type": "AND" }, "weight": 999 } ], "actions": [ { "type": "order_add_tags", "settings": { "token_object_type": "order", "tags": "{% for gateway_name in order.payment_gateway_names %} {{ gateway_name }},{% endfor %}", "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "" }, "weight": 999, "target_key": "order" } ] } ], "shared_workflow_id": 1157 }, "description": "This automation is fired when an order is created, it checks if the order was paid using a pre-defined gateway and then tags the order with the gateway name. " } ]