n8n-expression-syntax

Validate and teach n8n expression syntax with {{}} patterns and variables.

Updated Mar 14, 2026
One-click install
npx skills add https://github.com/MrAlexisCord/chatbot-prototype --skill n8n-expression-syntax-mralexiscord
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-expression-syntax
Source: https://github.com/MrAlexisCord/chatbot-prototype/tree/main/.agents/skills/n8n-expression-syntax
Command: npx skills add https://github.com/MrAlexisCord/chatbot-prototype --skill n8n-expression-syntax-mralexiscord

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users write correct n8n expressions, preventing common syntax errors and ensuring data flows correctly within n8n workflows, especially when dealing with webhook data.

Core Features & Use Cases

  • Syntax Validation: Learn the correct format for n8n expressions using {{}}.
  • Variable Usage: Understand how to use $json, $node, $now, and $env variables.
  • Webhook Data Handling: Correctly access data sent via webhooks, which is nested under .body.
  • Error Prevention: Avoid pitfalls like missing braces, incorrect node referencing, and using expressions in Code nodes.
  • Use Case: When configuring a node to send a personalized email using data from a webhook, this Skill ensures you use the correct expression {{$json.body.customerName}} instead of the incorrect $json.customerName.

Quick Start

Use the n8n-expression-syntax skill to learn how to correctly reference data from a webhook in an n8n 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 access webhook data in n8n expressions?

To access webhook data in n8n expressions, use the correct syntax `{{$json.body.yourVariable}}` because incoming webhook payloads are nested under the `.body` object. This prevents missing data errors when passing information to downstream nodes.

What is the correct syntax for n8n expressions using variables like $json and $env?

n8n expressions require wrapping variables like `$json`, `$node`, `$now`, or `$env` in double curly braces `{{}}`. This format ensures the workflow engine evaluates the variables and dynamically passes data between nodes correctly.

Can I use n8n expressions inside a Code node?

No, you should not use n8n expressions inside a Code node. The Code node executes standard JavaScript, so you must access data directly through object references instead of using the `{{}}` expression syntax used by regular nodes.

How do I fix missing curly brace errors in n8n automation workflows?

To fix missing curly brace errors in n8n automation workflows, ensure every expression variable is fully enclosed in `{{}}`. Omitting these braces causes the system to treat the variable as plain text, breaking the data flow.

What's the best way to format dates in n8n expressions?

The best way to format dates in n8n expressions is using the `$now` variable wrapped in curly braces, such as `{{$now.toISO()}}`. This leverages built-in Luxon date-time handling to generate accurate timestamps dynamically.