- Home
- Resources
- Integrations
- Simple Memory
n8n Simple Memory nodeConfigure Simple Memory in n8n.
Chat history is what turns a one-shot answer into a conversation. The n8n Simple Memory node keeps that history inside n8n itself, with 2 parameters to think about: Session Key and Context Window Length. It clips onto the Memory port of a root node, and there is no account to link.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n Simple Memory node actually keep?
Simple Memory holds the last turns of a chat in n8n's own memory and hands them back to a root node on every run. Nothing is stored outside n8n, and the node description says it plainly: stores in n8n memory, so no credentials required. It is a sub-node, a small node you attach to a port of a bigger one instead of dropping it in the main flow, so it never executes on its own.
Start with the case everybody hits first: a chat assistant that has to remember what was said two messages ago. A Chat Trigger feeds an AI Agent, a chat model such as one of the OpenAI sub-nodes does the talking, and Simple Memory sits on the Memory port so each new question arrives with the previous exchanges attached. The Session Key is picked up automatically from the On Chat Message trigger, which is why this setup works before you touch a single parameter.
Second case: one workflow, several conversations that must not bleed into each other. Every Simple Memory node in a workflow points at the same memory instance by default, so two agents left on the default settings end up reading each other's history. Giving each node its own Session Key is what separates them. The same care applies before any destructive step, like the override all messages operation in the Chat Memory Manager node, which rewrites whatever is in there.
Third case: the conversation that grows too long. Context Window Length decides how many past interactions the model receives as context. Keep it small and the model sees a short recent window; raise it and it sees more of the thread, and every one of those past turns travels with the request to the provider. That matters because the provider behind the chat model, Anthropic or another one, bills its own API calls under its own terms while n8n adds nothing on top.
There is one place where this node is the wrong pick, and the official docs are blunt about it: an n8n instance running in queue mode. In that setup n8n cannot guarantee that every call to Simple Memory lands on the same worker, so the node does not work in an active production workflow. Check how your instance runs before you build a customer-facing bot on it.
The rest of the limits are easy to live with. Memory is a thing root nodes use: an AI Agent or an AI Agent Tool can take a memory sub-node, chains cannot. And if you are still deciding which platform to build this on, the n8n review goes through the trade-offs in detail.
Where does this sub-node plug in?
n8n's AI nodes work as a root node plus sub-nodes: the root node receives the workflow items on its main input, and each sub-node clips onto one of its ports, one type per port.
Output (what it plugs into)
- Memory
ai_memory
01Memory
Simple Memory has no main input at all. Its only connection is the ai_memory port of a root node, and that link is what makes it run: on its own it does nothing.
Key parameters
- Required: the node never executes alone, so it has to be attached to a root node that accepts a memory sub-node.
- AI Agent and AI Agent Tool: the two agent nodes that read the stored history before calling their model.
- Chat Memory Manager and Chat Trigger: the other root nodes in the catalog that accept this port.
Which 2 parameters are worth your time?
The Simple Memory node has 2 parameters. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.
Parameters index
Session Key
sessionKeyWhat you see in n8n
Notes & use cases
This is the key used to store the memory in the workflow data. One key means one conversation: the same value brings back the same history, a different value starts a clean thread.
Key parameters
- Session Key: a string, usually left alone since the
sessionIdcomes from the On Chat Message trigger; set it by hand with{{ $json.sessionId }}when the chat starts elsewhere.
my_test_session is fine, but swap it for real session handling before the workflow goes live. An error reading No sessionId means the trigger output has no session to read.Context Window Length
contextWindowLengthWhat you see in n8n
Notes & use cases
Here you set how many past interactions the model receives as context. It is the dial between an agent that remembers everything and one that glances at the last few turns.
Key parameters
- Context Window Length: a number, counted in previous interactions, not in characters or in tokens, the units a model bills and measures text in.
Need help automating Simple Memory with n8n?
A person reads every message.
Simple Memory in n8n, the questions that come next
01Is the n8n Simple Memory node free and included in n8n?
02What credentials does Simple Memory need to work?
03What are the limits of Simple Memory in n8n?
04What do you need to plug in for an agent with memory?
05n8n or Make for an AI chatbot with memory?
Get our weekly integration tips.
No spam. Unsubscribe anytime.
