n8n-expression-syntax

Identify and fix incorrect n8n expressions and webhook data references in workflows.

1|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/ditchallaway/Robotic-Property-Photographer --skill n8n-expression-syntax-ditchallaway
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-expression-syntax
Source: https://github.com/ditchallaway/Robotic-Property-Photographer/tree/main/.agents/skills/n8n-expression-syntax
Command: npx skills add https://github.com/ditchallaway/Robotic-Property-Photographer --skill n8n-expression-syntax-ditchallaway

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This knowledge base helps users write correct n8n expressions by enforcing the proper use of the expression syntax surrounding dynamic content, avoiding missing or misplaced braces, and preventing misinterpretation of webhook data.

Core Features & Use Cases

  • Guides correct usage of {{}} with $json, $node, $now, and $env to build dynamic fields in workflows.
  • Highlights the critical webhook data structure, teaching how to access nested fields through json.body and bracket notation for spaces, with examples of arrays and concatenations.
  • Provides validation rules, debugging steps, and best practices to prevent common mistakes and to distinguish between expression usage and direct Code node access, plus practical real-world examples.

Quick Start

Apply the rules in real workflows by validating a sample expression against your webhook payload and test corrections in the expression editor to verify live results.

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 incorrect n8n expressions and webhook data references in workflows?

To fix incorrect n8n expressions, validate your syntax for dynamic content like $json and $node, ensure braces are correctly placed, and access nested webhook fields through json.body using bracket notation for spaces.

How do I access nested webhook data and array fields in n8n expressions?

Access nested webhook data in n8n expressions by targeting json.body properties and using bracket notation for field names containing spaces, enabling correct retrieval of nested arrays and concatenations.

What is the difference between using n8n expressions and a Code node for dynamic data?

n8n expressions use syntax like {{}} with $json or $env for dynamic fields, whereas a Code node allows direct JavaScript execution. Expressions are preferred for simple data references to avoid common mistakes.

Why does my n8n expression fail when referencing data from previous nodes?

n8n expressions fail when braces are misplaced or node references are incorrect. Validate your $node syntax and ensure you are accurately targeting the specific node-to-node data structure.

When should I use $now and $env in n8n workflow expressions?

Use $now for current datetime injection and $env for environment variable access within n8n expressions. Wrap them in {{}} syntax to safely build dynamic fields in your workflows.

What are the validation rules for preventing errors in n8n expression syntax?

Validation rules for n8n expressions require proper {{}} usage, avoiding Code nodes for simple expressions, using brackets for spaces in webhook data, and following a structured debugging approach to test corrections.