Package Information
Available Nodes
Documentation
n8n-nodes-zep-v3
Community node package that replicates 100% of the deprecated Zep nodes using Zep API v3 semantics (threads & user context) while preserving the same UX in n8n.
๐ Drop-in replacement for the deprecated
@n8n/n8n-nodes-langchain.memoryZepthat stopped working with Zep Cloud.
โจ Features
- ๐ง Zep Memory (v3) โ Sub-node that plugs into AI Agent/Chat nodes via the
ai_memoryport - โ๏ธ Zep Cloud compatible โ Works seamlessly with https://api.getzep.com
- ๐ Sessions โ Threads mapping โ Automatic conversion for v2 compatibility
- ๐ Auto-thread creation โ Creates threads automatically when needed
- ๐ User context support โ Advanced context retrieval (basic/summary modes)
- ๐ API Response validation โ Robust error handling and data validation
- ๐ Debug logging โ Comprehensive logs for troubleshooting
๐ฏ Why This Package?
The original n8n Zep nodes stopped working when Zep migrated from v2 to v3 API:
- โ
@n8n/n8n-nodes-langchain.memoryZepthrows "resource not found" errors - โ Incompatible with Zep Cloud (uses v3 API)
- โ Community workflows broken for months
This package solves these issues:
- โ Same interface โ No workflow changes needed
- โ Zep v3 API โ Compatible with latest Zep Cloud
- โ Enhanced features โ Additional context modes and auto-creation
๐ Requirements
- n8n: >= 1.82.0
- Zep: Cloud account or self-hosted v3
- Installation: Self-hosted n8n only (community packages not supported on n8n Cloud)
๐ Installation
Method 1: NPM (Recommended)
# Navigate to your n8n custom nodes directory
cd ~/.n8n/custom
# Install the package
npm install n8n-nodes-zep-v3
# Restart n8n
Method 2: Git Clone
# Navigate to your n8n custom nodes directory
cd ~/.n8n/custom
# Clone the repository
git clone https://github.com/fabiohsan/n8n-nodes-zep-v3.git
# Install dependencies and build
cd n8n-nodes-zep-v3
npm install
npm run build
# Restart n8n
Docker Installation
# Connect to your n8n container
docker exec -it your_n8n_container bash
# Navigate to custom directory
cd /home/node/.n8n/custom
# Install package
npm install n8n-nodes-zep-v3
# Exit and restart container
exit
docker restart your_n8n_container
โ๏ธ Configuration
1. Set up Zep API v3 Credentials
- In n8n, go to Credentials โ Add Credential
- Search for "Zep API (v3)"
- Configure:
- API Key: Your Zep API key from Zep Cloud
- Base URL:
https://api.getzep.com(default for Zep Cloud)
2. Test Connection
Click Test to verify your credentials work with Zep v3 API.
๐ Usage
Zep Memory (v3) Node
The memory node acts as a sub-node that connects to AI Agent/Chat nodes via the special ai_memory port.
Basic Setup
- Add "Zep Memory (v3)" node to your workflow
- Connect it to your AI Agent node via the memory port
- Configure the Session ID parameter
- Run your workflow
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| Session ID | string | required | Unique identifier for the conversation thread |
| Mode | options | basic |
Context retrieval mode (basic or summary) |
| Auto-create Thread | boolean | true |
Automatically create thread if it doesn't exist |
| Return Context on Add | boolean | false |
Return context when adding messages |
| User ID | string | "" |
Optional user ID for cross-thread graph building |
Example Configuration
// Session ID examples
"user_123_session" // User-specific session
"chat_{{ $json.conversation_id }}" // Dynamic from input data
"support_ticket_456" // Support conversation
Zep Vector Store (v3) Node
The vector store node provides document storage and semantic search capabilities.
Operations
Insert Documents
// Input data structure
{
"content": "Your document content here",
"metadata": {
"category": "support",
"language": "en",
"timestamp": "2025-01-01T00:00:00Z"
}
}
Search Documents
// Search configuration
{
"query": "How do I reset my password?",
"limit": 10,
"searchType": "similarity" // or "mmr"
}
Get Many Documents
// Retrieve by UUIDs or document IDs
{
"uuids": "uuid1,uuid2,uuid3",
"documentIds": "doc1,doc2,doc3"
}
๐ Migration from Legacy Zep Nodes
Before (Broken)
{
"nodes": [
{
"parameters": {},
"type": "@n8n/n8n-nodes-langchain.memoryZep",
"credentials": {
"zepApi": "your_old_credentials"
}
}
]
}
After (Working)
{
"nodes": [
{
"parameters": {
"sessionId": "{{ $json.user_id }}"
},
"type": "zepMemoryV3",
"credentials": {
"zepApiV3": "your_new_credentials"
}
}
]
}
Migration Steps
- โ
Install
n8n-nodes-zep-v3 - โ Create new Zep API (v3) credentials
- โ Replace old Zep Memory nodes with Zep Memory (v3)
- โ
Update node parameters (add explicit
sessionId) - โ Test your workflows
๐ญ Example Workflows
Basic AI Chatbot with Memory
[Manual Trigger]
โ
[Zep Memory (v3)] โ [AI Agent (OpenAI)]
โ โ
[Return Response] โ [Format Output]
Customer Support with Vector Search
[Webhook Trigger]
โ
[Zep Vector Store (v3) - Search] โ [AI Agent with Context]
โ โ
[Zep Memory (v3)] โ [Format Support Response]
Document Ingestion Pipeline
[Schedule Trigger]
โ
[Read Files] โ [Zep Vector Store (v3) - Insert]
โ โ
[Process Text] [Confirm Upload]
๐ ๏ธ API Compatibility
Zep v2 โ v3 Mapping
| Zep v2 Concept | Zep v3 Equivalent | This Package |
|---|---|---|
sessions |
threads |
โ Auto-mapped |
memory.get |
thread.get_user_context |
โ Supported |
memory.add |
thread.add_messages |
โ Supported |
memory.delete |
thread.delete |
โ Supported |
| Collections | Collections | โ Unchanged |
API Endpoints Used
GET /api/v2/threads/{id}/messages- Retrieve conversation historyPOST /api/v2/threads/{id}/messages- Add new messagesGET /api/v2/threads/{id}/context- Get user contextDELETE /api/v2/threads/{id}- Clear threadPOST /api/v2/collections/{name}/search- Vector searchPOST /api/v2/collections/{name}/documents- Insert documents
๐ง Troubleshooting
Common Issues
"Couldn't connect with these settings"
- โ Check API key is correct
- โ
Verify Base URL is
https://api.getzep.com(notapp.getzep.com) - โ Ensure you have Zep Cloud access
"Thread not found"
- โ Enable Auto-create Thread option
- โ Check Session ID is not empty
- โ Verify thread exists in Zep Cloud dashboard
"Node not appearing in n8n"
- โ Restart n8n after installation
- โ Check package installed in correct directory
- โ Verify n8n version >= 1.82
Memory not persisting
- โ Ensure Session ID is consistent across workflow runs
- โ Check Zep Memory node is connected to AI Agent memory port
- โ Verify credentials are valid
Debug Mode
Enable verbose logging by setting:
export N8N_LOG_LEVEL=debug
Getting Help
- ๐ GitHub Issues: Report bugs
- ๐ฌ n8n Community: Discuss usage
- ๐ Zep Docs: API Reference
๐งช Testing
Manual Testing
# Run type checking
npm run lint
# Build package
npm run build
# Test in development n8n instance
npm run watch # for development
Integration Testing
- Create test workflow with Zep Memory node
- Send test messages through AI Agent
- Verify memory persistence across conversations
- Test vector search with sample documents
๐ค Contributing
We welcome contributions! Please:
- ๐ด Fork the repository
- ๐ฟ Create a feature branch
- โ Add tests for new functionality
- ๐ Update documentation
- ๐ Submit a pull request
Development Setup
git clone https://github.com/fabiohsan/n8n-nodes-zep-v3.git
cd n8n-nodes-zep-v3
npm install
npm run watch # Development mode
๐ License
MIT License - see LICENSE file for details.
๐ Acknowledgments
- n8n Team - For the amazing workflow automation platform
- Zep Team - For the powerful memory management service
- Community - For feedback and feature requests
๐ Links
- ๐ฆ NPM Package
- ๐ป GitHub Repository
- ๐ Zep Cloud
- ๐ Zep Documentation
- ๐ค n8n Documentation
๐ Changelog
v0.2.5 (2025-10-02)
๐ Authentication Fix
- Added Authorization headers to all HTTP requests
- Fixed 401 Unauthorized error when connecting to Zep API
- Headers now include:
Authorization: Api-Key {token} - All methods (loadMemoryVariables, saveContext, clear) now properly authenticated
- Thread auto-creation now works correctly with authentication
v0.2.4 (2025-10-02)
๐ง Major Fix - Langchain Compatibility
- Implemented proper Langchain
BaseChatMemoryinterface - Added
loadMemoryVariables()method (replaces getMessages) - Added
saveContext()method (replaces addMessages) - Added required properties:
memoryKey,returnMessages,inputKey,outputKey - Now fully compatible with n8n AI Agent nodes
- Fixed message format conversion (role โ type: 'human'/'ai')
v0.2.3 (2025-10-02)
๐ Critical Fix
- Fixed
supplyDatamethod implementation (was using wrong interface) - Changed from
IExecuteFunctionstoISupplyDataFunctions - Resolved "Node does not have a
supplyDatamethod defined" error - Now properly works as AI Memory sub-node
v0.2.2 (2025-10-02)
โจ UX Improvements
- ๐ฏ Auto-suggest
{{ $json.sessionId }}from Chat Trigger for Session ID field - ๐ก Added helpful hints and placeholders for all fields
- ๐ Improved field descriptions with examples
- ๐ Better integration with Chat Trigger nodes
v0.2.1 (2025-10-02)
๐ Hotfix
- Fixed class name export (ZepMemoryV3 โ ZepMemory)
- Resolved "package could not be loaded" error
v0.2.0 (2025-10-02)
๐ฏ Improvements & Optimization
- โก Simplified execute() - removed unnecessary loop for better performance
- ๐ก๏ธ Added API response validation to prevent silent failures
- ๐ Added comprehensive debug logging for troubleshooting
- ๐ซ Removed Zep Vector Store node (focusing on AI Memory only)
- โ Better error messages and handling
- ๐ฆ Cleaner, more maintainable codebase
v0.1.6 (Previous)
- Initial release with Zep v3 API support
- Zep Memory sub-node for AI Agents
- Auto-thread creation
- User context support
โญ If this package helped you, please give it a star on GitHub!
