n8n-expression-syntax

Resolve incorrect n8n expressions using {{}} syntax for $json and $node references.

4|2|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/promptadvisers/n8n-powerhouse --skill n8n-expression-syntax-promptadvisers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-expression-syntax
Source: https://github.com/promptadvisers/n8n-powerhouse/tree/main/.claude/skills/n8n-expression-syntax
Command: npx skills add https://github.com/promptadvisers/n8n-powerhouse --skill n8n-expression-syntax-promptadvisers

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

n8n expression syntax issues are a frequent cause of broken workflows. This guide helps you craft correct expressions using {{}} syntax, properly reference $json and $node data, and troubleshoot webhook payload structures to prevent runtime errors.

Core Features & Use Cases

  • Accurate expression syntax: Ensure all dynamic content is wrapped in {{}} and correctly reference $json, $node, $now, and $env.
  • Webhook data correctness: Emphasizes the correct access pattern for webhook payloads under .body.
  • Node referencing & arrays: Demonstrates referencing other nodes, handling spaces in names, and accessing arrays/objects.
  • Debugging & validation: Provides steps to test expressions in the editor and interpret common error messages.

Quick Start

Open the expression editor in your n8n workflow and test a sample expression like {{$json.body.name}} against a sample webhook payload to verify correct evaluation.

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 expression syntax errors in my workflow?

To fix n8n expression syntax errors, ensure all dynamic content is wrapped in {{}} syntax and properly references $json, $node, $now, and $env variables to prevent workflow runtime failures.

Why is my n8n webhook data not parsing correctly in expressions?

n8n webhook data fails to parse when expressions bypass the payload structure. You must access webhook payloads specifically under the .body property to correctly evaluate dynamic JSON data within the expression editor.

What is the correct way to reference another node's data in n8n expressions?

To reference another node's data in n8n expressions, use the $node syntax while accurately handling spaces in node names and properly navigating arrays and objects to retrieve the targeted workflow values.

How do I debug and validate n8n expressions before running a workflow?

To debug and validate n8n expressions, test sample expressions like {{$json.body.name}} directly in the expression editor against sample webhook payloads to verify correct evaluation and interpret common error messages.

What are common Code node pitfalls when writing n8n expressions?

Common Code node pitfalls include improper {{}} wrapping and incorrect variable referencing. Avoiding these pitfalls requires validating $json and $env data structures to prevent workflow execution errors.