[ { "label": "Tag an order based on (?ref=) referral code", "trigger_type": [ "order_created" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "order.note_attributes", "settings": { "multiple": "any", "name": "ref", "operator": "equals", "value": "[CLICK TO EDIT]" }, "weight": 999 } ], "actions": [ { "type": "order_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "[CLICK TO EDIT]" }, "weight": 999, "target_key": null }, { "type": "order_add_note", "settings": { "wait": "0", "custom_wait": "", "note": "Referred by: [EDIT]" }, "weight": 999, "target_key": null } ] } ], "shared_workflow_id": 15 }, "description": "Keep track of the source of an order. Great for tracking affiliate sales." } ]