n8n-expression-syntax

Guide correct n8n expression syntax with core variables and common patterns.

1|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/VitorSantos-1/Meus-projetos --skill n8n-expression-syntax-vitorsantos-1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-expression-syntax
Source: https://github.com/VitorSantos-1/Meus-projetos/tree/main/.gemini/skills/n8n-expression-syntax
Command: npx skills add https://github.com/VitorSantos-1/Meus-projetos --skill n8n-expression-syntax-vitorsantos-1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides an expert guide to writing correct n8n expressions, solving common syntax errors, and optimizing workflows with proper expression usage.

Core Features & Use Cases

  • Syntax Validation: Learn and validate n8n expression syntax, ensuring correct usage.
  • Common Mistakes: Identify and fix 15 common n8n expression mistakes.
  • Real Examples: Get real-world examples from MCP testing and templates.
  • Quick Fixes: A quick reference table for common errors.
  • Best Practices: Follow best practices for expression usage and error prevention.

Quick Start

To use this skill, refer to the SKILL.md file for detailed guidance on n8n expression syntax and best practices.

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 common n8n expression syntax errors in workflows?

Fix common n8n expression syntax errors by validating core variables like $json, $node, and $env. This guide identifies 15 frequent mistakes and provides a quick reference table to resolve webhook data structure issues and optimize workflow expressions.

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. This guide explains how to correctly reference webhook payloads using proper expression syntax to prevent data extraction errors in your workflows.

How do I use $json and $node variables in n8n workflow expressions?

Use $json and $node variables in n8n workflow expressions to extract and manipulate data between nodes. This skill provides real-world examples and best practices for correctly implementing these core variables in your automation workflows.

Does this n8n expression guide cover environment variables like $env and $now?

This n8n expression guide covers environment variables like $env and $now, detailing their correct syntax and usage. It includes advanced techniques and best practices for incorporating these dynamic variables into your workflow expressions.

What are the most common mistakes when writing n8n expressions?

Common mistakes when writing n8n expressions include incorrect variable referencing and improper webhook data handling. This skill outlines 15 frequent errors with real examples from MCP testing and offers quick fixes to prevent workflow failures.