n8n-expression-syntax

Diagnoses and fixes n8n expression syntax errors in {{ }} code.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/HustleDanie/n8n-claude-kit --skill n8n-expression-syntax-hustledanie
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-expression-syntax
Source: https://github.com/HustleDanie/n8n-claude-kit/tree/main/skills/n8n-expression-syntax
Command: npx skills add https://github.com/HustleDanie/n8n-claude-kit --skill n8n-expression-syntax-hustledanie

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It prevents and resolves the most common n8n expression errors—especially cases where expressions render as literal text or webhook data is read from the wrong location.

Core Features & Use Cases

  • Webhook correctness: ensures you access user payloads under {{$json.body.*}} instead of the root $json.
  • Valid expression syntax: verifies correct {{expression}} formatting and proper usage of $json, $node, $now, and $env.
  • Reliable referencing: guides correct node and field access, including quoting case-sensitive node names and using bracket notation for names with spaces.

Quick Start

Ask: "Validate this n8n expression and tell me exactly why it fails, then rewrite it into the correct syntax for webhook/body vs root, including the right $node reference."

Frequently Asked Questions about n8n-expression-syntax

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

FAQPage Schema
Why does my n8n expression output literal text instead of the actual value?

n8n expressions output literal text when syntax wrapping rules are incorrect or variable references fail. Fixing broken n8n expressions requires verifying proper `{{ }}` formatting and ensuring `$json`, `$node`, or `$env` references are valid.

How do I access webhook payload data correctly in n8n expressions?

Access webhook payload data in n8n by targeting `{{$json.body.*}}` instead of the root `$json`. Webhook data structure requires accessing user payloads under the `.body` path to prevent undefined values and resolve correctly.

How do I reference an n8n node with spaces or special characters in its name?

Reference n8n nodes with spaces using bracket notation and proper `$node` quoting. Node names are case-sensitive, requiring exact matching and strict quoting rules to avoid undefined outputs in `{{ }}` expressions.

What is the correct syntax for using $now and $env variables in n8n?

Using `$now` and `$env` variables in n8n requires wrapping them in strict `{{ }}` expression syntax. Validate that environment variables and current timestamp expressions follow proper formatting rules to prevent literal text rendering.

n8n expression not working, how do I troubleshoot undefined values?

Troubleshooting undefined values in broken n8n expressions involves diagnosing webhook data structure under `.body`, verifying strict `{{ }}` wrapping, and checking `$node` quoting and case sensitivity for accurate field path access.