Dev & Engineering

n8n Expression Syntax Guide

Write, validate, and repair n8n expressions for reliable workflow data mapping.

47/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code · Claude.ai
Stars
★ 6.4k
Last updated
19d ago
License
MIT
n8nexpression-syntaxworkflow-automationwebhooks
+3data-mappingjavascriptmcp

What does this skill do, and when should you use it?

This is one standalone skill from czlonkowski/n8n-skills, focused on writing, validating, and troubleshooting n8n expressions. It covers double-curly-brace syntax, $json, $node, $now, $env, webhook payload structure, and data mapping between nodes. It also explains when to use an expression, an Edit Fields IIFE, or a Code node, along with practical guidance on expression complexity and workflow performance. It fits n8n builders who need reliable field mappings or expression troubleshooting, especially when n8n-mcp validation tools are available.

It guides the model in writing {{}} expressions for n8n fields, reading current-node and previous-node data, accessing webhook body, query, and header values, and handling nested objects, arrays, strings, numbers, and Luxon date-time values. It identifies and fixes missing braces, invalid bracket or dot notation, case-sensitive node-name mismatches, incorrect webhook paths, and expression usage inside Code nodes. It also provides a decision order for expressions, Edit Fields IIFEs, and Code nodes, plus recommendations for branch convergence and unnecessary Set nodes.

Good fit
  • An n8n builder is mapping webhook submissions into Slack and needs to read user data from $json.body.
  • An automation engineer is referencing an upstream node named HTTP Request and needs exact quoted, case-sensitive node syntax.
  • A workflow maintainer is debugging literal expression text, undefined properties, or method errors in node fields.
  • A user needs to format dates, transform arrays, manipulate strings, or add conditional values directly in n8n fields.
  • An n8n developer is deciding whether a complex single-item transformation should remain an expression or move to a Code node.

How do you install this skill?

Before you use it
  • Do not place API keys in URLs or ordinary expression text; prefer n8n credentials and confirm the instance's environment-variable access policy.
  • Obtain confirmation and retain a recoverable copy before deleting or rewiring Set nodes, because the recommendation can change data flow.
  • Verify $node, $('Node'), webhook body behavior, IIFEs, credential fields, and expression performance against the target n8n version and node types.
  • The external API, SQL-construction, and webhook examples do not cover escaping, missing fields, empty arrays, sensitive-data logging, or error responses.
Before you start
Your agent needs
  • MCP Server
Install first
  • n8n-mcp MCP server

This skill is distributed in the n8n-skills collection. In Claude Code, install the collection with /plugin install czlonkowski/n8n-skills. Alternatively, clone it with git clone https://github.com/czlonkowski/n8n-skills.git and copy n8n-skills/skills/n8n-expression-syntax to ~/.claude/skills/. The collection documentation requires an n8n-mcp MCP server to be configured. In Claude.ai, download skills/n8n-expression-syntax and upload it through Settings → Capabilities → Skills. The supplied material does not provide detailed API/SDK installation steps.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/czlonkowski/n8n-skills.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/skills/n8n-expression-syntax" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • How do I correctly read the email field from an n8n webhook?
  • Check whether {{$node["HTTP Request"].json.data}} is valid.

After installation, ask a relevant prompt such as “How do I correctly read the email field from an n8n webhook?” or “Check whether {{$node["HTTP Request"].json.data}} is valid.” The skill is designed to activate for requests involving {{}}, $json, $node, webhook data, expression errors, or performance tradeoffs. For actual validation, the material points to n8n-mcp validation tools; it does not show that the skill independently executes validation.

What are this skill's strengths and limitations?

Pros
  • Covers common expression sources, including current nodes, previous nodes, webhooks, environment variables, and date-time values.
  • Clearly identifies contexts where expressions should not be used, including Code nodes, webhook paths, and credential fields.
  • Includes error fixes, working examples, transformation guidance, and branch-convergence recommendations.
  • Can be installed as part of the n8n-skills collection or uploaded as an individual skill folder.
Limitations
  • It depends on the n8n-mcp MCP server for the referenced validation tooling and is not itself an n8n execution engine.
  • The supplied material provides no independent test results, platform coverage data, or reproducible performance benchmark.
  • The performance figures are reported for an n8n 2.x instance and should not be assumed universal across deployments.
  • The full COMMON_MISTAKES.md catalog and EXAMPLES.md content are referenced but not included in the supplied material.

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
n8n Expression Syntax Guide this page 47 · Use with care ★ 6.4k 19d ago MIT
n8n JavaScript Code Node Guide 47 · Use with care ★ 6.4k 19d ago MIT
n8n AI Code Tool Guide 54 · Use with care ★ 6.4k 19d ago MIT
n8n Python Code Node Guide 49 · Use with care ★ 6.4k 19d ago MIT
Azure Storage Skill ✓ Microsoft · Official 51 · Use with care ★ 2.7k 3mo ago MIT

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
47/ 100 5-point scale 2.4 / 5
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
1Trust10 / 25 · 2.0/5

The material explicitly warns about environment-variable and credential risks and recommends the credential system. However, it still demonstrates placing API keys in headers or URLs, and it recommends deleting Set nodes and rewiring workflows without explicit confirmation, backup, rollback, or data-flow review. No malware, covert exfiltration, or gross overreach is evident, so the score is reduced but not zero.

2Reliability8 / 20 · 2.0/5

The documentation is organized and covers common syntax, mistakes, and debugging steps, making the happy path plausible. There is no executable test or CI evidence, and several claims depend on n8n version and node context, including webhook structure, credential fields, IIFE support, and performance figures. These uncertainties justify a score below the static ceiling of 10.

3Adaptability9 / 15 · 3.0/5

The audience, trigger phrases, and primary scenarios are reasonably clear, covering expressions, webhooks, Code nodes, and node references. Non-fit boundaries, version differences, input-shape assumptions, and Chinese-language guidance are limited. The core function does not entirely depend on unreachable overseas services, so no such deduction is applied.

4Convention10 / 15 · 3.3/5

The skill has a main guide, mistake catalog, examples, and README, with dependency notes, related skills, an MIT license, an update date, and evaluation claims. Maintenance ownership, changelog, compatibility matrix, complete installation path, and escalation process are incomplete; repository-level documentation cannot fully substitute for skill-specific governance, so points are deducted.

5Effectiveness6 / 15 · 2.0/5

The examples and quick-reference material can directly help with many expression-writing problems, and the core benefit is clear. However, key examples lack execution evidence, some recommendations may vary by n8n version or node type, and claims such as performance measurements and 95% coverage are not supported by committed tests. The score therefore remains within the static ceiling of 7.

6Verifiability4 / 10 · 2.0/5

The review material includes a pinned revision, concrete code examples, an error catalog, and declared evaluation scenarios. It does not include a committed test suite, CI results, independent review, or reproducible execution records. Claims about real workflows, MCP testing, and performance measurement are primarily author assertions, so the score remains below the static ceiling of 5.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Jul 20, 2026 Reviewed revision 05eea4848c12 Review evidence[1][2][3][4][5][6]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Is this skill free?
The repository is licensed under MIT. The supplied material does not mention a paid service.
Can it directly edit my n8n workflows?
The material says it guides expressions and can use n8n-mcp validation tools, but does not establish that the skill itself edits workflows directly.
Why is webhook data usually written as $json.body.email?
The skill states that webhook user data is wrapped under body, alongside headers, params, and query values.
Should a complex expression be split across multiple nodes?
The recommended order is an expression first, an Edit Fields IIFE when intermediate variables are needed, and a Code node only for cases such as multi-item aggregation, allowlisted libraries, or asynchronous work.

More skills from this repository

All from czlonkowski/n8n-skills

Automation & Ops

n8n Error Handling

Make n8n workflow failures routable, visible, and recoverable.

★ 6.4k FS 53 Use with care 19d ago
Automation & Ops

n8n Binary & File Handling

Keep files intact in n8n workflows and move them safely through AI tools and chat interfaces.

★ 6.4k FS 53 Use with care 19d ago
Dev & Engineering

n8n JavaScript Code Node Guide

Write reliable, efficient JavaScript for n8n Code nodes.

★ 6.4k FS 47 Use with care 19d ago
Dev & Engineering

n8n AI Code Tool Guide

Write JavaScript or Python that obeys the n8n Custom Code Tool contract for AI-agent calls.

★ 6.4k FS 54 Use with care 19d ago
Automation & Ops

n8n Multi-Instance Targeting

Safely select, verify, and switch the n8n instance targeted by an MCP session.

★ 6.4k FS 51 Use with care 19d ago
Automation & Ops

n8n MCP Workflow Router

Routes n8n-mcp tasks to the right skills and reduces production workflow failures.

★ 6.4k FS 50 Use with care 19d ago
Automation & Ops

n8n Subworkflow Architect

Turn reusable n8n logic into explicit, testable sub-workflows that humans and AI agents can discover and call safely.

★ 6.4k FS 49 Use with care 19d ago
Automation & Ops

n8n Node Configuration Guide

Configure n8n nodes by operation and dependency to reduce validation errors and silent runtime failures.

★ 6.4k FS 46 Use with care 19d ago
Automation & Ops

n8n Validation Expert

Explains n8n validation results and guides iterative fixes for problems that can stop workflows from running.

★ 6.4k FS 46 Use with care 19d ago
Automation & Ops

n8n MCP Tools Expert

A practical guide for reliably searching, validating, and managing n8n workflows.

★ 6.4k FS 45 Not recommended 19d ago
Dev & Engineering

n8n Python Code Node Guide

Write dependable Python for n8n Code nodes within their real runtime limits.

★ 6.4k FS 49 Use with care 19d ago
Automation & Ops

n8n AI Agent Architecture Guide

Design n8n AI agents with the right nodes, tool connections, memory, structured output, and human approval.

★ 6.4k FS 50 Use with care 19d ago
Automation & Ops

n8n Workflow Architecture Patterns

Design, validate, and deploy reliable n8n workflows with proven architectural patterns.

★ 6.4k FS 40 Not recommended 19d ago
Automation & Ops

n8n Self-Hosting Deployment

Deploy production self-hosted n8n on Linux with Docker Compose, Caddy, and automatic HTTPS.

★ 6.4k FS 46 Use with care 19d ago

Related skills