When Knowledge Base Sources Change
When Knowledge Base Sources Change starts a flow when the sources of one of your
knowledge bases change: a document is
added, ingested again, or deleted. Use it to tell a team what a new handbook
covers, or to rebuild a summary when its source documents move. You find it on
the node picker’s Triggers — start the flow shelf.
A source is every chunk ingested under one source key. The node has a single webhook handle, which connects into Start’s trigger handle; the run itself begins at Start.
What starts it
Section titled “What starts it”Every change Publicus makes to the knowledge base’s sources can start it: a document added on its Documents page, a flow’s Knowledge Base Insert, or a source deleted on the Sources page, by a flow or by the AI builder. Delete all documents on the Documents page deletes every source.
- A source key the knowledge base does not hold yet is added.
- A source key ingested again, its chunks replaced, is replaced.
- A source removed is deleted.
A flow never starts itself by changing a knowledge base it watches, and a chain of flows starting each other through stores stops after four links. Open the knowledge base’s Sources page and click Triggers to see what its recent changes started and why a flow skipped one.
What a run gets
Section titled “What a run gets”$start->payload describes the change:
| Field | What it holds |
|---|---|
collection |
The knowledge base’s id and name. |
action |
create, edit (replaced) or delete. |
sources |
Each changed source: its sourceKey (null for documents ingested without one) and how many chunks it holds now, 0 once deleted. At most 100 sources. |
via |
Where the change came from: panel, chat, mcp, flow or system. |
by |
Who made it: memberId, or for a flow flowExecutionId and flowId. |
truncated |
true when the change touched more than 100 sources. |
Configuration
Section titled “Configuration”

| Field | Type | Default | Description |
|---|---|---|---|
Knowledge base (collectionId) | string ✦ (required) | — | The knowledge base whose sources start this flow. |
Sources added (onCreate) | boolean (optional) | true |
Start a run when a source is added. |
Sources replaced (onEdit) | boolean (optional) | true |
Start a run when a source is ingested again and its chunks replaced. |
Sources deleted (onDelete) | boolean (optional) | true |
Start a run when a source is deleted. |
Changes made by flows (fromFlows) | boolean (optional) | true |
Also start when a flow changes the knowledge base. A flow never starts itself by changing a knowledge base 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. |
Fields marked ✦ accept expressions.