Why Use This Integration
- No-Code Memory: Build AI memory pipelines using n8n’s visual workflow editor
- Knowledge Graph Search: Query your data using natural language with graph-enhanced retrieval within n8n workflows
- Workflow Automation: Combine cognee memory with 400+ n8n integrations
- Self-Hosted Ready: Works with self-hosted n8n instances out of the box
Installation
The cognee node is available as an n8n community node. Install it directly from n8n:- Login to your self-hosted n8n
- Go to Settings → Community Nodes
- Click Install button to add a new node and search for
n8n-nodes-cognee - Click Install to complete.
For self-hosted n8n, you can quickly spin up an instance following their documentation:Don’t forget to set your timezone. After setup, access n8n at
localhost:5678.Credentials Setup
Before using the cognee node in your workflows, configure your API credentials:- Get your API key from platform.cognee.ai
- In your workflow, click + icon and search for cognee, you will see the 3 actions (add, cognify, search available)
- Click on the Add action to start
- Add your cognee credentials from the first step
| Field | Value |
|---|---|
| Base URL | https://cognee--cognee-saas-backend-serve.modal.run |
| API Key | Your key from platform.cognee.ai |
Quick Start
Build a complete Add → Cognify → Search workflow in minutes:Step 1: Add Data
Add the cognee node to your workflow and configure it:- Resource: Add Data
- Operation: Add
- Dataset Name:
my-dataset - Text Data: Your content to store
Step 2: Cognify
Process your data into cognee’s knowledge graph memory:- Resource: Cognify
- Operation: Cognify
- Datasets:
my-dataset
Step 3: Search
Query your memory using natural language:- Resource: Search
- Operation: Search
- Search Type: GraphCompletion
- Datasets:
my-dataset - Query:
Tell me about NLP - Top K:
10
Operations Reference
You can interact with your data cross platform. You can query a dataset that you already have in your Cognee Cloud or you can view and interact with your new data from n8n in Cognee Cloud thanks to your cognee credentials.Add Data
Stores text content in a cognee dataset for later processing.| Parameter | Required | Description |
|---|---|---|
| Dataset Name | Yes | Name of the dataset to store data in |
| Text Data | Yes | One or more text strings to add |
POST /api/add
Cognify
Transforms raw data into structured knowledge graph memory with embeddings.| Parameter | Required | Description |
|---|---|---|
| Datasets | Yes | One or more dataset names to process |
POST /api/cognify
Search
Queries the knowledge graph memory using semantic search.| Parameter | Required | Description |
|---|---|---|
| Search Type | Yes | Search algorithm to use |
| Datasets | Yes | Datasets to search within |
| Query | Yes | Natural language search query |
| Top K | No | Number of results to retrieve (default: 10) |
POST /api/search
Search Types
Choose the search type that best fits your use case:GraphCompletion
GraphCompletion
Combines graph traversal with vector search for comprehensive retrieval. Best for:
- General-purpose queries
- Finding related entities and relationships
- Balanced accuracy and context
ChainOfThought
ChainOfThought
Uses step-by-step reasoning over the knowledge graph. Best for:
- Complex multi-hop questions
- Queries requiring logical inference
- Detailed explanations
RagCompletion
RagCompletion
Standard RAG (Retrieval-Augmented Generation) search. Best for:
- Simple factual queries
- Direct document retrieval
- Fast response times
Use Cases
Customer Support Automation
Customer Support Automation
Build a support bot that learns from your documentation:
- Add FAQ documents, guides, and knowledge base articles
- Cognify to build searchable memory
- Search with customer questions to retrieve relevant answers
Document Intelligence Pipeline
Document Intelligence Pipeline
Process and query large document collections:
- Use n8n’s file triggers to watch for new documents
- Extract text and Add to cognee datasets
- Schedule periodic Cognify runs
- Build search interfaces or connect to chatbots
Research Assistant
Research Assistant
Create a research workflow that accumulates knowledge:
- Pull data from RSS feeds, APIs, or web scraping nodes
- Add relevant content to topic-specific datasets
- Cognify to extract entities and relationships
- Search across all research to find connections
Sales Intelligence
Sales Intelligence
Build memory from sales interactions:
- Connect CRM triggers (HubSpot, Salesforce)
- Add meeting notes, emails, and deal information
- Cognify to build relationship graphs
- Search for context before calls: “What do we know about Acme Corp?”
Example Workflow
Here’s a complete workflow configuration:Troubleshooting
| Issue | Solution |
|---|---|
| 401/403 errors | Verify your API key is correct and active |
| Connection errors | Check the Base URL and network access from your n8n host |
| Empty search results | Ensure you’ve run Cognify after adding data |