# n8n workflow generator

> Generate, customize, and validate importable n8n workflow JSON files for business automation.

n8n workflow generator is a free AI agent skill on Agensi by Matteo “ICosi” Luca, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Matteo “ICosi” Luca](https://www.agensi.io/creators/matteo-icosi-luca)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/n8n-workflow-generator
- Tags: automation, n8n, json, workflow-automation, crm

## About this skill

Building n8n automations manually involves fighting with JSON schemas, node connections, and credential placeholders. This skill eliminates the manual labor by generating, customizing, and validating complete, importable n8n workflow JSON files for common business processes.

### What it does
- **JSON Generation** creates valid n8n workflow structures including nodes, connections, and positions.
- **Template Adaptation** modifies pre-built templates for lead gen, invoicing, and booking to fit specific needs.
- **Logic Routing** configures IF nodes, sentiment analysis, and data scoring filters.
- **Credential Scaffolding** maps required authentication fields using secure placeholders.
- **Structural Validation** runs integrity checks on node names and connection graphs to ensure import success.

### How it works
1. **Requirements Gathering** where you define triggers, data payloads, and business logic.
2. **Template Selection** based on the built-in library for lead gen, CRM, or support.
3. **JSON Construction** generating the full workflow object with proper `typeVersion` and `position` coordinates.
4. **Validation** using a Python script to verify the connection graph is sound.

### Frameworks & tools
Specifically built for n8n automation platforms. Uses OpenAI for content/sentiment nodes and supports integrations like Google Sheets, Gmail, Slack, and Telegram.

### Why this beats prompting it yourself
Generic LLMs often hallucinate node parameters or fail to close the connection JSON properly, leading to import errors. This skill follows specific n8n node catalogs and uses a validation script to ensure the code is production-ready.

### Use cases
- Capture and score leads from webhooks before routing to a CRM.
- Automate invoice reminders based on scheduled triggers and calculations.
- Build AI-powered support triaging that routes tickets by sentiment.
- Schedule and generate social media content using OpenAI nodes.

### Known limitations
Does not store or manage actual API credentials. Requires manual credential setup in the n8n UI after import.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the n8n workflow generator skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How do I get the generated workflow into my n8n instance?

This skill generates a valid JSON file that you can directly import into your n8n instance via the 'Import from File' option. It eliminates the manual effort of dragging nodes and configuring complex JSON connections by hand.

### Can this skill generate workflows with complex branching and conditional logic?

Yes, the skill is designed to handle multi-step logic, including IF nodes, Switch nodes, and data routing filters. It ensures that the connection graph between complex branches remains structurally sound for a successful import.

### Why should I use this skill instead of asking a standard AI to write the JSON?

Generic LLMs often struggle with n8n's specific node schemas and coordinate systems, leading to 'Invalid JSON' errors upon import. This skill uses a dedicated validation script to ensure every node, version, and connection adheres to n8n’s internal requirements.

### Do I need to provide my API keys or credentials to the generator?

For security reasons, this skill generates placeholders for credentials rather than requesting your sensitive keys. Once you import the workflow into n8n, you simply click the node and select your existing saved credentials to activate the automation.

### Which n8n nodes and integrations are supported by the generator?

The skill supports a wide range of standard n8n integrations, including Google Workspace, Slack, CRM tools, and AI nodes. It specifically uses the correct 'typeVersion' for these nodes to ensure they work with current versions of the n8n platform.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
