A configuration node that connects a Memory Provider to an Agent node in graph mode. It enables the agent to read prior conversation turns from persistent storage and write new turns after each response, giving the agent a continuous memory across multiple workflow runs.
memory
ยท Graph mode only
By default, each Agent node run is stateless โ it has no knowledge of what the agent said or did in
previous runs. The Memory node changes that. When connected to an Agent via the memory_in
port, Flusso will automatically:
The Scope setting controls the namespace under which turns are stored and retrieved. This determines what the agent "remembers" โ whether it shares memory across all runs, within a single workflow, within a single execution, or only within a single step.
Memory Providers are configured separately in Settings โ Memory Providers. Supported backends include Redis, SQLite, PostgreSQL, vector stores, and Mem0.
| Field | Status | Description |
|---|---|---|
| Memory Provider | Required | Select from the Memory Providers you have configured in Settings โ Memory Providers. The provider determines the storage backend used for reading and writing turns. |
| Scope | Required | Controls the namespace key used to isolate memory. See the Scope Reference table below for full details. |
| Namespace | Optional | A custom string to further narrow the memory namespace. For example, you could use a user ID or a conversation thread ID to create per-user memory within a shared workflow. |
| Read Last N Turns | Optional | The number of the most recent conversation turns to inject into the agent's context before it runs. Default is 10. Setting this too high increases prompt length and API costs; setting it too low may cause the agent to forget relevant context. |
| Max Tokens | Optional | A token budget for the injected memory. If the retrieved turns exceed this limit, Flusso drops the oldest turns first until the history fits within the budget. Leave blank for no limit. |
| Scope | Memory is shared across | Best for |
|---|---|---|
agent |
All runs of this workflow (per agent step key) | Long-running assistants that should remember context across multiple sessions, such as a personal productivity assistant or a customer support bot. |
workflow |
All runs of this workflow | Shared context that all agents in a workflow can contribute to and read from, regardless of which run produced the turns. |
run |
One single execution of the workflow | Multi-turn reasoning within a single run, where you need the agent to remember earlier steps in the same execution but start fresh each time. |
step |
One step within one run | Fully isolated per-step context. Rarely needed, but useful when you want each agent call to be completely independent even within the same run. |
This example connects a Memory node to an Agent so the assistant remembers the conversation history between sessions.
agent. Set Read Last N Turns to 20. In the Namespace field, enter {{ trigger.output.user_id }} to create a separate memory store per user.
memory_in (Mm) port on your Agent node.
{{ trigger.output.user_id }}. Without this, all users will share the same memory pool.
memory_in connection. If you need memory from multiple scopes, handle the merging in a custom step before the agent runs.