Generated banner for N8n Node Configuration Official
Generated logo for N8n Node Configuration Official

N8n Node Configuration Official

n8nOfficialPublished by n8n

  • Skill
  • Tool integration
  • Automation and integrations
  • Apache-2.0
  • No issues found

From the author

Use when configuring any n8n node: HTTP, webhooks, database, comms (Slack/Gmail/Discord), AI, triggers, Merge, anything. Triggers on any node-builder call (`node(...)`, `trigger(...)`, `tool(...)`, `memory(...)`, `languageModel(...)`, `ifElse(...)`, `merge(...)`, etc.), configuring a parameter, `useDataOfInput`, `numberOfInputs`, fan-in convergence, or any node-specific debugging.
— the description by n8n

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides the definitive methodology for configuring n8n nodes. It emphasizes using live tool outputs over memory to determine parameter shapes, ensuring that developers avoid cryptic validation errors caused by evolving node definitions. It covers the full lifecycle of node configuration, from initial discovery and discriminator selection to resource grounding and final validation.

What it does

  • Defines the standard workflow for discovering and configuring any n8n node.
  • Explains how to use discriminators like resource, operation, and mode to fetch correct parameter shapes.
  • Provides patterns for resolving dynamic values using load-options and search methods.
  • Outlines the use of validation tools to debug configurations mid-build.
  • Offers specific guidance for common node categories including HTTP, AI, and communication nodes.
  • Lists anti-patterns to avoid, such as hardcoding credentials or relying on stale node configurations.

When to use it

  • When you are adding a new node to an n8n workflow.
  • When you encounter validation errors or 'field does not exist' messages.
  • When you need to configure complex nodes like AI Agents, Slack, or database connectors.
  • When you are unsure about the required parameters for a specific operation.
  • When you need to resolve dynamic resource IDs like channel names or database tables.

Advantages

  • Prevents common configuration errors by relying on live, canonical schema data.
  • Reduces development time by providing a clear, step-by-step configuration flow.
  • Ensures workflows are robust and less prone to breaking during n8n version updates.
  • Promotes secure practices by enforcing the use of credentials over hardcoded tokens.

Usage examples

“How do I configure a Slack node to send a message?”
The agent will guide you to first use get_node_types with the correct resource and operation, then use explore_node_resources to find the correct channel ID, and finally build the configuration using the returned schema.
“I am getting a validation error on my Postgres node, what should I do?”
The agent will instruct you to re-fetch the node type with your specific operation (e.g., executeQuery) and verify that all required conditional fields are present, rather than guessing based on previous configurations.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/n8n-io/n8n-node-configuration-official/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip n8n-node-configuration-official.zip -d .agents/skills

Documentation by n8n

n8n Node Configuration

Each n8n node has its own parameter shape, often with conditional fields (parameter X only matters when parameter Y has value Z). Shapes evolve between versions. Guessing produces cryptic validation errors.

Don't guess, use the get_node_types tool.

Non-negotiable

Call get_node_types with discriminators (resource, operation, mode) before configuring a node. Without discriminators you get the generic shape, missing operation-specific parameters and required fields. Build against the exact shape. Don't guess from memory.

The live get_node_types output is the canonical parameter shape. The references in this skill cover patterns, gotchas, security rules, and decision-making (when to use which operation, why credentials over text fields, engine retry caps, etc.) not parameter names or field structures. If a reference example conflicts with what get_node_types returns, trust the tool. Markdown drifts; the type def is generated from the live source.

Never guess resource-locator or load-options values. When get_node_types shows a param with @searchListMethod or @loadOptionsMethod (Slack channels, Sheets tabs/docs, DB tables/columns, model lists, labels), resolve the real value with explore_node_resources (pass a credentialId from list_credentials) and use a returned value. If you already know the exact ID, use it; if several match and intent is ambiguous, ask the user. An invented ID validates but points at nothing. Exception: toolWorkflow.workflowId has no search method, resolve it via search_workflows and use mode: 'id'.

Strong defaults

  • Configure operation-first. Set resource and operation first, and conditional parameters become visible. Most "field doesn't exist" errors are really "you haven't set the parent operation yet."

  • Don't carry parameters across operations. When changing operation, re-derive from the new shape. Stale parameters from the previous operation trip validation.

The flow for any new node

1. search_nodes(['<capability keyword>'])
   → returns matching node IDs + discriminators
2. Pick the right (resource, operation) for the task.
3. get_node_types([{ name: '...', resource: '...', operation: '...' }])
   → returns exact parameter shape including conditional fields
4. For any RLC / load-options param in that shape, ground the real value:
   explore_node_resources({ nodeType, version, methodName, methodType, credentialType, credentialId, currentNodeParameters? })
   → use a returned `value`. Don't invent IDs.
5. Build the node config from that shape.
6. validate_workflow → fix errors.
7. get_workflow_details → inspect the saved config; confirm parameters landed.
8. test_workflow with pinned data → confirm runtime behavior.

Skipping any step compounds the next. The most common skip is step 3, leading to "Cannot read property X" errors that are really "you didn't pass the discriminators."

validate_node_config as a side-channel

validate_node_config([{ type, typeVersion, parameters, isToolNode? }]) runs the same Zod schema as validate_workflow on isolated node configs. Schema-level only; doesn't replace validate_workflow (still the publish gate). Cleaner signal for:

  • Iterating on a single node mid-build. Faster than re-running validate_workflow per tweak.

  • Small edits to an existing workflow. Wiring unchanged? Check the one node you touched; full validate before publish.

  • Debugging a misconfigured node. Per-parameter errors with no graph noise.

For tool subnodes (wired via ai_tool), set isToolNode: true so the correct displayOptions branch evaluates.

Operation-aware configuration

Most nodes have a top-level shape like:

{
  resource: '<thing being operated on>',   // 'message', 'spreadsheet', 'user', etc.
  operation: '<verb>',                      // 'send', 'append', 'lookup', etc.
  // ...operation-specific parameters
}

The (resource, operation) pair determines what other parameters exist (e.g., Slack (message, send) differs from (user, info)).

Pattern:

  1. Set resource and operation first.

  2. Re-fetch get_node_types with those discriminators if you didn't initially.

  3. Configure the rest from the operation-specific shape.

Property dependencies: the subtle trap

Some parameters depend on others in non-obvious ways:

  • A field is required only when another field has a specific value.

  • A field accepts different types depending on a mode.

  • A field's options come from another field's value.

Examples:

  • HTTP Request authentication: 'genericCredentialType' requires genericAuthType and credentials, but 'predefinedCredentialType' requires a different shape.

  • Postgres operation: 'executeQuery' requires query, while operation: 'select' requires table and columns.

  • Slack messageType: 'block' enables block-builder fields absent from messageType: 'text'.

Always inspect via get_node_types for the specific operation. Don't reuse a config from a different operation and expect it to validate.

Options-from-another-field is a @loadOptionsMethod: resolve the live options with explore_node_resources (methodType: 'loadOptions'), passing prior selections via currentNodeParameters when the method depends on them (e.g. listing a spreadsheet's tabs needs documentId).

Reference files

Per-category gotchas. Read the file for the node type you're configuring:

FileWhen to read
references/HTTP_NODES.mdConfiguring HTTP Request: auth, pagination, query/body parameters, retries
references/WEBHOOK_NODES.mdConfiguring Webhook trigger or Respond to Webhook: body parsing, response shape, async patterns
references/COMMS_NODES.mdSlack, Gmail, Discord, email: credential types, message shapes, attachments
references/DATABASE_NODES.mdPostgres, MySQL, Mongo, Supabase: query vs operation, parameter binding, error handling
references/AI_NODES.mdAI Agent node config knobs: streaming, vision, maxIterations, retries on the model sub-node. Defers design (prompts, tools, memory, structured output) to n8n-ai-nodes-official
references/TRIGGER_NODES.mdWebhook, Schedule, Manual, Execute Workflow Trigger: input schemas, polling vs realtime
references/SWITCH_FALLBACK.mdConfiguring a Switch node: unnamed outputs / missing fallback silently drop unmatched items
references/MERGE_NODE.mdConfiguring a Merge node, or you see useDataOfInput, numberOfInputs, or branches converging

Anti-patterns

Anti-patternWhat goes wrongFix
Building node config from memory of how the node looked last yearParameter shape has drifted, validation fails with cryptic errorsAlways get_node_types per session per node
Skipping discriminators in get_node_typesGet generic shape, miss operation-specific required fieldsAlways pass resource + operation (and mode where present)
Copying a node config from one operation to another and tweakingStale parameters trip validation, and conditional fields don't applyRe-derive from the new operation's shape
Hardcoding tokens / credentials in node text fieldsLeaks on export. See n8n-credentials-and-security-officialAlways credentials
Not testing the node with test_workflow after configuringRuntime errors only surface on real dataAlways test with pinned data before publish

Files

references/DATABASE_NODES.md

Database nodes: Postgres, MySQL, MongoDB, Supabase

DB nodes share patterns around query construction, parameter binding, and error handling. Exact field shapes vary; get_node_types is canonical. This file covers security, decisions, and gotchas not in the type def.

Always parameterize, never concatenate

Critical. Never interpolate user input into the query string. n8n substitutes {{ ... }} expressions into the query text before parameter binding, so anything in {{ }} becomes part of the SQL itself, not a bound value.

// ❌ DON'T: n8n substitutes the expression into the SQL string before binding.
//          $json.email = "x'; DROP TABLE users; --" → game over.
{
    operation: 'executeQuery',
    query: "=SELECT * FROM users WHERE email = '{{ $json.email }}'",
}

// ✅ DO: use $1, $2, ... placeholders + options.queryReplacement.
//        Values go through pg_promise's parameter binding, never touch the SQL text.
{
    operation: 'executeQuery',
    query: 'SELECT * FROM users WHERE email = $1',
    options: {
        queryReplacement: '={{ $json.email }}',
    },
}

options.queryReplacement accepts a comma-separated list (value1,value2,value3) or expressions that resolve to values (={{ $json.email }},={{ $json.id }}). Each comma-separated piece becomes one parameter, referenced as $1, $2, ... in the query. The = prefix on queryReplacement is just n8n's expression-mode marker. What matters is that the values flow via the option, not interpolated into the query.

Postgres and the n8n MySQL node both use $1, $2, ... via options.queryReplacement. Mongo uses object filters. Treat any pattern that puts user input into the query string as a critical injection vulnerability.

Postgres

executeQuery vs structured operations
  • executeQuery: raw SQL with parameters. Most flexible. Use for joins, CTEs, window functions.

  • select / insert / update / upsert / deleteTable: n8n builds the SQL. Less flexible but less footgun-prone for simple cases. Their table (and schema) are @searchListMethod lookups: resolve real names via explore_node_resources.

Note: "Delete" maps to operation: 'deleteTable' (display vs internal-value mismatch).

Returning rows

executeQuery returns rows as items. Zero rows produces no items, downstream nodes may treat as "skip." Set alwaysOutputData: true to flow through a single empty item, or branch on the count.

MySQL

Despite MySQL's native ? placeholder syntax, the n8n MySQL node uses $1, $2, ... and options.queryReplacement, same as Postgres. The node normalizes to the driver. Same parameter-binding rules from "Always parameterize" at the top apply unchanged.

Beyond that, differences from Postgres are general MySQL behavior (operator availability, AUTO_INCREMENT semantics) and not n8n-specific. Inspect get_node_types for the operation set, which differs slightly.

MongoDB

Filters are JSON objects, not SQL. The n8n MongoDB node has the usual operations (find, insert, update, delete, aggregate, plus findOneAndUpdate / findOneAndReplace) and most n8n-specific surface lives in get_node_types. For complex queries (aggregation pipelines, $lookup joins) use aggregate. For document writes, the node splits items into separate writes by default; bulk-write via the relevant batch option.

Supabase

Wraps PostgREST. Uses Supabase's REST API, not direct DB connections.

Power-user tip: prefer the Postgres node for non-trivial work

For anything beyond per-row CRUD (joins, CTEs, window functions, aggregations, RPC calls), the Postgres node connecting directly to your Supabase database is strictly more powerful than the Supabase REST node, full SQL surface against the same data. The tradeoff is auth: the Postgres node needs the direct DB connection details (host, port, database, user, password) from your Supabase project's database connection settings, not the project URL + anon key. One-time setup, then it's a normal Postgres workflow.

Same security rules apply: never interpolate user input into the query string, always use $1, $2, ... + options.queryReplacement (see "Always parameterize" at top). RLS doesn't apply to direct DB connections, so the service_role vs anon distinction goes away too. Your queries see all rows.

Operation values: "Get Many" → 'getAll'

Display vs internal-value mismatch (not 'getMany').

Missing filter conditions

If you expect isTrue / isFalse / isNull / in as separate conditions, they don't exist. Use condition: 'is' with keyValue: 'null' | 'true' | 'false' | 'unknown'. Inspect get_node_types for the supported set.

Default-value pattern for missing input

When a filter value comes from optional input, default it to a known-empty value:

keyValue: `={{ $json.id || "305f7106-6988-4651-b26a-18979641b7b5" }}`,

Avoids "filter on undefined" errors that produce empty result sets or 400s.

RLS gotcha

Supabase uses Row-Level Security by default. Empty results when you expect data is usually:

  • Wrong credential role: anon respects RLS, service_role bypasses it.

  • Backend workflows usually want service_role. Public-facing APIs want anon with proper RLS.

Common patterns across DB nodes

Handle the "no rows" case

After select / find, zero matches yields zero items and downstream nodes silently skip. Either set alwaysOutputData: true to flow through an empty item, or branch on the lookup with an IF and feed defaults via Set on the no-match path.

Upsert when you don't know if the row exists

Postgres' INSERT ... ON CONFLICT DO UPDATE (or n8n's upsert operation) is cleaner than:

SELECT → IF exists → UPDATE
                  └─→ INSERT

Two queries become one, race conditions disappear.

Transactions

Postgres and MySQL support transactions natively via options.queryBatching: 'transaction' (default 'single', also 'independently') on executeQuery. All queries the node executes in that run go through one BEGIN/COMMIT; any failure rolls everything back. The canonical use is multiple input items each driving one query, executed atomically by a single Postgres / MySQL node.

{
    operation: 'executeQuery',
    query: 'INSERT INTO orders (customer_id, total) VALUES ($1, $2)',
    options: {
        queryBatching: 'transaction',
        queryReplacement: '={{ $json.customerId }},={{ $json.total }}',
    },
}

Supabase wraps PostgREST and has no transaction support at the REST layer. For atomic multi-step writes against Supabase, drop to the Postgres node connecting to the same database (see the "Power-user tip" above) and use queryBatching: 'transaction'.

MongoDB is a different story (see its own docs for session-based transactions); the n8n MongoDB node doesn't expose them directly.

Across multiple n8n nodes, there's still no transaction. Atomicity is bounded to one executeQuery invocation. If you find yourself wanting cross-node atomicity, redesign the workflow so the writes that must succeed or fail together live in a single executeQuery node with queryBatching: 'transaction'. Pre-compute everything you need upstream (lookups, validations, derived values) so the transactional node receives ready-to-write data, then express the multi-step write as multiple SQL statements (semicolon-separated, or one per input item) all going through the same node. The non-transactional work stays outside; the transactional work collapses inward.

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs Node.js

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
n8n
Publisher
n8n (Official)
Source
n8n-io/skills · skills/n8n-node-configuration-official · commit 27b6b9f
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by n8n.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download n8n-node-configuration-official.zip