Complete Guide to Commonly Used Expressions in n8n Workflows
n8n supports JavaScript-like expressions wrapped in double curly braces that allow users to dynamically reference and transform data within automation workflows. These expressions cover a wide range of use cases, including accessing JSON fields, referencing outputs from specific nodes, and handling binary data. Users can also work with date and time values using built-in variables like $now and $today, along with Luxon-based formatting methods. Conditional logic is supported through expressions like $if, $ifEmpty, and the ternary operator, while string and array manipulation is possible via standard JavaScript methods. The reference guide serves as a practical cheat sheet for both new and experienced n8n users building complex workflow automations.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in