n8n-expression-syntax

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

1|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/nirukk52/ContentEngine-AI-studio --skill n8n-expression-syntax-nirukk52
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-expression-syntax
Source: https://github.com/nirukk52/ContentEngine-AI-studio/tree/main/.claude-skills/n8n-expression-syntax
Command: npx skills add https://github.com/nirukk52/ContentEngine-AI-studio --skill n8n-expression-syntax-nirukk52

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill teaches correct n8n expression syntax using the {{}} pattern and helps users avoid common mistakes, with a focus on properly accessing webhook data from the .body and referencing other nodes.

Core Features & Use Cases

  • Expression correctness: Validates usage of {{ }}, $json, $node, and $now in workflows.
  • Webhook data handling: Emphasizes that webhook payloads live under .body and demonstrates safe access patterns.
  • Debug & real-world examples: Provides a library of common errors, fixes, and practical workflow examples.
  • Use Case: Build reliable automations that process webhook data, compute derived values, and route results using n8n expressions.

Quick Start

Open your n8n editor, test an expression like {{$json.body.name}} or {{$node["HTTP Request"].json.data}}, and apply the recommended fixes to any errors such as missing braces or incorrect node references.

Frequently Asked Questions about n8n-expression-syntax

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

FAQPage Schema
How do I access webhook data in n8n expressions?

Webhook data in n8n expressions is accessed via the .body property using the $json variable, such as {{$json.body.name}}. This pattern safely retrieves incoming webhook payloads within your automation workflows.

Why does my n8n expression syntax throw an error when referencing other nodes?

n8n expression syntax errors often occur from missing curly braces or incorrect node name casing. You must use exact casing and bracket notation for spaces, like {{$node["HTTP Request"].json.data}}, to properly resolve the reference.

How do I fix missing curly braces in n8n workflow expressions?

Fix missing curly braces in n8n workflow expressions by ensuring all dynamic variables are wrapped in the {{}} pattern. Validating the structure enforces proper syntax for $json, $node, and webhook data processing.

Can I use $now and $json variables together in n8n expressions?

You can use $now and $json variables together in n8n expressions to compute derived values. Validating these expressions ensures proper curly braces and syntax for routing results in your automation workflows.

What is the correct syntax for spaces in n8n node names?

The correct syntax for spaces in n8n node names requires bracket notation. You must enclose the exact node name with precise casing in quotes, like {{$node["HTTP Request"].json}}, to avoid syntax errors.

Does n8n expression syntax support debugging for common workflow errors?

n8n expression syntax supports debugging by providing a library of common errors, quick fixes, and practical workflow examples. This helps validate $node and webhook data references to resolve automation failures.