[ { "label": "Add product to collections based on location where they are stocked", "trigger_type": [ "product_custom" ], "object_type": "product", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "product.inventory_quantity_by_location", "settings": { "operator": "gt", "value": "0", "token_object_type": "product", "location_id": "8203337775", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "product_add_to_collections", "settings": { "wait": "0", "custom_wait": "", "collection_ids": "[CLICK TO EDIT]", "token_object_type": "product" }, "weight": 999, "target_key": "product" } } }, "2": { "conditions": { "1": { "field": "product.inventory_quantity_by_location", "settings": { "operator": "gt", "value": "0", "token_object_type": "product", "location_id": "36688363567", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "product_add_to_collections", "settings": { "wait": "0", "custom_wait": "", "collection_ids": "[CLICK TO EDIT]", "token_object_type": "product" }, "weight": 999, "target_key": "product" } } } }, "shared_workflow_id": 38609 }, "description": "With this automation, each stock item gets added to collections based on inventory level per location. " } ]