[ { "label": "Tag a product when inventory runs low", "trigger_type": [ "product_updated" ], "object_type": "product", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "product.inventory_quantity_changed", "settings": { "value": "true" }, "weight": 999 }, { "field": "product.inventory_quantity", "settings": { "operator": "lte", "value": "5" }, "weight": 999 }, { "field": "product.tags_array", "settings": { "multiple": "none", "operator": "equals", "value": "Limited Quantities" }, "weight": 999 } ], "actions": [ { "type": "product_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "Limited Quantities" }, "weight": 999, "target_key": "product" } ] }, { "conditions": [ { "field": "product.inventory_quantity_changed", "settings": { "value": "true" }, "weight": 999 }, { "field": "product.inventory_quantity", "settings": { "operator": "gte", "value": "6" }, "weight": 999 }, { "field": "product.tags_array", "settings": { "multiple": "any", "operator": "equals", "value": "Limited Quantities" }, "weight": 999 } ], "actions": [ { "type": "product_remove_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "Limited Quantities" }, "weight": 999, "target_key": "product" } ] } ], "shared_workflow_id": 338 }, "description": "This workflow is triggered when a product is updated and listens to inventory quantity changes. You can use it to check for a certain quantity threshold that will dictate if a custom tag will be added or removed." } ]