Your n8n email replies are not threading, and the node cannot fix it
Short version: the Send Email (SMTP) node has no option for In-Reply-To / References, and its
own documentation lists this as a limitation. Every reply your workflow sends starts a new
conversation in the recipient’s mailbox, no matter what the Re: subject says.
Why this matters more than it sounds:
- A customer replies to your automated reply, and it opens a second thread. Now the history is split
in two, and whoever picks it up has to reconcile them. - In ticket systems that group by thread id, follow-up messages arrive as separate tickets.
- It reads as automated in exactly the way you did not want: one long email, then a brand new one.
How to check your own workflow in ten seconds. Export it and search the JSON for
In-Reply-To. If the string is not there, you are not threading - the subject line is decoration.
Workarounds, in the order I would pick them:
- Gmail node, “Reply to a message” operation. Correct threading, no custom code. Costs you
vendor lock-in to Gmail, which may or may not matter. - A custom node that accepts arbitrary headers. Works with any SMTP provider, but now you own
a node you have to maintain. - Accept the split and design for it: put a reference id in the subject or body, and make the
logging side join on that instead of on the thread.
What I did when I found this in my own template: I had documented “replies stay in the same thread”
on the sticky notes, and the send node had an empty options object. The documentation described a
behaviour the node cannot produce. That is worse than not threading at all, because the handover note
tells the next person something false, and they only find out when a customer complains.
Two related things worth checking while you are in there:
- Do you write the message to your log before or after the AI calls? If your IMAP trigger marks
mail as read on fetch, a failure in classification or drafting means the message is read, never
logged, never retried. Silent loss. Mark it read at the end, or write areceivedrow first. - Does your approval gate survive a missing field? Defaulting
confidenceto1when the model
omits it turns “unknown” into “confident”. Default to review, not to send.
I do this for a living now - a fixed-price audit of an exported workflow, findings ranked by
severity with how each one fails and how you would notice. If you want to see the format before
spending anything, I am happy to send the audit I did on my own template as an example.