n8n Expressions Cheat Sheet: The Syntax You'll Actually Use
n8n expressions are what make workflows genuinely dynamic. They let you take data from previous steps, transform values, work with dates, add conditions, and build logic directly inside your workflow. The problem is that expression syntax can be easy to forget, especially when you haven’t used a particular pattern for a while. Here’s a practical n8n expressions cheat sheet covering some of the patterns you’re most likely to use, along with a simple example for each. Referencing Previous Node Data Access data from the current node: {{ $json.fieldName }} This is useful when the value you need is already part of the input data available to the current node. Access data from a specific node: {{ $node["Node Name"].json.fieldName }} Use this when you need to explicitly reference the output of a particular node rather than the current node’s input. Access the complete JSON object: {{ $json }} This gives you access to the complete JSON data ava...