metadata
title: n8n Workflow Generator
emoji: π
colorFrom: red
colorTo: green
sdk: gradio
sdk_version: 4.16.0
app_file: app.py
pinned: false
license: apache-2.0
n8n Workflow Generator
Generate n8n workflows using natural language! This app uses a fine-tuned Qwen2.5-Coder-1.5B model to convert plain English descriptions into working n8n workflows.
π― Performance
- Overall Test Score: 92.4%
- Training Examples: 247 curated workflows
- Validation Examples: 44
π Features
- Natural Language Input: Describe workflows in plain English
- Visual Preview: See your workflow nodes and connections
- TypeScript DSL: Get clean, production-ready code
- n8n JSON Export: Import directly into your n8n instance
- Adjustable Parameters: Control creativity and output length
π Test Results by Category
| Category | Score |
|---|---|
| Basic Workflows | 100% |
| Complexity | 96% |
| Error Handling | 80% |
| Loops | 67% |
| Branching | 67% |
| Overall | 92.4% |
π‘ Example Prompts
Try these prompts to see what the model can do:
- "Create a webhook that sends data to Slack"
- "Schedule that runs daily and backs up database to Google Drive"
- "Webhook receives form data, validates email, saves to Airtable"
- "Monitor RSS feed and post new items to Twitter"
- "Fetch GitHub issues, if priority is high send to Slack, else email"
π οΈ How It Works
- Input: You describe your workflow in natural language
- Generation: Fine-tuned Qwen2.5-Coder-1.5B generates TypeScript DSL
- Conversion: Code is converted to n8n JSON format
- Visualization: Workflow structure is displayed visually
- Export: Copy and import into your n8n instance
π Model Details
- Base Model: Qwen/Qwen2.5-Coder-1.5B-Instruct
- Fine-tuning Method: LoRA (Low-Rank Adaptation)
- Dataset: Curated n8n workflows from GitHub
- Training Framework: Transformers + PEFT
π Training Details
- LoRA Rank: 16
- LoRA Alpha: 32
- Learning Rate: 2e-4
- Training Strategy: Early stopping with validation monitoring
- Hardware: NVIDIA Tesla T4 GPU
π Usage Tips
- Be specific: More details = better results
- Use n8n terminology: Mention specific nodes like "webhook", "Slack", "HTTP Request"
- Describe the flow: "When X happens, do Y, then Z"
- Adjust temperature: Lower (0.1-0.3) for consistency, higher (0.5-0.8) for creativity
π§ Limitations
- Works best with common n8n patterns
- May struggle with very complex branching (>5 conditions)
- Advanced error handling might need manual refinement
- Custom node configurations may need adjustment
π License
Apache 2.0
π Acknowledgments
Built with: