
N8n Expression Syntax
If you've ever stared at an n8n workflow wondering why your webhook data isn't showing up, this will save you hours. The single biggest gotcha is that webhook payloads live under `$json.body`, not `$json` directly, and this skill drills that into your head with examples. Beyond that, it covers the double brace syntax, proper node referencing with quotes, when to skip expressions entirely in Code nodes, and how to handle field names with spaces or special characters. The validation rules are practical, the common mistakes section maps errors to fixes, and the examples show real webhook-to-Slack and HTTP-to-email patterns. Worth having open when you're wiring nodes together and the data suddenly disappears between steps.
- skills.sh installs
- 6.9K
- GitHub stars
- 6.6K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add czlonkowski/n8n-skills --skill n8n-expression-syntax --agent claude-codeInstalls into .claude/skills of the current project.
Files
n8n Expression Syntax
Expert guide for writing correct n8n expressions in workflows.
Expression Format
All dynamic content in n8n uses double curly braces:
{{expression}}
Examples:
✅ {{$json.email}}
✅ {{$json.body.name}}
✅ {{$node["HTTP Request"].json.data}}
❌ $json.email (no braces - treated as literal text)
❌ {$json.email} (single braces - invalid)
Core Variables
$json - Current Node Output
Access data from the current node:
{{$json.fieldName}}
{{$json['field with spaces']}}
{{$json.nested.property}}
{{$json.items[0].name}}
$node - Reference Other Nodes
Access data from any previous node:
{{$node["Node Name"].json.fieldName}}
{{$node["HTTP Request"].json.data}}
{{$node["Webhook"].json.body.email}}
Important:
- Node names must be in quotes
- Node names are case-sensitive
- Must match exact node name from workflow
$now - Current Timestamp
Access current date/time:
{{$now}}
{{$now.toFormat('yyyy-MM-dd')}}
{{$now.toFormat('HH:mm:ss')}}
{{$now.plus({days: 7})}}
$env - Environment Variables
Access environment variables:
Sponsors
Details
- Repository
- github.com/czlonkowski/n8n-skills
- Categories
- Documentation, Debugging, Automation & Workflows