Curated by n8n Markets team
Last updated: August 6, 2026
This workflow gives any AI system persistent, long-term memory — something most n8n AI agents lack out of the box. Instead of forgetting everything between sessions, it reads and writes structured notes to a vault (Obsidian-compatible), so your agent can recall past conversations, decisions, and facts on demand. What makes it different from a basic "save to file" setup is the grounding logic: before answering, the agent pulls its own most relevant past notes as context, then reasons only from what's actually stored — it's explicitly instructed to say "I don't have a record of that" rather than guess or hallucinate a plausible-sounding answer. This was built and hardened through real testing, including fixing a self-reinforcing drift loop where a wrong guess could get saved and then confidently repeated in future answers. It supports two modes: append (add new information to memory, e.g. logging a decision or fact) and read (answer a question by searching stored memory). It's designed to slot into a larger multi-agent system as a memory sub-agent, or run standalone as its own knowledge base.
A self-hosted or cloud n8n instance (v1.x+). A Groq API key (free tier is sufficient — this workflow runs on Groq's llama-3.3-70b model). A file storage location for notes — either an Obsidian vault folder mounted to your n8n instance, or any writable filesystem path (Obsidian is optional; it's just markdown files). Basic familiarity with importing workflows and setting n8n credentials.
Import the workflow JSON into your n8n instance (Workflows → Import from File). Set your Groq API credential in the Groq HTTP Request node (Header Auth, your API key). Update the file path nodes to point to your own memory/notes folder (default assumes a mounted volume — adjust to your setup) Activate the workflow. Trigger it via webhook, or wire it into an existing agent/orchestrator, passing: action: "append" or "read" (default) request / text: the note content (for append) or question (for read). For append requests, also pass targetNote (which note/section to write to). Test with a simple append ("remember that X"), then a read ("what do you know about X") to confirm the loop works end-to-end.
Included in Builder Pro — $19/mo, 4,177 premium workflows
Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.
100% Secure Checkout
Refund requests within 7 days of a new subscription
0 reviews
No reviews yet.
Log in to ask a question.
No questions yet. Be the first to ask!