[ { "label": "Tag customers with the collections of items purchased", "trigger_type": [ "order_created" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": { "1": { "type": "customer_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "{% set comma =\"\" %}\r\n{% for line_item in order.line_items %}\r\n {% for collection in line_item.product.collections %}\r\n {{comma}}{% set comma=\",\" %}\r\n {{ collection }}\r\n {% endfor %}\r\n{% endfor %}\r\n", "token_object_type": "order" }, "weight": 999, "target_key": "order.customer" } } } }, "shared_workflow_id": 41419 }, "description": "This workflow will loop through all the products purchased and tag the customer account with the products collections" } ]