n8n-expression-syntax

Validate and fix n8n expression syntax in workflows.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/filipesf/dotfiles --skill n8n-expression-syntax-filipesf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-expression-syntax
Source: https://github.com/filipesf/dotfiles/tree/main/agents/skills/n8n/n8n-expression-syntax
Command: npx skills add https://github.com/filipesf/dotfiles --skill n8n-expression-syntax-filipesf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers and automation engineers ensure that n8n expressions are correctly formed, preventing runtime errors caused by missing braces, incorrect node references, or mislocated webhook data. It consolidates patterns, examples, and best practices into a single reference.

Core Features & Use Cases

  • Validation of expression syntax using {{ }} and correct usage of $json, $node, $now, and $env.
  • Comprehensive guidance on the critical webhook data structure ($json.body) and how to access nested fields, arrays, and fields with spaces.
  • Debugging aids, common mistakes catalog, and real-world workflow examples to accelerate learning and reduce errors.

Quick Start

Use the expression editor to test expressions like {{$json.body.name}} or {{$node["HTTP Request"].json.data}} 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 in my workflow?

To fix n8n expression syntax errors, ensure all expressions are wrapped in double curly braces {{ }} and use proper quoting for field or node names containing spaces. Verify you reference correct structures like $json.body for webhooks and exact node name casing.

Why is my n8n webhook data not showing up in the expression editor?

n8n webhook data often does not show up because it is nested inside the $json.body structure. You must access it using the correct path like {{$json.body.name}} to retrieve nested fields, arrays, and payload data from incoming webhook requests.

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 quotes, such as {{$node["HTTP Request"].json.data}}. Ensure the node name casing matches exactly to prevent runtime errors.

Can I use environment variables in n8n workflow expressions?

Yes, you can use environment variables in n8n workflow expressions by referencing them with the $env variable. Ensure your expression syntax is correctly enclosed in {{ }} braces, such as {{$env.MY_VARIABLE}}, to route data securely.

What are common mistakes when writing n8n expressions for API calls?

Common mistakes when writing n8n expressions for API calls include missing double braces, incorrect webhook .body structure references, and failing to quote node names with spaces. Validating syntax against real-world scenarios prevents these runtime errors.