Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/n8n skills/Importable-json-standard
Reference · n8n skills

Importable-json-standard

Part of n8n skills. Install the skill and your agent reads this page when it needs the depth.

Importable n8n JSON Standard

Purpose

Use this reference when producing workflow JSON intended for n8n import. The goal is not merely valid JSON; the goal is JSON that imports cleanly, is credential-safe, and gives the user a strong starting workflow.

Top-Level Shape

Use this top-level workflow object:

{
  "name": "Example / Webhook -> Process / draft",
  "nodes": [],
  "connections": {},
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "pinData": {},
  "versionId": "",
  "triggerCount": 0,
  "tags": [],
  "meta": {
    "generatedBy": "n8n-skills",
    "importNotes": []
  }
}

Keep active false or omit it unless the user explicitly asks for activation.

Node Shape

Every node should have:

{
  "parameters": {},
  "id": "stable-unique-id",
  "name": "Action: Do Something",
  "type": "n8n-nodes-base.httpRequest",
  "typeVersion": 4.2,
  "position": [600, 240]
}

Optional node keys:

Connections Shape

Connections are keyed by source node name:

{
  "Source Node": {
    "main": [
      [
        {
          "node": "Target Node",
          "type": "main",
          "index": 0
        }
      ]
    ]
  }
}

Rules:

Import-Safe Credential Handling

Generated workflows must not contain secret values. Use credential names only:

"credentials": {
  "httpHeaderAuth": {
    "id": "PLACEHOLDER_CREDENTIAL_ID",
    "name": "REPLACE_WITH_HTTP_HEADER_AUTH_CREDENTIAL"
  }
}

Prefer documenting credentials separately when exact n8n credential type is uncertain. Never embed Authorization headers, cookies, API keys, password fields, webhook signing secrets, or private URLs.

AI Agent Output Package

When the user asks for an importable workflow, produce this package:

  1. Workflow Summary — what it does.
  2. Credential Setup — credential names/types, no values.
  3. Environment Variables — names only.
  4. Import JSON — one valid JSON object.
  5. Manual Post-Import Steps — set credentials, URLs, node-specific options.
  6. Test Payloads — sample input JSON.
  7. Validation Checklist — import, manual execution, production activation.
  8. Known Limitations — node version assumptions and user-specific replacements.

JSON Generation Checklist

Before returning JSON:

When Exact Node Parameters Are Uncertain

n8n node parameter schemas can differ by n8n version and node typeVersion. If you cannot verify exact schema, provide:

Do not pretend uncertain JSON is guaranteed to import.

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.