n8n-expression-syntax

Identify and fix incorrect n8n expressions for safe workflow execution.

4|1|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/yuchenbigpen1/normies --skill n8n-expression-syntax-yuchenbigpen1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-expression-syntax
Source: https://github.com/yuchenbigpen1/normies/tree/main/packages/shared/assets/workspace-template/skills/n8n-expression-syntax
Command: npx skills add https://github.com/yuchenbigpen1/normies --skill n8n-expression-syntax-yuchenbigpen1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Correct n8n expressions are essential for reliable workflows. Many users struggle with data references ($json, $node), dealing with webhook payloads, and properly using the {{}} syntax, leading to runtime errors and silent data issues.

Core Features & Use Cases

  • Clear rules for using double curly braces and common data access patterns in n8n.
  • Critical webhook data guidance showing that input data lives under .body and how to reference it safely.
  • Coverage of nested fields, arrays, spaces in keys and cross-node references, with real-world scenarios.
  • Built-in debugging tips and error-prevention practices to reduce silent failures.

Quick Start

Test a basic expression in a sample webhook workflow to verify that data is accessed via {{$json.body.name}} and that a node reference like {{$node["HTTP Request"].json.data}} resolves correctly.

Frequently Asked Questions about n8n-expression-syntax

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

FAQPage Schema
Why is my n8n webhook data undefined when I try to access it in a workflow?

n8n webhook data is undefined when accessed directly because webhook payloads live under the .body property. You must reference input data safely using explicit patterns like {{$json.body.name}} to avoid silent failures and ensure correct data extraction.

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 exact node name in brackets, such as {{$node["HTTP Request"].json.data}}. This cross-node reference pattern ensures accurate data access across your workflow.

What is the correct syntax for n8n expressions when handling spaces in key names?

The correct syntax for n8n expressions with spaces in key names requires strict use of double curly braces and bracket notation. Properly wrapping keys ensures safe workflow execution and prevents runtime errors when accessing nested fields or array data.

How do I fix common n8n expression mistakes in Code nodes?

Fix common n8n expression mistakes in Code nodes by applying clear rules for double curly braces and correct $json access patterns. Following explicit data reference practices prevents silent data issues and ensures reliable workflow execution.

Can I use n8n expressions to validate webhook body data before processing?

Yes, you can use n8n expressions to validate webhook body data before processing by applying explicit handling patterns to access .body properties. This error-prevention practice reduces silent failures and ensures undefined values are caught safely.