Skip to content
Docs

When Key-Value Entries Change

When Key-Value Entries Change starts a flow when an entry of your workspace’s key-value store is added, edited or deleted. Use it to reprice open quotes when an exchange rate such as rates-eur changes, or to react when a feed’s state flips to failed. You find it on the node picker’s Triggers — start the flow shelf.

The node has a single webhook handle, which connects into Start’s trigger handle; the run itself begins at Start.

Keys starting with names the keys, as a plain prefix compared exactly: rates- watches rates-eur and rates-usd, and a whole key such as feed_state watches that key and any key that starts with it. Leave it empty to watch every entry.

Every change Publicus makes to an entry can start it: the Key-value page, an import, the AI builder, or a flow’s key-value nodes. A flow never starts itself by changing an entry it watches, and a chain of flows starting each other through stores stops after four steps.

Each change the trigger does not take is recorded with the reason. Open the Key-value page and click Triggers to see the flows key-value changes start and what the latest changes started.

The key-value Triggers panel: Apply new partner rate limits, live, starts when entries with keys starting acme.partner-rate-limits are added or edited, a second flow is switched off, and the latest change, an edit by Docs Writer, started the live one
The key-value Triggers panel: Apply new partner rate limits, live, starts when entries with keys starting acme.partner-rate-limits are added or edited, a second flow is switched off, and the latest change, an edit by Docs Writer, started the live one

$start->payload describes the change:

Field What it holds
key The key that changed.
action create, edit or delete.
entries Each entry under the key that changed: its id, key and value, read when the run starts. value is null for a delete.
via Where the change came from: panel, chat, mcp, flow or system.
by Who made it: memberId, or for a flow flowExecutionId and flowId.

The value is read once the change has been saved, so a run started by an entry that was changed again a moment later sees the newer value.

The When Key-Value Entries Change node's settings form, with the fields described below
The When Key-Value Entries Change node's settings form, with the fields described below
FieldTypeDefaultDescription
Keys starting with (keyPrefix)string ✦ (optional) — Start for entries whose key starts with this, such as rates- or a whole key. Leave empty for every entry.
Entries added (onCreate)boolean (optional) true Start a run when an entry is added.
Entries edited (onEdit)boolean (optional) true Start a run when an entry’s key or value is edited.
Entries deleted (onDelete)boolean (optional) true Start a run when an entry is deleted.
Changes made by flows (fromFlows)boolean (optional) true Also start when a flow changes the entries. A flow never starts itself by changing an entry it watches.
Without overlapping (withoutOverlapping)boolean (optional) false Prevent a new run from starting while a previous run for this trigger is still in progress. With “Overlap key” set, only a run about the same key blocks.
Overlap key (overlapKey)string (optional) — What a run is about, for the overlap rule: a JSON path into the payload, such as $.key.

Fields marked ✦ accept expressions.