n8n-expression-syntax

Enforce correct n8n expression syntax with bracket notation and .body access.

6.0k|1.0k|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/czlonkowski/n8n-skills --skill n8n-expression-syntax-czlonkowski
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-expression-syntax
Source: https://github.com/czlonkowski/n8n-skills/tree/main/skills/n8n-expression-syntax
Command: npx skills add https://github.com/czlonkowski/n8n-skills --skill n8n-expression-syntax-czlonkowski

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps users write correct n8n expressions and avoid common pitfalls, especially around webhook data structure and node references, to improve workflow reliability.

Core Features & Use Cases

  • Correct expression syntax, including handling spaces and complex paths with bracket notation.
  • Safe data access patterns for webhook payloads (.body) and references to other nodes.
  • Practical debugging guidance with common mistakes and real-world workflow examples.

Quick Start

Use a simple test expression in your workflow to verify correctness, for example: read a webhook payload with {{$json.body.name}} and confirm the value in the expression editor preview.

Frequently Asked Questions about n8n-expression-syntax

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I access webhook payload data in n8n expressions?

Fix n8n expression syntax errors by enforcing proper {{}} usage and safe data access. Use bracket notation for spaces, .body for webhook payloads, and exact node-name casing to prevent common workflow mistakes.

Why does my n8n expression fail when referencing a node with spaces in the name?

n8n expressions fail with spaces in node names if you use dot notation. You must use bracket notation, like $node["My Node"].data, to correctly parse complex paths and spaces in your workflow references.

How do I correctly reference data from other nodes in n8n workflow automation?

Reference data from other nodes in n8n by using exact node-name casing and proper syntax. Ensuring the node name matches exactly prevents data retrieval errors during workflow automation execution.

What is the correct syntax for n8n expressions using double curly braces?

The correct syntax for n8n expressions requires wrapping dynamic data in double curly braces, like {{ }}. Enforcing proper {{}} usage guarantees the workflow evaluates variables safely and prevents output formatting issues.

How to debug common n8n expression mistakes in workflow automation?

Debug common n8n expression mistakes by testing simple values in the expression editor preview. Verify webhook .body access, exact node-name casing, and bracket notation for spaces to resolve typical workflow automation errors.

Does n8n expression syntax require specific casing for node references?

Yes, n8n expression syntax requires exact node-name casing for references. Using incorrect capitalization when pointing to other nodes will fail to retrieve data, breaking your workflow automation reliability.