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:Memory Types
1. Knowledge Base
Purpose: Domain-specific information Example: Company Knowledge Base2. Prime Context
Purpose: Always-available context included in every interaction Example: Agent Guidelines3. Conversation History
Purpose: Maintain context across sessions Example: Previous InteractionsCreating Memory
Via Settings β Node Managers β Memory:- Click βAdd New Memory Layerβ
- Enter name (e.g., βCompany KBβ)
- Add markdown files
- Write content in each file
- Save to workspace library
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:Example 2: Code Review Style Guide
Structure:Memory Patterns
Pattern 1: Layered Knowledge
Pattern 2: RAG (Retrieval-Augmented Generation)
Concept: Agent retrieves relevant memory chunks based on user query Implementation:- Store large knowledge base as memory
- Agent searches relevant sections
- Agent uses retrieved context for response
Best Practices
β Do:- Use clear markdown headings
- Keep files focused (one topic per file)
- Update regularly
- Include examples and specifics
- Organize with folders
- Store huge files (split into smaller chunks)
- Include outdated information
- Use complex formatting (keep simple)
- Duplicate information across files
Memory vs. System Prompt
| Feature | System Prompt | Memory |
|---|---|---|
| When to use | Instructions, behavior | Facts, knowledge |
| Example | βYou are helpful" | "Company founded 2020β |
| Changeable | Rarely | Frequently |
| Scope | Every interaction | Contextual retrieval |
Next Steps
- Commands Node - Create slash commands
- MCPs Node - External integrations