n8n-nodes-readonly-memory
v0.1.22
Published
Read-only memory node for n8n that only reads from PostgreSQL without storing conversations
Maintainers
Readme
n8n-nodes-readonly-memory
A read-only memory node for n8n that connects to PostgreSQL for reading memory without write operations.
Features
- Read-Only Operation: Only reads from PostgreSQL database, never writes
- Session Management: Supports session-based memory retrieval
- Context Window: Configurable context window length for memory retrieval
- AI Agent Integration: Designed to work with n8n AI agents
- PostgreSQL Support: Uses PostgreSQL for memory storage
Installation
- Install the package:
npm install n8n-nodes-readonly-memory- Build the package:
npm run buildUsage
Configuration
- PostgreSQL Credentials: Configure your PostgreSQL database credentials
- Table Name: Specify the table name to read from (default:
n8n_chat_histories) - Session ID: Choose how to identify the session:
- From connected Chat Trigger node
- Custom key/expression
- Context Window Length: Set how many past interactions to include (default: 5)
Connecting to AI Agents
This node is designed to be connected to AI agents in n8n workflows. It provides read-only access to conversation history stored in PostgreSQL.
Example Workflow
- Chat Trigger → Read-Only Memory → AI Agent
- The memory node reads conversation history from PostgreSQL
- The AI agent receives the conversation context without modifying the database
Development
Building
npm run buildDevelopment Mode
npm run devLinting
npm run lint
npm run lintfixLicense
MIT
