n8n-expression-syntax

Validate n8n expression syntax and data access patterns in workflows.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/martiraste-lgtm/claude-skills --skill n8n-expression-syntax-martiraste-lgtm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-expression-syntax
Source: https://github.com/martiraste-lgtm/claude-skills/tree/main/n8n-expression-syntax
Command: npx skills add https://github.com/martiraste-lgtm/claude-skills --skill n8n-expression-syntax-martiraste-lgtm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Web expression syntax mistakes in n8n workflows cause incorrect results, undefined values, and debugging headaches. This guide helps users understand correct syntax, data paths, and node references to build reliable automation.

Core Features & Use Cases

  • Comprehensive reference of expression syntax ({{ }}) and core variables ($json, $node, $now, $env).
  • Webhook data structure awareness with .body access for reliable data retrieval.
  • Guidance on referencing other nodes, handling arrays/objects, and common pitfalls with concrete examples.

Quick Start

Learn and apply the core rules to validate your expressions and fix common mistakes in your workflows.

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 returning undefined values?

Access webhook payload data in n8n expressions by targeting the .body property of your webhook node. Validating this data access pattern ensures reliable data retrieval and prevents undefined values in your automated workflows.

What is the correct syntax for referencing other nodes in n8n workflows?

The correct syntax for referencing other nodes in n8n workflows involves using proper node naming conventions and the appropriate expression variables. You must use quotes around node names containing spaces and avoid code node misuse to prevent workflow errors.

How do I handle arrays and objects in n8n expression syntax?

Handling arrays and objects in n8n expression syntax requires correct dynamic access methods within the {{ }} wrappers. Validating these data access patterns helps you avoid common mistakes and extract structured data accurately across your workflow nodes.

Why are my n8n webhook body access expressions failing?

Your n8n webhook body access expressions are likely failing due to incorrect syntax or missing {{ }} wrappers. Validating your webhook data structure and ensuring proper .body access patterns will resolve these debugging headaches and restore data retrieval.

When should I use static versus dynamic data access in n8n expressions?

You should use static versus dynamic data access in n8n expressions depending on whether you need fixed values or live workflow data. Understanding this distinction enforces correct syntax usage and prevents common mistakes when referencing variables like $json or $node.