Automation for clients

Stage 2 · Lesson 3 of 8

Expressions and built-in data

n8n in depth

In n8n, most happens through . An expression is a small piece of inside double curly braces that fills a node field from earlier data. For example, {{ $json.email.trim().toLowerCase() }} takes the email, removes stray spaces and lowercases it.

$json means the current item. You can reach any earlier node by its name with $('Node name').item.json. For dates, n8n includes Luxon, a date library, through $now and $today.

So formatting a date or changing its is one method call away. Expressions cover most cleaning and joining work, so learn them before reaching for the .

Common trapreferencing a node by a name you later rename, or pairing items from two different branches, which can quietly return data from the wrong record.

A question to check yourself, an AI practice session and 2 cheat sheet entries come with the full roadmap. Unlock

Resources for this stage

Start with

  • CourseFree
    n8n Academy

    n8n · Beginner

    Free official courses from Essentials to APIs and AI, each with a certificate and badge

Practise

Keep handy

  • Node reference, expressions, the Code node, hosting and licence pages

Mark this stage as not done?