Skip to content

Workflow memory

The Memory node lets a workflow remember things between runs: a fact one run learns, a counter, the last item it processed, a log of what happened. Wired to an agent, the same node becomes that agent's memory for that placement. This page covers what the node stores, where the rows go, and how to look at and clean up what it remembered.

What the node stores

A Memory node keeps two kinds of record, chosen by its Operation:

Operation Does
set, get, delete, list Work on a key-value map: one value per key
append, window Work on an ordered log: append adds an entry under a key, window reads the latest entries back
search Looks for words in keys and values

Values are JSON objects whose fields may use expressions, resolved per item. get answers with found set to false when there is nothing under the key, rather than stopping the branch, and list, window and search return one empty item when nothing matches, so the next node still runs. An append that is retried after a failure is not written twice.

Three settings decide which memory an entry belongs to:

  • Memory name — empty means this node's own private memory. A name of the form shared:notes is a memory that several nodes and workflows of the project share on purpose.
  • Separate per — who sees an entry inside that memory: shared (every run) or run (one execution; such rows expire after 24 hours unless you set otherwise). The old thread value is no longer offered: a node that still uses it keeps working with its Scope Key, shows a warning, and cannot be linked to an agent — change it to shared (with the partition in the key) or run.
  • Test runs use a separate partition — isolated, the default, gives test runs from the editor a separate partition, so trying a workflow out never overwrites what production remembers. shared turns that off.

A private memory belongs to its node alone, so two Memory nodes with an empty Memory name never see each other's rows. When one of them reads (get, list, window or search) in a workflow where another writes to its own private memory (set, append or delete), the Problems panel warns that the reader never sees what the writer stores: give both the same shared:<name>. Memory nodes linked to an agent are left out of this check.

set and append can also expire a row: after Ttl Seconds, or after Retention Days when no seconds are set. 0 keeps it.

Two limits apply, and both refuse the write rather than cutting data silently: a value may be at most 64 KiB once rendered, and one memory holds at most 10,000 rows per scope.

Where the rows go

The node's postgres slot decides: the rows live in the database of the connection bound there. Bind the project's own database — the project database connections are listed first in the picker — or any other Postgres connection. When the project has exactly one database Crios provisioned, the slot binds it by itself; the node never binds a database Crios does not own on its own.

The first write creates the memory tables. In a database Crios provisioned they are memory_kv, memory_log and memory_schema; in any other database they carry a crios_wf_ prefix, so they cannot collide with your own tables. The Storage card at the top of the node's inspector shows which database the rows go to and whether the tables exist yet, and Create memory tables creates them ahead of the first run. That needs a login that may create tables in the database.

Giving an agent memory

Wire the Memory node's memory output into an AI Agent node's AI memory input. That placement of the agent then gets tools to read, write, list, append to and delete entries in the node's memory, and a snapshot of what is remembered opens every run. The node's Inject Limit, Inject Prefix and Inject Max Chars size that snapshot; they matter only for an agent link.

A linked Memory node replaces the agent's own store for that placement only. The Memory section of the agent node's card says which one applies: the linked node and the connection its rows live in, or the agent's own store. See Agent memory for the store every agent has.

Looking at what was remembered

Select a Memory node to see its rows above the inspector's tabs, headed Remembered with the node's memory name:

  • Each row shows its key, value, scope, when it was written and what wrote it: an agent, a node or a step.
  • Test runs switches to the rows test runs wrote.
  • Forget this key deletes a row, Edit this row's value changes it, and Lock this key so the agent cannot change it protects it: while it is locked, neither the agent's memory tools nor the workflow's Memory steps can write to it or forget it. A locked key has to be unlocked before it can be edited or forgotten here.
  • Forget everything here (or Forget the test rows) empties the memory.
  • Other memories in this project lists the project's other memories in Crios-managed databases, with their key and entry counts. Ones that no node writes to any more are marked no node writes here, and each can be emptied with Forget this memory.

Emptying a memory asks first: Forget everything in this memory? (or Forget this memory's test rows?) and It cannot be undone. For a memory in the Project database, it also says how many rows it deletes. For test rows, confirming is enough. Production rows are what live workflows and agents read, so for those you also type the memory's name (Type the memory's name to confirm) before Forget permanently.

Project viewers see the rows, but the controls that change them are disabled.

A workflow with a Memory node on its canvas also shows a Memory pill in the bar under its name in the editor. It opens Workflow memory, one page for everything the workflow's Memory nodes have written, with a Memory node picker to switch between them.

While the editor holds the workflow in Read-only or Debug in this browser, the rows can be read but the controls that change them are off, in the inspector and on the Workflow memory page alike; Open in editor in that page's banner opens the workflow in Edit (see Editor modes).

An agent's own store, and the memories of the workflows that use the agent, are on the agent's Memory data tab.