[ { "label": "Archive a product 30 days after it's sold out", "trigger_type": [ "product_updated" ], "object_type": "product", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "product.inventory_quantity", "settings": { "operator": "gte", "value": "0", "token_object_type": "product", "condition_type": "AND" }, "weight": 10 }, "2": { "field": "product.delay", "settings": { "wait": "2592000", "cw_timezone": "Europe\/Brussels", "custom_wait": "", "check_date": [], "token_object_type": "product", "condition_type": "AND" }, "weight": 20 }, "3": { "field": "product.inventory_quantity", "settings": { "operator": "gte", "value": "0", "token_object_type": "product", "condition_type": "AND" }, "weight": 30 } }, "actions": { "1": { "type": "product_unpublish", "settings": { "token_object_type": "product", "update_status": 1, "status": "archived", "wait": "0", "cw_timezone": "Europe\/Brussels", "custom_wait": "" }, "weight": 999, "target_key": "product" } } } }, "shared_workflow_id": 59972 }, "description": "This automation checks for a product when it's sold out. Waits for 30 days, and if the product is still out of stock, it unpublishes and archives the product. " } ]