Giving Your Agent Memory#
The agent from the first two guides keeps a transcript: one chat, replayed from the top each turn, growing until it compacts. Start a new chat and it begins from nothing. Memory is what carries across chats, and every agent already has it; what it needs from you is an embedding model.
What you will build#
Chat ─> agent saves a memory ─> "No embedding model configured" card ─> Connect ─> saved
Next chat ─> message recalls the memory ─> reply uses it
Telegram Message ─> Recall Memory ──memory──> AI Conversation (memory in a workflow)
Prerequisites#
An OpenAI or Gemini API key. Memory embeds text with one of their embedding models, such as
OpenAI's text-embedding-3-small, separate from the model your agent talks with.
Memory in Verdalia#
A memory is a short piece of text stored in your workspace together with an embedding of it. The embedding is what makes retrieval semantic: a query returns memories that are close to it in meaning rather than memories containing the same words. Asking "when should I schedule focus time?" finds Freja protects 09:00 to 12:00 for deep work without the word "focus" appearing in it.
Stored beside the text:
- a title, a short label of at most 255 characters that lists and recalled context show
- the namespace it belongs to
properties, free-form metadata you can filter oninitial_relevancy, how good the signal was when it was writtenhalf_life_seconds, how durable it is; relevancy decays over that half-life intocurrent_relevancylinks, where it came from and how it relates to other memories
Namespaces are buckets. Every memory belongs to exactly one, such as personal or work. A
namespace is coarse organization, not a topic per memory. A workspace starts with one named
default, which you can rename or delete like any other. Anything that reads memory reads a scope:
All namespaces, which includes ones created later, or Chosen namespaces.
One embedding model per workspace. Every memory is embedded with the workspace's model, shown at the top of the Memory page as Embedding model: OpenAI · text-embedding-3-small. Search and recall only consider memories embedded with that model, because vectors from different models cannot be compared. Changing the model with Change leaves memories embedded with the old one out of search and recall.
There are three ways to reach the store:
- Agents, on their own. Each user message an agent receives recalls the memories closest to it, and every agent has the Memory tools to search, save, update and link memories itself. With an OpenAI embedding model, OpenAI's Decisions API also checks each recalled memory against the last five messages of the chat, and one that only sounds related (a memory about another company's MCP server, while you build your own) is left out of the message. If the check cannot answer, every recalled memory is kept, and the message shows Memories unchecked. If recall itself fails, for example because the embedding provider is out of credit, the message is still sent, without memory, and shows Memory unavailable; select it to see why.
- Workflow nodes. Recall Memory feeds an AI node's
memorysocket, the Memory node reads and writes memories directly, embedding with the workspace model and no AI node in between, and Memory Tools hands the tools to an AI node. - The Memory page, opened from All pages in the sidebar, where you read, edit and delete memories and manage namespaces.
Memories survive compaction and cross chats because they are workspace data, not conversation data, which is also why any workflow can use them.
Letting your agent remember#
1. Tell the agent something worth keeping. In a chat, say something that will matter for later work of the same kind, such as "the newsletter goes out on Thursdays and section headings are in sentence case".
Agents are instructed to save what will help with similar work later, to search before saving, and to leave who you are to the workspace profile. A one-off correction to the current task is not saved.
2. Connect an embedding model when the card appears. The first save in a workspace without a model stops on a card reading No embedding model configured. Choose Connect, add or pick an OpenAI or Gemini API-key connection, and keep or change the suggested embedding model. The choice becomes the workspace model and the save completes.
Note: Dismiss refuses the call, and the agent is told the save failed. Without a model, recall is skipped and messages are still delivered; the card comes back on the next memory tool call. You can also set the model ahead of time with Connect on the Memory page.
3. Check what was saved. Open Memory from All pages. The saved memory is listed with its title, namespace and current relevancy.
From now on, each message you send any agent recalls up to twelve memories from its scope. They arrive as context for that turn only and never enter the transcript.
4. Narrow an agent's recall. Open the agent and find its Memory setting. All namespaces
is the default; Chosen namespaces restricts recall to the ones you tick, and turning it off
recalls nothing. A work agent limited to work no longer sees memories in personal.
The setting covers recall only. What the agent's Memory tools reach is the Memory group's own Namespaces setting, under the agent's tools; the workspace adds that group for every agent with all namespaces and every tool on. Giving an agent its own Memory group replaces the workspace's for that agent.
The Memory tools#
Every agent's Memory group offers:
memory_search, over every namespace in the group's scopememory_insert, which takes thenamespace_idto save intomemory_get,memory_update,memory_deletefor one memory by idmemory_link_addandmemory_link_removememory_namespace_list, the namespaces in scope with their ids and descriptionsmemory_namespace_create
Searching, saving and updating run without asking. Deleting a memory and creating a namespace are held for your approval when the workspace's approval level is below them. Renaming and deleting namespaces is done on the Memory page, under Namespaces.
Note: memory_insert into a namespace outside the group's scope is refused, naming the
namespace. A workspace with no namespaces at all refuses every insert with No namespaces exist.
Create one before inserting a memory; create one under Namespaces on the Memory page.
Memory in workflows#
Workflows embed with the same workspace model. With none set, a memory node fails with No embedding model configured. Choose one in Memory › Embedding model, since a workflow run has no one to show a card to.
5. Add recall to an AI node. Add a Recall Memory node. Connect the Telegram Message
node to its input socket, keep query at {{ input.text }}, and set Namespaces to
All namespaces or the ones this workflow should read. Connect its output socket to the AI
Conversation node's memory socket.
Recalled memories are formatted into context for that turn only, the same as for agents.
6. Give an AI node the tools, if it should save. Add a Memory Tools node, set its
Namespaces, and turn on the tools you want; on this node each tool starts off. Connect its
tools output to the AI node's tools socket.
Search without insert is a valid configuration, and a good default for a workflow: the model can
look things up while something more deliberate decides what gets kept. Set tool_name to prefix
the memory tools when one AI node has two Memory Tools nodes; memory_namespace_list and
memory_namespace_create keep their names.
Writing memories from a workflow#
Every writer has the same shape: take a source, turn it into facts, insert them. The Memory node's Insert operation takes an array of memory objects and writes them into the namespace in its Namespace field:
[
{
"text": "The newsletter goes out on Thursdays.",
"initial_relevancy": 0.9,
"half_life_seconds": 31536000,
"properties": { "source": "nightly-distillation" }
}
]
Note: bulk insert takes a bare array. A wrapper such as { "memories": [...] } is rejected. The
objects carry no namespace of their own, and need no title: each is titled with the first 40
characters of its text unless the object sets one.
A nightly job that reads the day's transcripts with a Table node, asks an AI Agent with a Structured Output Schema for durable facts, and inserts them is this pattern with a model in the middle. Put a Recall Memory node in front of the extractor and the model sees what is already stored, so it stops proposing facts you have.
Ingesting documents#
A long document does not need a model to become memories. The Memory node's Ingest operation chunks the text, embeds each chunk, and writes one memory per chunk:
{
"text": "Long document text...",
"properties": { "kind": "reference" },
"initial_relevancy": 0.9,
"half_life_seconds": 31536000,
"links": [
{ "relation": "source", "source": { "kind": "canopy_document", "value": "01J..." } }
]
}
Chunk size, overlap and sentence-aware splitting are node config, as is the namespace.
{ "documents": [...] } ingests several at once. Prepare Memory does the chunking and embedding
without writing anything, for when you want to route or filter chunks before they are stored.
A document in the Library reaches Ingest through Get Library Item: its output carries the
document as Markdown in content, and its id for the source link.
Querying memory directly#
The Memory node's default operation is Search, which makes it an ordinary query node. The query is embedded with the workspace model, so Search, like Insert and Ingest, needs one set:
{
"namespace_id": "01J00000000000000000000001",
"text": "invoices",
"limit": 10,
"min_semantic_score": 0.3,
"min_current_relevancy": 0.5
}
Each hit is { memory, semantic_score, current_relevancy }. List filters by namespace,
properties or link without a query, Get reads one memory by id, and Update and Delete do
what they say.
Corrections and provenance#
Every link is { relation, source }, and there are three relations:
source, where the memory came from: a document, a table row, a URL, or another memoryrelated, an undirected association with another memorysupersedes, this memory replaces an older one
Insert and Ingest accept source links only, because the other two name a memory that does not
exist yet at write time. Add those afterwards from the Memory page or with memory_link_add.
Superseding replaces a memory rather than deleting it: the older one disappears from search and
recall, stays readable through Get and List, and becomes active again if the link is
removed. Agents use it when a new fact corrects an old one. A memory holds at most 32 links,
related and supersedes stay inside one namespace, and supersession is linear.
Tuning recall#
Recall Memory's defaults are usually right:
final_limit, how many memories reach the model (12)min_semantic_score, how closely a memory must match the query (0.3)min_current_relevancy, how faded a memory may be and still count (0.5)max_context_chars, a ceiling on how much text is handed over (12000)
The middle two are independent gates: one asks whether the memory is about the query, the other
whether it is still worth anything after decay. If the model brings up irrelevant things, raise
min_semantic_score first. Recall returns direct hits only; a memory linked to a hit is not pulled
in with it.
Seeing what is stored#
The Memory page lists every memory by title, with its namespace, properties and current relevancy. If recall comes back empty when you expected results, filter by the namespace you meant and check the memories are in it, and check the reader's scope includes that namespace.
Open Knowledge Graph from All pages to see memories as a graph, with the links between them and back to their sources. Switch it to 3D to see them arranged by meaning, coloured by cluster.
Next steps#
Point an agent's instructions at the namespaces you use, or give a workflow its own namespace for the facts it distills, and limit the agents that should not read it.