What are n8n expressions?
n8n expressions are JavaScript code snippets within {{ }} brackets
Syntax: {{ JavaScript expression }}
Importance of n8n expressions.
n8n expressions give you data access from anywhere in your workflow and allow real-time data manipulation.
You can’t use n8n if you don’t understand the n8n expressions. They are that important.
Examples of n8n expressions.
{{“Hello World”}}
{{ 2+3 }}
{{ true }}
{{ false }}
{{ [1,2,3] }}
{{ [“name”,”age”,22] }}
{{ [{“firstName”:”Himanshu”,”lastName”:”Sharma”}] }}
{{ $input.item.json.headers.host }}
{{ $json.headers.host }}
{{$node[“Webhook”].json}}
{{$now}}

We often use the n8n expression to traverse through a JSON object.
Following is an example of an n8n JSON Object:
To traverse through a n8n JSON object use the . dot notation.
Access Top-Level Fields:
{{ $json.headers }}

Access Nested Fields:
{{ $json.body.call }}

Access Deeply Nested Field:
{{ $json.body.call.call_id }}

Use the . dot notation to access the n8n functions.
n8n provides one or more functions for each field.
For example:

You can access these functions by using the . dot notation directly in n8n expressions.
For example: {{ $json.body.call.call_id.base64Decode() }}