Add n8n Workflow Automation Connector #1119
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
Issue #914 requested integration with n8n, a popular open-source workflow automation platform. Users wanted the ability to search and retrieve their n8n workflow definitions and execution history through Airweave, enabling AI agents to understand and query their automation workflows.
The issue was initially vague - it simply requested "n8n connector" without specifying:
Problem Identification
After analyzing the request, I identified the following requirements:
Data to Index: n8n stores two primary types of data worth searching:
Authentication: n8n uses API key authentication via the
X-N8N-API-KEYheader, requiring:Key Use Cases:
Technical Challenges:
Solution Design
I designed a solution following Airweave's existing connector patterns:
Architecture Decisions
Two Entity Types:
Hierarchical Structure:
Configuration Options:
Authentication Strategy:
Error Handling:
Implementation
Components Delivered
1. Entity Schemas
Created two entity schemas that define the data structure:
2. Authentication Config
Implemented URL + API key authentication with:
3. Source Configuration
Added configurable options:
4. Source Connector
Built the main connector with:
5. Comprehensive Testing
Wrote 13 unit tests covering:
6. Frontend Integration
Testing Strategy
Since n8n API requires a paid plan or self-hosted instance, I:
The mocked API responses include:
✅ Results
What Works
Test Coverage
Related
Summary by cubic
Adds an n8n connector that syncs workflows and optional execution history into Airweave for search and analysis. Implements direct API key auth with URL normalization and supports common queries like “find workflows using X” and “show failed runs.” Fixes #914.
Written for commit c7290d5. Summary will update automatically on new commits.