How n8n reads previous node data, one item at a time
By Christophe Paka · Facts checked on 23 October 2026
Three orders come in by webhook. Your workflow sends three confirmation emails. All three land in Ana's inbox. Dana and Raj get nothing, and the run still ends green.
The bug is one word in the expression that reads n8n previous node data. Wrong customers get mail, and nothing tells you.
The figure below follows one expression through three items. It shows how n8n finds the right row for each one, and the one swap that sends every email to the same person.

Use this diagram on your site
Free to share in your blog post, docs, course or slides, as long as the credit link stays. Paste the code below where the figure should go.
How to read this figure
Start with the three rows. The Webhook node is a trigger that gives your workflow a web address; when the shop calls it, the run starts. Here it emits 3 items, one per order, and each later node runs once per item (see one node, three items). n8n counts from 0, so item 0 is ana@corp.io, item 1 is dana@acme.io and item 2 is raj@nine.dev.
See what the middle node loses. The HTTP Request node looks up each plan: free, pro and team. Its output holds the plan and nothing else.
$jsonmeans the fields of the item in front of the node, and the email is no longer there, so$json.emailhas nothing to read.Read the To field. Send Email needs the email, so its To field reaches back:
{{ $('Webhook').item.json.email }}. Read it in parts:$('Webhook')names the earlier node,.itempicks this item's own match there, and.json.emailreads its email field. You rarely type it: drag the field from the input panel and n8n writes it.Follow the dashed line. The dashed line is item linking. n8n knows item 1 in Send Email came from item 1 in Webhook. So for item 1 the expression gives dana@acme.io. No index and no loop node: the link picks the row.
Read the warning at the bottom. Swap
.itemfor.first()and every row becomes ana@corp.io..first()always takes item 0, whatever item is running. That is how three letters reach one inbox.
Key takeaways
- Write $('Node Name').item when the value lives in an earlier node.
- Keep .first() for nodes that make one thing, never for a list of customers.
- Check the expression preview on two different items before you publish, and make sure the values differ.
Try this: catch the one inbox bug before it ships
Use any workflow where a node late in the flow needs a field from the trigger.
- Open the node that needs the value, such as Send Email, and find the field that holds the expression.
- Look for
.first()in it. If the trigger brings many items, change it to.item. - Step through the preview on item 0, then on item 1.
- Compare the two values. Two customers should show two different emails.
Expected result: The preview shows ana@corp.io on item 0 and dana@acme.io on item 1. If both show the same email, the expression still points at the first item.
Questions readers ask
Why does my workflow only use the first row?
Often the expression uses .first(). It always reads item 0, so every run gets the first row's value. Use $('Node Name').item instead. Item linking then finds the earlier item that this item came from.
Why is my expression undefined after an HTTP Request node?
$json reads only the item in front of the node. If the HTTP Request node returns just the plan, the email is not in that item. Reach back to the node that had it, such as $('Webhook').item.json.email.
What does "Info for expression missing from previous node" mean?
n8n could not link the items, so .item cannot find a match. That happens when a node changes the number of items, or builds new items from scratch. To find it, open the run and walk back from the failing node, reading the counts on each wire. The first node whose count out differs from its count in, or that makes new items, such as a Code node, is where the link breaks.
Sources: Node output data (n8n docs); How items link through workflows (n8n docs); Item linking errors (n8n docs).
This figure is from n8n Made Crystal Clear, chapter 4.
The chapter builds the idea step by step, with recipes you can follow, a Try it to check yourself, and every source.
Get the book


