n8n-expression-syntax

Correct common n8n expression syntax mistakes for $json, $node, $now, and $env.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/erlebach/gordon --skill n8n-expression-syntax-erlebach
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: n8n-expression-syntax
Source: https://github.com/erlebach/gordon/tree/main/skills/agent_skills/n8n-expression-syntax
Command: npx skills add https://github.com/erlebach/gordon --skill n8n-expression-syntax-erlebach

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify and correct common mistakes in n8n expression syntax to ensure expressions evaluate correctly.

Core Features & Use Cases

  • Corrects syntax for $json, $node, $now, and $env in various workflow contexts.
  • Guides safe referencing of other nodes with proper quotes and case-sensitivity.
  • Provides debugging tips, examples, and error-prevention strategies for webhook data.

Quick Start

Evaluate an expression in the editor and adjust the syntax until it returns the expected result.

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 syntax fail to evaluate correctly in workflows?▼

n8n expression syntax often fails due to improper quoting, incorrect spaces, or case-sensitivity errors when referencing $json, $node, $now, or $env. Precise frontmatter rules and debugging guidance help correct these common mistakes.

How do I reference data from previous nodes in n8n expressions?▼

To reference data from previous nodes in n8n expressions, use $node with proper quotes and strict case-sensitivity. This ensures safe referencing and accurate data retrieval across workflow nodes.

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

Accessing webhook data in n8n expressions requires understanding the specific webhook data structure and applying proper quoting around $json. Error-prevention strategies and debugging tips help ensure the expression evaluates correctly.

How do I format dates using $now in n8n expressions?▼

Formatting dates with $now in n8n expressions requires strict syntax rules to avoid evaluation errors. Using precise frontmatter rules and debugging guidance ensures the expression evaluates correctly across workflow contexts.

What are common mistakes when using $env variables in n8n workflows?▼

Common mistakes when using $env variables in n8n workflows include improper quoting and syntax errors. Identifying and correcting these expression syntax mistakes ensures variables evaluate correctly and prevents workflow failures.