Hello, can I use n8n to create multiagent systems where the agents have shared memory?
I have seen conflicting messages about whether or not n8n can be used to build multiagent systems. Thanks!
Hello, can I use n8n to create multiagent systems where the agents have shared memory?
I have seen conflicting messages about whether or not n8n can be used to build multiagent systems. Thanks!
It looks like your topic is missing some important information. Could you provide the following if applicable.
Hey @mpeters What do you mean by shared memory?
If you mean knowledge shared memory here one of many videos on YouTube https://youtu.be/t_azqARQSb8
Yes, you can create multiagent systems with shared memory in n8n using several approaches. Here’s how:
Important considerations:
Thank you so much. That is an incredibly thoughtful response.
I limitation regarding ReAct agents seems like a major drawback. Am I correct in understanding that ReAct agents cannot use memory and context when creating and executing plans?
You’re welcome! I’m glad you found the previous response helpful.
Regarding your question about ReAct agents and memory, you are absolutely correct. ReAct agents in n8n currently do not support memory sub-nodes directly.
This means that out of the box, ReAct agents cannot inherently retain context or use memory when creating and executing plans within n8n’s Langchain integrations. Each interaction with a ReAct agent is essentially treated as a fresh, new request without access to past conversation history or stored context through n8n’s memory management features.
Thanks for this response Daniel. I’m also trying to build a chatbot like system with some reasoning and action capability. I opted for using the Tools AI agent because of the native memory node and ability to recall previous messages.
I’m quite slow at building in n8n (I’m a newbie), so thought it might be worth checking with you before I invest a lot of time trying to build it. Would it be theoretically possible to manually pass conversation histories back to a ReAct agent using the method described in the video above? E.g. if you instructed it in the prompt, whenever it received a chat message, to pass the message to a memory node (perhaps Airtable as in the video), and then use a value returned by the node, which contained the full conversation (or last say K=10 messages), as the new full context, and take decisions from there?
Might be a bit overkill, but I’m just curious as I’d like to experiment with the ReAct agent as a chatbot.
Yes, you could theoretically implement a manual memory system for a ReAct agent using the approach you described! While ReAct agents don’t support native memory sub-nodes, your workaround has merit:
This approach essentially simulates memory by providing conversation history with each new interaction, which should work for your chatbot experiment with the ReAct agent.
If you’re new to n8n, starting with the Tools Agent might be simpler since it has native memory support, but your proposed solution for ReAct is definitely viable if you want to experiment with its reasoning capabilities!
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.