Skip to main content

Memory Node

Memory gives your agent persistent knowledge and long-term context.

Overview

Purpose: Store knowledge, conversation history, and reference information Connection: Bottom-left handle of main agent card Color: Green Icon: 🧠 Required: Optional (0 to many)

What is Memory?

Memory nodes contain markdown files that provide your agent with:
  • Domain knowledge
  • Company information
  • Conversation context
  • Reference documentation
  • Historical data

Memory Structure

Memory is organized as markdown files in folders:
Each file contains knowledge in plain markdown format.

Memory Types

1. Knowledge Base

Purpose: Domain-specific information Example: Company Knowledge Base
Use case: Customer support agents with company context

2. Prime Context

Purpose: Always-available context included in every interaction Example: Agent Guidelines
Use case: Ensure consistent agent behavior

3. Conversation History

Purpose: Maintain context across sessions Example: Previous Interactions
Use case: Personalized multi-session support

Creating Memory

Via Settings β†’ Node Managers β†’ Memory:
  1. Click β€œAdd New Memory Layer”
  2. Enter name (e.g., β€œCompany KB”)
  3. Add markdown files
  4. Write content in each file
  5. Save to workspace library
Memory layer appears in sidebar β†’ drag to canvas β†’ connect to main agent.

Configuration

When clicked on canvas:
  • Add/edit markdown files
  • Organize into subfolders
  • Set priority (which files load first)
  • Configure memory scope (always vs. contextual)

Real-World Examples

Example 1: Customer Support Knowledge Base

Structure:
products.md:

Example 2: Code Review Style Guide

Structure:
style-guide.md:

Memory Patterns

Pattern 1: Layered Knowledge

Use case: Agent with broad knowledge + domain expertise + personalization

Pattern 2: RAG (Retrieval-Augmented Generation)

Concept: Agent retrieves relevant memory chunks based on user query Implementation:
  1. Store large knowledge base as memory
  2. Agent searches relevant sections
  3. Agent uses retrieved context for response
Use case: Documentation Q&A, technical support

Best Practices

βœ… Do:
  • Use clear markdown headings
  • Keep files focused (one topic per file)
  • Update regularly
  • Include examples and specifics
  • Organize with folders
❌ Don’t:
  • Store huge files (split into smaller chunks)
  • Include outdated information
  • Use complex formatting (keep simple)
  • Duplicate information across files

Memory vs. System Prompt

Rule: Instructions in prompt, facts in memory.

Next Steps