n8n-expression-syntax

Validate and correct n8n expression syntax for dynamic workflow content.

11|4|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/leadgenjay/claude-skills --skill n8n-expression-syntax-leadgenjay
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-expression-syntax
Source: https://github.com/leadgenjay/claude-skills/tree/main/skills/LGJ-n8n-expression-syntax
Command: npx skills add https://github.com/leadgenjay/claude-skills --skill n8n-expression-syntax-leadgenjay

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The skill helps users write correct n8n expressions by guiding syntax rules, clarifying how to access data from $json and $node, and preventing common expression mistakes in workflows.

Core Features & Use Cases

  • Validate and correct expression syntax within any field in a workflow.
  • Document and demonstrate proper data access patterns for $json, $node, $now, and $env.
  • Provide best practices for webhook data handling and node references with spaces or special characters.

Quick Start

Type an expression like {{$json.body.name}} in a field to validate it and see the evaluated value in your workflow.

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 when accessing $json data?

To fix n8n expression syntax errors, ensure you wrap dynamic content in {{ }} and reference $json correctly, such as {{$json.body.name}}. Proper handling of $json, $node, and bracket notation for spaces prevents common workflow mistakes.

What is the correct syntax for referencing webhook data in n8n expressions?

The correct syntax for referencing webhook data in n8n expressions involves using {{$json.body}} to access incoming payload fields. Applying bracket notation for fields with special characters ensures accurate data extraction from webhook triggers.

How to build multi-node references across an n8n workflow?

Building multi-node references requires using the $node object to access data from previous workflow steps. You must enforce correct syntax like {{$node["Node Name"].json.field}} to prevent expression evaluation errors across nodes.

Why does my n8n expression break when a field name contains spaces?

n8n expressions break with spaces because dot notation fails to parse them correctly. You must apply bracket notation, like {{$json["field name"]}}, to properly access fields containing spaces or special characters.

Can I use $now and $env variables inside n8n workflow expressions?

Yes, you can use $now and $env variables inside n8n workflow expressions to inject current timestamps and environment variables. Correctly wrapping them in {{ }} ensures they evaluate properly within your workflow nodes.

What is the best way to validate n8n expressions before running a workflow?

The best way to validate n8n expressions is to type an expression like {{$json.body.name}} in a node field to check its syntax and see the evaluated value. This prevents common errors before executing the full workflow.