AI Memory Agent — Persistent Long-Term Memory
    100%
    Automation
    0(0 reviews)
    0 downloads

    AI Memory Agent — Persistent Long-Term Memory

    NM

    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.

    What's Included

    • The n8n workflow file (importable JSON).
    • Pre-built nodes for: request routing (append vs. read), memory retrieval, LLM reasoning with grounding rules, note formatting, and vault write-back.
    • The system prompt used for grounded reasoning (the "no hallucination" instructions).
    • Setup notes covering the required folder structure and environment variables.

    Requirements

    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.

    How to Use

    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.

    Apps in this n8n workflow

    How to import this template into n8n

    1. Download the workflow JSON file from this page.
    2. In n8n, open Workflows, create a new workflow and choose Import from File.
    3. Open each node that shows a warning and connect your own credentials.
    4. Run the workflow once manually to check the output before you activate it.
    Included in Pro
    • Importable n8n workflow JSON file
    • Download with Builder Pro or Agency Unlimited
    • Built for n8n v2.32.x or later+
    • Setup time: 15 minutes

    Included in Builder Pro — $19/mo, 4,177 premium workflows

    Before you activate

    Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.

    Updated Aug 2026
    v1.0.0
    SSL
    Secure
    GDPR

    100% Secure Checkout

    Refund requests within 7 days of a new subscription

    Reviews

    0

    No reviews yet

    See all 0 reviews ↓
    —

    0 reviews

    5★
    0
    4★
    0
    3★
    0
    2★
    0
    1★
    0

    No reviews yet.

    Questions & Answers

    0

    Log in to ask a question.

    No questions yet. Be the first to ask!

    People Also Bought