n8n Workflow Generator

VerifiedCaution

Generates n8n workflow JSON files from user prompts for download and import. Creates minimal, ready-to-use workflows based on trigger and action requirements. Use when the user describes an automation need and wants a .json file to import directly into n8n.

Sby Skills Guide Bot
ProductivityIntermediate
6/2/2026
Claude CodeCursorWindsurfCopilotCodex
#n8n#workflow-automation#json-generation#low-code

Recommended for

Automated summary

Generates n8n workflow JSON files from user prompts for download and import into n8n.

Strengths

  • Minimal node generation
  • Ready-to-use node templates
  • JSON structure validation
  • Easy importability

Limitations

  • Requires manual credential setup
  • No support for complex branching
  • Does not generate advanced conditional logic
When to use it

When you need a quick n8n workflow skeleton based on a simple description.

When not to use it

When you need a fully configured workflow with live credentials or complex error handling.

Security analysis

Caution
Quality score90/100

The skill includes a command to run a Python script (n8n_generator.py) that is not reviewed, and the generated workflows can execute arbitrary code via Code nodes, requiring caution in deployment.

Findings
  • •Instructs execution of a Python script from a local file path, which could execute arbitrary code without sandboxing
  • •Generated n8n workflows may include user-specified logic in Code nodes, which could introduce security risks when executed
How this analysis is made

Examples

Weekly database backup to FTP
Create a weekly database backup workflow using a schedule trigger and a Postgres node, then save to FTP.
Webhook to Slack message
Set up a webhook that receives a POST request and sends a Slack message with the payload.
Form submission email notification
Build an email notification workflow triggered by a form submission via webhook.

name: generating-n8n-workflows description: Generates n8n workflow JSON files from user prompts for download and import. Use when user wants to create n8n automation, mentions workflow generation, or needs a .json file for n8n import.

n8n Workflow Generator

Generates clean, minimal n8n workflow JSON files based on user requirements.

When to use this skill

  • User wants to create an n8n workflow
  • User provides a prompt describing automation needs
  • User needs a downloadable .json file for n8n import
  • User mentions specific integrations (Slack, Email, HTTP, etc.)

Workflow

  • [ ] Parse user prompt for workflow requirements
  • [ ] Identify trigger type and action nodes needed
  • [ ] Generate minimal workflow JSON (no extra nodes)
  • [ ] Validate JSON structure against n8n schema
  • [ ] Provide download-ready .json file

Instructions

Step 1: Parse User Prompt

Extract from the user's description:

  • Trigger: What starts the workflow? (webhook, schedule, manual, trigger-node)
  • Actions: What should happen? (send email, HTTP request, database operation)
  • Integrations: Which services? (Slack, Gmail, PostgreSQL, etc.)
  • Data flow: How does data move between nodes?

Step 2: Node Selection Rules

CRITICAL: Generate ONLY necessary nodes. No extras.

| User Needs | Minimal Nodes | |------------|---------------| | "Send Slack message daily" | Schedule Trigger → Slack | | "HTTP webhook to save data" | Webhook → HTTP Request | | "Email on form submit" | Webhook → Send Email | | "Database backup weekly" | Schedule → Postgres → FTP |

Forbidden extras:

  • No debug nodes
  • No unnecessary Set nodes
  • No extra HTTP requests
  • No duplicate triggers
  • No unused credentials placeholders

Step 3: Generate Workflow JSON

Required structure:

{
  "name": "Workflow Name",
  "nodes": [
    {
      "id": "uuid",
      "name": "Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [250, 300],
      "parameters": {}
    },
    {
      "id": "uuid",
      "name": "Action",
      "type": "n8n-nodes-base.slack",
      "position": [450, 300],
      "parameters": {}
    }
  ],
  "connections": {
    "Trigger": {
      "main": [[{"node": "Action", "type": "main", "index": 0}]]
    }
  }
}

Step 4: Position Guidelines

  • Start trigger at [250, 300]
  • Each subsequent node: +200 on X axis
  • Keep Y at 300 for simple flows
  • Use [250, 200] and [250, 400] for branches

Step 5: Common Node Templates

Webhook Trigger:

{
  "id": "{{uuid}}",
  "name": "Webhook",
  "type": "n8n-nodes-base.webhook",
  "typeVersion": 1,
  "position": [250, 300],
  "webhookId": "{{random-id}}",
  "parameters": {
    "httpMethod": "POST",
    "path": "{{unique-path}}",
    "responseMode": "responseNode"
  }
}

HTTP Request:

{
  "id": "{{uuid}}",
  "name": "HTTP Request",
  "type": "n8n-nodes-base.httpRequest",
  "typeVersion": 4.1,
  "position": [450, 300],
  "parameters": {
    "method": "GET",
    "url": "",
    "sendBody": false
  }
}

Slack:

{
  "id": "{{uuid}}",
  "name": "Slack",
  "type": "n8n-nodes-base.slack",
  "typeVersion": 2,
  "position": [450, 300],
  "parameters": {
    "operation": "post",
    "channel": "",
    "text": ""
  }
}

Send Email:

{
  "id": "{{uuid}}",
  "name": "Send Email",
  "type": "n8n-nodes-base.emailSend",
  "typeVersion": 2,
  "position": [450, 300],
  "parameters": {
    "toEmail": "",
    "subject": "",
    "text": ""
  }
}

Schedule Trigger:

{
  "id": "{{uuid}}",
  "name": "Schedule Trigger",
  "type": "n8n-nodes-base.scheduleTrigger",
  "typeVersion": 1.1,
  "position": [250, 300],
  "parameters": {
    "rule": {
      "interval": [
        {
          "field": "hours",
          "hoursInterval": 1
        }
      ]
    }
  }
}

Code Node:

{
  "id": "{{uuid}}",
  "name": "Code",
  "type": "n8n-nodes-base.code",
  "typeVersion": 2,
  "position": [450, 300],
  "parameters": {
    "jsCode": "// Add your code here\nreturn items;"
  }
}

Step 6: Connection Rules

Format connections array:

{
  "connections": {
    "SourceNodeName": {
      "main": [
        [
          {
            "node": "TargetNodeName",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

For multiple outputs, increment the inner array index.

Scripts

Generate workflow using the helper:

python .agent/skills/generating-n8n-workflows/scripts/n8n_generator.py \
  --prompt "Send Slack message when webhook received" \
  --output workflow.json

Examples

Example 1: Simple Webhook to Slack

User Prompt: "When I send a webhook, post to Slack"

Generated Nodes: 2 (Webhook → Slack)

See: examples/webhook-slack-example.json

Example 2: Daily Email Report

User Prompt: "Send daily email at 9 AM"

Generated Nodes: 2 (Schedule → Email)

See: examples/schedule-email-example.json

Example 3: HTTP API Call

User Prompt: "Call an API every hour and save response"

Generated Nodes: 2 (Schedule → HTTP Request)

See: examples/schedule-http-example.json

Validation Checklist

Before returning JSON:

  • [ ] Only necessary nodes included
  • [ ] All nodes have unique UUIDs
  • [ ] All nodes have unique names
  • [ ] Connections reference existing node names
  • [ ] Positions are reasonable (no overlaps)
  • [ ] JSON is valid (no trailing commas)
  • [ ] No credential values hardcoded
  • [ ] Workflow name is descriptive

Resources

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/n8n-workflow-generator-mm5t8c97/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/n8n-workflow-generator-mm5t8c97' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/n8n-workflow-generator-mm5t8c97/download' --output '.skill-downloads/n8n-workflow-generator-mm5t8c97/SKILL.md.part' && mv '.skill-downloads/n8n-workflow-generator-mm5t8c97/SKILL.md.part' '.skill-downloads/n8n-workflow-generator-mm5t8c97/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/n8n-workflow-generator-mm5t8c97/SKILL.md' && test -s '.skill-downloads/n8n-workflow-generator-mm5t8c97/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/generating-n8n-workflows' && cp -R '.skill-downloads/n8n-workflow-generator-mm5t8c97' '.claude/skills/generating-n8n-workflows'

Cursor
test -f '.skill-downloads/n8n-workflow-generator-mm5t8c97/SKILL.md' && test -s '.skill-downloads/n8n-workflow-generator-mm5t8c97/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/generating-n8n-workflows' && cp -R '.skill-downloads/n8n-workflow-generator-mm5t8c97' '.cursor/skills/generating-n8n-workflows'

Codex
test -f '.skill-downloads/n8n-workflow-generator-mm5t8c97/SKILL.md' && test -s '.skill-downloads/n8n-workflow-generator-mm5t8c97/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/generating-n8n-workflows' && cp -R '.skill-downloads/n8n-workflow-generator-mm5t8c97' '.agents/skills/generating-n8n-workflows'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/n8n-workflow-generator-mm5t8c97'

openskills read 'n8n-workflow-generator-mm5t8c97'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/n8n-workflow-generator-mm5t8c97/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills