n8n Agentic Chat
n8n - Transform your workflow creation with AI-powered agentic assistance
An intelligent Chrome extension that brings Cursor-style agentic workflow editing to n8n. Create, modify, analyze, and debug workflows using natural language with multi-step autonomous execution.
Features
Agentic Multi-Step Execution
- Autonomous workflow creation: AI automatically executes ALL required steps until completion
- Multi-step planning: AI breaks down complex requests into actionable steps
- Continuous execution: Never stops mid-task - completes the entire workflow automatically
- Smart continuation: Context-aware guidance after each function execution
Modern Chat Interface
- Glassmorphism design with animated gradients and smooth transitions
- Real-time streaming responses with typing effect
- Function execution badges with status icons and animations
- Smart timestamps with automatic message grouping
- Drag-and-drop positioning with persistent layout
- Enhanced markdown support (code blocks, links, formatting)
Intelligent Workflow Management
- Create workflows from natural language descriptions
- Modify existing nodes with context-aware updates
- Analyze workflows for architecture, performance, and security issues
- Debug workflows with integrated real-time logging
- Auto-fix issues detected during analysis
- Smart node selection: Prefers dedicated service nodes over generic HTTP requests
Advanced Connection Handling
- Automatic connection of newly created nodes
- Ghost connection cleanup prevents workflow corruption
- Vue reactivity sync eliminates race conditions
- Connection verification ensures workflow integrity
Multi-Provider AI Support
- OpenAI (GPT-4, GPT-3.5, o1, o3)
- Anthropic (Claude 3.5 Sonnet, Opus, Haiku)
- Google (Gemini 2.5 Pro, Flash)
- DeepSeek (DeepSeek R1, DeepSeek Chat)
- OpenRouter (Meta Llama, Mistral, and more)
- Groq (Ultra-fast inference)
- Cohere (Command models)
- Local LLM (Ollama, LM Studio, etc.)
Real-Time Debugging
- Integrated debug server with WebSocket support
- Function call logging with full argument tracking
- Error tracking with stack traces and context
- Session summaries with operation metrics
- Toggle on/off directly from extension popup
Language Consistency
- Automatic language detection: Responds in the same language as userβs input
- Supports Turkish, English, Spanish, and more
- Never switches languages mid-conversation
Installation
Prerequisites
- Google Chrome or Chromium-based browser (Edge, Brave, etc.)
- n8n instance (cloud or self-hosted)
- API key from one of the supported AI providers (optional for local LLM)
Install from Chrome Web Store
- Visit the [Chrome Web Store](coming soon)
- Click βAdd to Chromeβ
- Pin the extension to your toolbar
Install from Source
-
Clone the repository:
git clone https://github.com/eros1sh/n8n-workflow-agent.git cd n8n-workflow-agent -
Load the extension in Chrome:
- Open Chrome and navigate to
chrome://extensions/ - Enable βDeveloper modeβ (top right)
- Click βLoad unpackedβ
- Select the
extensionfolder
- Open Chrome and navigate to
-
Configure your API keys:
- Click the extension icon in your toolbar
- Go to Settings β API tab
- Select your preferred AI provider
- Enter your API key
- Click βSaveβ
Usage
Getting Started
-
Navigate to n8n:
- Open your n8n workflow editor (e.g.,
https://app.n8n.cloud/workflow/...)
- Open your n8n workflow editor (e.g.,
-
Activate the extension:
- Click the extension icon
- Click βActivate on Current Pageβ
- A floating chat button will appear in the bottom right
-
Start chatting:
- Click the floating chat button (
) - Type your request in natural language
- Press Enter or click βSendβ
- Click the floating chat button (
Example Prompts
Create Workflows
Create a workflow that:
- Gets data from Supabase
- Summarizes content with AI
- Sends result to Telegram
Modify Workflows
Replace all Google Sheets nodes with Supabase nodes
Analyze Workflows
Analyze this workflow for performance and security issues
Debug Workflows
Why isn't my webhook trigger working?
Get Information
Show me the workflow structure and connections
Key Concepts
Agentic Execution Model
The extension operates in agentic mode, meaning it autonomously executes multiple steps to complete complex tasks:
- User Request: βReplace Google Sheets with Supabaseβ
- AI Planning: Breaks down into steps:
- Get workflow info
- Remove Google Sheets nodes
- Create Supabase nodes
- Connect new nodes
- Clean layout
- Validate workflow
- Autonomous Execution: AI executes ALL steps sequentially without stopping
- Verification: AI confirms completion and reports results
No manual intervention required - the AI handles the entire workflow lifecycle.
Smart Node Selection
The AI automatically prefers dedicated service nodes over generic HTTP requests:
| User Intent | Selected Node Type |
|---|---|
| βUse OpenAIβ | @n8n/n8n-nodes-langchain.openAi |
| βConnect to Supabaseβ | n8n-nodes-base.supabase |
| βSend to Telegramβ | n8n-nodes-base.telegram |
| βGoogle Sheetsβ | n8n-nodes-base.googleSheets |
| βPostgreSQL databaseβ | n8n-nodes-base.postgres |
HTTP Request node is used ONLY when no dedicated node exists.
Connection Management
Every created node is automatically connected to the workflow:
Trigger β Processing β AI/Logic β Storage/Output
Rules enforced:
- No floating/orphan nodes
- Logical flow maintained
- All connections verified
- Ghost connections cleaned up
Configuration
Chat Settings
Navigate to Settings β Chat:
- Include Workflow Context: Send current workflow data with each request
- Node Creation: Allow AI to create new nodes
- Node Editing: Allow AI to modify node parameters
- Node Removal: Allow AI to delete nodes
- Workflow Access: Allow AI to read workflow information
- Node Library Access: Allow AI to browse available node types
Advanced Settings
- Temperature (0.0 - 1.0): Controls response creativity (lower = deterministic, higher = creative)
- Max Tokens: Maximum tokens for AI response (higher = longer responses, more expensive)
- Top P (0.0 - 1.0): Controls response diversity
- Reasoning Level: For reasoning models (o1, o3) - low/medium/high
Debugging
Enable Debug Mode
- Open extension popup
- Navigate to βDebugβ tab
- Toggle βEnable Debug APIβ
- Chat will now log all function calls and responses
Debug Server (Optional)
For advanced debugging with WebSocket support:
cd debug-server
npm install
node server.js
The debug server runs on http://localhost:3456 and provides:
- Real-time function call logging
- Error tracking with stack traces
- Session summaries
- WebSocket streaming
Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Chrome Extension β
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β content.js β Modern Chat UI & Stream Handler β
β injected.js β n8n Canvas Manipulation β
β popup.js β Settings & Configuration β
β background/ β API Handlers (Multi-Provider) β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β (Function Calls)
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β n8n Workflow Editor β
βββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Vue.js App β Pinia Store β Canvas Operationsβ
βββββββββββββββββββββββββββββββββββββββββββββββββββ
Key Components
content.js: Chat UI, message streaming, conversation historyinjected.js: Direct n8n canvas manipulation, node CRUD, connection managementpopup.js: Extension settings, API configuration, debug controlsbackground/api-handlers.js: Multi-provider AI streaming handlerslib/storage.js: Secure Chrome storage for settings and API keys
Security & Privacy
Data Handling
- API keys are stored securely in Chromeβs encrypted storage
- No telemetry or usage tracking
- No server-side processing - all AI requests go directly to your chosen provider
- Local-first: Chat history stored locally in your browser
Permissions Explained
storage: Save settings and API keys locallyscripting: Inject content scripts into n8n pagestabs: Detect n8n workflow pagesactiveTab: Access current tab for activationhost_permissions: Connect to AI provider APIs and local debug server
What is Sent to AI Providers?
- Your workflow structure (nodes, connections, parameters) - only when βInclude Workflow Contextβ is enabled
- Your chat messages
- Function call results
What is NOT sent:
- Credentials or API keys stored in your workflows
- Sensitive data (masked automatically)
- Your IP address or personal information (beyond what the AI provider collects)
Contributing
Contributions are welcome! Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
Development Setup
-
Clone the repo:
git clone https://github.com/eros1sh/n8n-workflow-agent.git cd n8n-workflow-agent -
Install debug server dependencies (optional):
cd debug-server npm install -
Load extension in Chrome:
- Enable Developer mode in
chrome://extensions/ - Click βLoad unpackedβ and select the
extensionfolder
- Enable Developer mode in
-
Make your changes
-
Test thoroughly on n8n workflows
-
Submit a pull request
Known Issues & Limitations
- Vue Store Access: The extension relies on n8nβs internal Vue/Pinia store structure. Future n8n updates may break compatibility temporarily.
- Race Conditions: Fixed with
waitForVueUpdate(), but edge cases may exist. - Token Limits: Large workflows may exceed model context windows. Use βLazy Loadingβ context strategy or disable βNode Library Accessβ.
- Language Switching: AI may occasionally switch languages mid-conversation (rare, fixed in v1.4.2).
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- n8n for building an amazing workflow automation platform
- OpenAI, Anthropic, Google for providing powerful AI models
- Cursor for inspiring the agentic execution model
- The n8n Community for feedback and feature requests
Star History
If you find this project useful, please consider giving it a star! ![]()