[ { "label": "Change inventory policy when inventory at a certain location drops below a threshold", "trigger_type": "inventory_level_updated", "settings": { "condition_groups": [ { "conditions": [ { "field": "inventory_level.location.name", "settings": { "operator": "equals", "value": "UPDATE ME", "long_value": "", "token_browser": "{{ Browse Tokens }}", "condition_type": "AND" }, "weight": 1 }, { "field": "inventory_level.inventory_item.sku", "settings": { "operator": "not_empty", "value": "" }, "weight": 3 }, { "field": "inventory_level.available", "settings": { "operator": "lte", "value": "0", "token_browser": "{{ Browse Tokens }}", "condition_type": "AND" }, "weight": 4 } ], "actions": [ { "type": "product_variant_set_fields", "settings": { "wait": "0", "custom_wait": "", "fields": { "inventory_policy": { "value": "continue" } } }, "weight": 999, "target_key": "inventory_level.inventory_item.variant" } ] } ], "shared_workflow_id": 2233 } } ]