[ { "label": "Tag an order when it contains a certain quantity of an item", "trigger_type": [ "order_paid" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "order.line_items.sku", "settings": { "multiple": "any", "operator": "equals", "value": "your-sku" }, "weight": 999 }, { "field": "order.total_quantity_by_product_variant_sku", "settings": { "operator": "gte", "value": "2", "variant_sku": "your-sku" }, "weight": 999 } ], "actions": [ { "type": "order_add_note", "settings": { "wait": "0", "custom_wait": "", "note": "Order has 2 or more of the thing. Do the special thing." }, "weight": 999, "target_key": "order" }, { "type": "email", "settings": { "wait": "0", "custom_wait": "", "to": "[CLICK TO EDIT]", "cc": "", "bcc": "", "reply_to": "", "subject": "", "plain_text": "1", "body": "{{ order_products_list(order, {format: 'html', link: true, quantity: true}) }}" }, "weight": 999, "target_key": "order" }, { "type": "order_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "Qualifies for the thing" }, "weight": 999, "target_key": "order" } ] } ], "shared_workflow_id": 611 }, "description": "This automation is fired when an order is raised. It checks whether pre-defined items exist in the order and the quantities to see if they surpass the set levels. If the conditions pass, the workflow tags the order with a pre-defined tag " } ]