n8n-expression-syntax

Validate n8n expressions using {{ }} syntax with $node and $json variables.

92|27|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/WilkoMarketing/antigravity-n8n-skills --skill n8n-expression-syntax-wilkomarketing
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: n8n-expression-syntax
Source: https://github.com/WilkoMarketing/antigravity-n8n-skills/tree/main/n8n-expression-syntax
Command: npx skills add https://github.com/WilkoMarketing/antigravity-n8n-skills --skill n8n-expression-syntax-wilkomarketing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing correct n8n expressions and avoiding common mistakes (like incorrect webhook data paths, missing braces, and wrong node references) can be error-prone and slow down workflow development.

Core Features & Use Cases

  • Expression correctness: explains the standard {{ }} syntax and how to access $json and $node data.
  • Webhook data gotcha: emphasizes that webhook data lives under .body and how to reference it.
  • Node references & spaces: shows how to reference other nodes with $node and bracket notation for spaces, plus case-sensitivity rules.
  • Validation & testing: provides guidance on debugging expressions using the expression editor and common validation errors.

Quick Start

Try an expression like {{$json.body.name}} in the editor to validate correct data access and syntax.

Frequently Asked Questions about n8n-expression-syntax

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

FAQPage Schema
How do I fix n8n webhook expression errors when accessing payload data?▼

To fix n8n webhook expression errors, reference webhook payload data using {{$json.body}} syntax. Webhook data lives under the .body object, so accessing it directly via $json without the body path causes validation failures.

How do I reference data from another node in n8n expressions?▼

To reference data from another node in n8n expressions, use the $node variable with the target node name. If the node name contains spaces, apply bracket notation and ensure exact case-sensitivity matching for successful validation.

What is the correct syntax for n8n expressions?▼

The correct syntax for n8n expressions requires wrapping variables or code in double curly braces, {{ }}. You can access standard variables like $json for current node data and $node for cross-node references within this structure.

Why does my n8n expression validation fail when using nested fields?▼

n8n expression validation fails when nested fields are accessed incorrectly due to missing braces or wrong paths. Validate proper {{ }} syntax and ensure accurate data access paths like $json.body.name in the expression editor to resolve it.

How do I test and debug n8n expressions in the workflow editor?▼

Test and debug n8n expressions directly within the expression editor by entering a syntax like {{$json.body.name}}. This validates correct data access, checks for syntax errors, and confirms proper path resolution before running the workflow.