Dev.to
6/27/2026

n8n Expressions: How to Use Dynamic Data in Your Workflows (Free Examples)
Short summary
n8n expressions are JavaScript patterns that pull live data from workflow nodes, format dates, build dynamic strings, and calculate values—all with syntax like {{$json.email}} or {{$now.toFormat('yyyy-MM-dd')}}. The post covers core variables ($json, $now, $vars), six real-world examples (dynamic URLs, formatted dates, name concatenation, null-safe field access), and common mistakes. Includes a runnable demo workflow showing four patterns in action.
- •Master n8n expression syntax and built-in variables ($json, $now, $vars, $env)
- •Apply 6 real-world examples immediately: dynamic emails, formatted dates, URLs, null-safe fields
- •Import and run a ready-to-execute demo workflow with 4 patterns
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



