askill
n8n-node-configuration

n8n-node-configurationSafety 82Repository

Operation-aware node configuration guidance. Use when configuring nodes, understanding property dependencies, determining required fields, setting up HTTP Request, Slack, database nodes, AI workflows, or learning common configuration patterns by node type.

0 stars
1.2k downloads
Updated 1/27/2026

Package Files

Loading files...
SKILL.md

n8n Node Configuration

Expert guidance for operation-aware node configuration.

Based on n8n-skills by Romuald Członkowski

Configuration Philosophy

Progressive disclosure: n8n shows only relevant fields based on your selections.

1. Select resource (what to work with)
2. Select operation (what to do)
3. Required fields appear based on operation
4. Optional fields available for customization

Core Concepts

Operation-Aware Configuration

Different operations require different fields:

// Slack: "Send Message" operation
{
  "resource": "message",
  "operation": "post",
  "channel": "#general",    // Required for post
  "text": "Hello!"          // Required for post
}

// Slack: "Update Message" operation
{
  "resource": "message",
  "operation": "update",
  "channel": "#general",    // Required
  "ts": "1234567890.123456", // Required for update (timestamp)
  "text": "Updated text"
}

Property Dependencies

Fields appear/disappear based on other values:

// HTTP Request node dependencies
sendBody: true
  → reveals: contentType

contentType: "json"
  → reveals: specifyBody

specifyBody: "json"
  → reveals: jsonBody

Common Node Patterns

HTTP Request Node

{
  "type": "n8n-nodes-base.httpRequest",
  "parameters": {
    "method": "POST",
    "url": "https://api.example.com/data",
    "authentication": "predefinedCredentialType",
    "sendHeaders": true,
    "headerParameters": {
      "parameters": [
        { "name": "Authorization", "value": "Bearer {{ $json.token }}" }
      ]
    },
    "sendBody": true,
    "contentType": "json",
    "specifyBody": "json",
    "jsonBody": "={{ JSON.stringify($json.data) }}"
  }
}

Webhook Node

{
  "type": "n8n-nodes-base.webhook",
  "parameters": {
    "path": "my-webhook",
    "httpMethod": "POST",
    "responseMode": "responseNode",
    "options": {
      "rawBody": true
    }
  }
}

Slack Node

{
  "type": "n8n-nodes-base.slack",
  "parameters": {
    "resource": "message",
    "operation": "post",
    "channel": { "mode": "id", "value": "C1234567890" },
    "text": "Hello from n8n!",
    "otherOptions": {
      "mrkdwn": true
    }
  }
}

PostgreSQL Node

{
  "type": "n8n-nodes-base.postgres",
  "parameters": {
    "operation": "executeQuery",
    "query": "SELECT * FROM users WHERE status = $1",
    "options": {
      "queryParams": "={{ $json.status }}"
    }
  }
}

IF Node

{
  "type": "n8n-nodes-base.if",
  "parameters": {
    "conditions": {
      "options": {
        "combinator": "and"
      },
      "conditions": [
        {
          "leftValue": "={{ $json.status }}",
          "rightValue": "active",
          "operator": { "type": "string", "operation": "equals" }
        }
      ]
    }
  }
}

Set Node

{
  "type": "n8n-nodes-base.set",
  "parameters": {
    "mode": "manual",
    "assignments": {
      "assignments": [
        { "name": "fullName", "value": "={{ $json.firstName }} {{ $json.lastName }}" },
        { "name": "createdAt", "value": "={{ $now.toISO() }}" }
      ]
    }
  }
}

Code Node (JavaScript)

{
  "type": "n8n-nodes-base.code",
  "parameters": {
    "mode": "runOnceForAllItems",
    "jsCode": "const items = $input.all();\nreturn items.map(item => ({\n  json: {\n    processed: true,\n    data: item.json\n  }\n}));"
  }
}

Schedule Trigger

{
  "type": "n8n-nodes-base.scheduleTrigger",
  "parameters": {
    "rule": {
      "interval": [{ "field": "hours", "value": 1 }]
    }
  }
}

OpenAI Node

{
  "type": "@n8n/n8n-nodes-langchain.openAi",
  "parameters": {
    "resource": "chat",
    "operation": "complete",
    "modelId": "gpt-4",
    "messages": {
      "values": [
        { "role": "user", "content": "={{ $json.prompt }}" }
      ]
    },
    "options": {
      "temperature": 0.7,
      "maxTokens": 1000
    }
  }
}

AI Workflow Configuration

AI Agent Setup

{
  "type": "@n8n/n8n-nodes-langchain.agent",
  "parameters": {
    "agent": "conversationalAgent",
    "options": {
      "systemMessage": "You are a helpful assistant."
    }
  }
}

Connection Types

ConnectionPurpose
ai_languageModelConnect LLM (OpenAI, Anthropic)
ai_toolConnect tools (HTTP, Code)
ai_memoryConnect memory (Buffer, Vector)
ai_outputParserParse structured output

Configuration Anti-Patterns

❌ Don't

// Hardcode secrets
{ "apiKey": "sk-1234..." }

// Skip authentication setup
{ "authentication": "none" }  // when auth is needed

// Use unsafe queries
{ "query": "SELECT * FROM users WHERE id = '" + $json.id + "'" }

✅ Do

// Use credentials
{ "authentication": "predefinedCredentialType" }

// Parameterized queries
{ "query": "SELECT * FROM users WHERE id = $1" }

// Use expressions safely
{ "value": "={{ $json.data }}" }

Best Practices

  1. Start with required fields - Configure the essential parameters first
  2. Test incrementally - Validate after each major change
  3. Use credentials - Never hardcode API keys
  4. Name nodes clearly - "Fetch User Data" not "HTTP Request 1"
  5. Handle errors - Configure onError behavior
  6. Document with sticky notes - Explain complex configurations

Quick Reference

NeedNodeKey Parameters
HTTP callHTTP Requestmethod, url, authentication, body
Receive HTTPWebhookpath, httpMethod, responseMode
Send messageSlackchannel, text, resource, operation
Query DBPostgres/MySQLoperation, query, options
ConditionIFconditions with operators
TransformSetassignments (name/value pairs)
Custom logicCodemode, jsCode
ScheduleSchedule Triggerrule (cron or interval)
AI chatOpenAIresource, operation, messages

Based on n8n-skills by Romuald Członkowski • Adapted for Moltbot by fazer.ai

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

88/100Analyzed 2/24/2026

High-quality technical reference skill for n8n node configuration. Comprehensive coverage of common node types with practical JSON examples, clear explanations of operation-aware configuration, and good security practices. Well-organized with quick reference table and anti-patterns. Slight gap in advanced error handling depth but overall excellent actionability and reusability.

82
90
88
88
90

Metadata

Licenseunknown
Version-
Updated1/27/2026
Publisherfazer-ai

Tags

apidatabasegithubgithub-actionsllmpromptingsecuritytesting