[ { "label": "Delete a product and create a redirect after a set period of time", "trigger_type": [ "product_created" ], "object_type": "product", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "3": { "conditions": [ { "field": "product.product_type", "settings": { "operator": "equals", "value": "update me", "long_value": "myproduct", "token_object_type": "product", "condition_type": "AND" }, "weight": 1 }, { "field": "product.delay", "settings": { "wait": "1209600", "custom_wait": "", "condition_type": "AND" }, "weight": 2 } ], "actions": [ { "type": "redirect_create", "settings": { "token_object_type": "product", "path": "products\/{{ product.handle }}", "target": "update me", "overwrite": 0, "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "" }, "weight": 999, "target_key": "product" }, { "type": "any_delete_resource", "settings": { "wait": "0", "custom_wait": "", "resource_type": "products", "resource_id": "{{ product.id }}" }, "weight": 999, "target_key": "product" } ] } }, "shared_workflow_id": 814 }, "description": "This workflow waits two weeks after the product was created. After that time, the product is deleted and a redirect is added. The amount of time is easily configurable." } ]