N8n cli create

From 8Dvibes/n8n-cli · View interactive version

N8n cli create is an AI agent skill from the GitHub repository 8Dvibes/n8n-cli. Build an n8n workflow from an English description. Generates valid JSON and imports it via n8n-cli. Use when creating a new workflow from scratch based on a natural-language spec.

How to use this skill

Skill file

/n8n-create — Build n8n Workflow from Description

Translate a natural language workflow description into n8n workflow JSON and import it.

Arguments

/n8n-create <description of what the workflow should do>

Procedure

Step 1: Understand Requirements

Ask clarifying questions if the description is ambiguous:

Step 2: Look Up Nodes and Credentials

# Find the right nodes for each service mentioned
n8n-cli nodes search <service-name>

# Get full property schema for each node you'll use
n8n-cli --json nodes get <node-name> --full

# Check what credentials are available on the instance
n8n-cli credentials list --json

Match required services to available credentials. Flag any missing credentials.

Step 3: Build Workflow JSON

Use the full node schemas from Step 2 to construct accurate JSON. Do NOT guess at property names or structures.

Build with:

Critical n8n JSON patterns:

Step 4: Save and Import

# Save the workflow JSON
cat > /tmp/n8n-workflow-create.json << 'WORKFLOW_EOF'
{workflow json here}
WORKFLOW_EOF

# Import to n8n
n8n-cli workflows import /tmp/n8n-workflow-create.json

# Optionally activate
n8n-cli workflows activate <returned-id>

Step 5: Verify

n8n-cli workflows get <id>

Output

Tell the user:

  1. What was created (workflow name, node count)
  2. The workflow ID
  3. Whether it's active or inactive
  4. Any credential gaps that need manual setup in the n8n UI
  5. Link format: https://aibuildlab.app.n8n.cloud/workflow/<id>

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.