n8n-expression-syntax

Validate n8n expression syntax and fix common errors in workflows.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validates and fixes n8n expression syntax to prevent common errors when wiring data between nodes, especially ensuring correct use of braces, proper data paths, and safe access to webhook bodies.

Core Features & Use Cases

  • Validate and fix common n8n expression mistakes (missing braces, wrong node references, spaces in names, and incorrect property paths).
  • Demonstrate how to safely reference data from $json, $node, $now, and $env across multiple nodes, including webhook payloads (e.g., $json.body.*).
  • Provide debugging guidance and quick references to reduce workflow failures and speed up troubleshooting.

Quick Start

Open the expression field in an n8n node and apply the guidelines to validate braces, path access, and webhook body access before saving the 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 with missing braces and wrong node references?

To fix n8n expression syntax errors, ensure you always use double curly braces {{}} around expressions, quote node names containing spaces, and verify correct property paths for $json and $node references to prevent workflow failures.

Why does my n8n webhook data structure show undefined when using $json directly?

n8n webhook data structure requires accessing payload fields under the body object, so you must use $json.body instead of $json directly to safely retrieve incoming webhook data and avoid undefined references.

What is the best way to debug n8n expressions referencing $json, $node, and $env variables?

The best way to debug n8n expressions is to validate brace syntax, check node name spelling, and ensure correct path access to $json, $node, $now, and $env variables before saving the node configuration.

Can I use n8n expressions inside Code nodes to manipulate workflow data?

You should avoid using n8n expressions inside Code nodes because Code nodes execute JavaScript directly, meaning standard {{}} expression patterns and $node references are not evaluated the same way and can cause errors.

How do I access environment variables and current timestamps in n8n workflow expressions?

Access environment variables using the $env object and current timestamps using the $now object within properly braced n8n expression patterns to securely inject dynamic data into your node configurations.