A powerful web-based application that generates production-ready n8n workflow JSON configurations using AI assistance and intelligent fallback mechanisms.
- AI-Powered Generation: Uses Google's Gemini 2.5 API for intelligent workflow creation
- Fallback System: Reliable local generation when AI services are unavailable
- Multiple Trigger Types: Support for webhook, schedule, and manual triggers
- Complexity Levels: Simple (2-3 nodes), Medium (4-6 nodes), Complex (7+ nodes)
- Pre-built Templates: Common automation scenarios ready to use
- Real-time Validation: Ensures generated workflows are n8n-compatible
- Export Options: Copy to clipboard or download as JSON file
- Responsive Design: Works on desktop and mobile devices
- Clone or download this repository
- Open
index.html
in your web browser - Configure API Key (optional):
- Edit
script.js
- Replace
YOUR_GEMINI_API_KEY
with your actual Gemini API key - Get your API key from Google AI Studio
- Edit
- Describe your workflow in the text area
- Select trigger type: Webhook, Schedule, or Manual
- Choose complexity level: Simple, Medium, or Complex
- Click "Generate Workflow"
- Copy or download the generated JSON
- Select a template from the dropdown:
- Lead Processing
- Data Synchronization
- Notification System
- API Integration
- Webhook to Database
- Customize the description if needed
- Generate and export your workflow
Description: "Receive customer data via webhook and store it in a MySQL database"
Trigger: Webhook
Complexity: Simple
Description: "Process incoming leads, validate data, enrich with external APIs, and notify sales team via Slack"
Trigger: Webhook
Complexity: Complex
- Triggers: Webhook, Schedule, Manual
- HTTP: HTTP Request, Respond to Webhook
- Processing: Code (JavaScript), Set (Data manipulation)
- Logic: IF (Conditional logic)
- Integrations: Slack, Gmail
- And more: Extensible architecture for additional node types
For AI-powered generation, you need a Gemini API key:
- Visit Google AI Studio
- Create a new API key
- Replace
YOUR_GEMINI_API_KEY
inscript.js
Note: The application works without an API key using the fallback generator.
Edit the templates
object in script.js
:
'your-template': {
description: 'Your template description...',
complexity: 'medium'
}
Extend the node creation methods in the PerfectN8nGenerator
class:
createYourCustomNode(id, x) {
return {
parameters: { /* your parameters */ },
id: this.generateNodeId(),
name: 'Your Node Name',
type: 'n8n-nodes-base.yourNodeType',
typeVersion: 1,
position: [x, 300]
};
}
├── index.html # Main HTML file
├── style.css # Styling and responsive design
├── script.js # Core application logic
└── README.md # This file
- Chrome: 88+
- Firefox: 85+
- Safari: 14+
- Edge: 88+
- Clone the repository
- Open in your preferred editor
- Use a local server for development:
# Python python -m http.server 8000 # Node.js npx serve . # PHP php -S localhost:8000
The application includes built-in validation for:
- Workflow structure compliance
- Required field validation
- Node connection integrity
- n8n compatibility checks
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
MIT License - see LICENSE file for details
- Issues: Report bugs and request features via GitHub Issues
- Documentation: Check the n8n documentation for node-specific details
- Community: Join the n8n community for workflow automation discussions
- Visual workflow editor
- More integration node types
- Workflow templates library
- Advanced error handling patterns
- Batch workflow generation
- n8n direct import integration
Made with ❤️ for the n8n automation community