Steps
Pick a stable key
Choose a field that never changes for the same item: an RSS
linkorguid, a giveawayid, an email Message-ID. Avoid titles, which get edited, and timestamps, which change every run.Add the Remove Duplicates node
Put it right before the node that posts or sends. Set Operation to Remove Items Processed in Previous Executions. On n8n versions without this operation, update n8n first.
Set Keep Items Where to Value Is New
Then set Value to Dedupe On to an expression such as
{{ $json.link }}. Only items whose key was never seen before pass through.Seed it before the first real run
The first run treats everything as new. Disable the Discord or email node, let the active workflow run once on its schedule so the keys are stored, then enable the node again. That avoids the first-run flood.
Check it really works
Let it run twice. The second run should output 0 items from the Remove Duplicates node. If it still outputs everything, see the gotcha below. Keeps copies, discards everything or fails with "exceeds the maximum history size"? See n8n Remove Duplicates not working, from 63 real runs.
The gotcha: a wrong operation value is silently ignored
If you build workflows as JSON (by hand, with a script, or with an AI assistant), the operation value must be exactly removeItemsSeenInPreviousExecutions, with logic set to removeItemsWithAlreadySeenKeyValues and the key in dedupeValue. We once shipped a made-up value. n8n imported it without any error, fell back to plain within-run deduplication, and reposted every item on every run. If your node shows Remove Items Repeated Within Current Input in the editor, that's what happened.
{
"type": "n8n-nodes-base.removeDuplicates",
"typeVersion": 2,
"parameters": {
"operation": "removeItemsSeenInPreviousExecutions",
"logic": "removeItemsWithAlreadySeenKeyValues",
"dedupeValue": "={{ $json.link }}"
}
}The other two modes
- Value Is Higher than Any Previous Value: for increasing IDs, like ticket or order numbers.
- Value Is a Date Later than Any Previous Date: for feeds with reliable publish dates. It's fragile if a source backdates items.
New rows vs changed rows
Remove Duplicates only remembers keys, so a row whose price or status changed still counts as already seen. To find new, changed and removed rows between two lists (for example a sheet and a database), use the Compare Datasets node: see n8n Compare Datasets not working (40 real runs).
Starting over
The same node has a Clear Deduplication History operation. Run it once (for example in a separate manual workflow) when you want everything to count as new again.
Skip the setup: free download
The RSS to Discord agent does all of this. It's tested, MIT-licensed, and comes as an n8n workflow plus a Python script.
Get the free RSS to Discord agent → Or have us build yours →
FAQ
Does the RSS Feed Trigger need this?
Usually not, because it tracks seen items itself. You need Remove Duplicates when you use the RSS Read node, an HTTP Request or a Schedule trigger, which have no memory between runs.
Where is the history stored?
In n8n's own database, per node by default, so it survives restarts.
Can I dedupe on two fields?
Yes. Join them in the expression, for example {{ $json.id + '|' + $json.price }}, so a price change counts as a new item.
Related guides
- n8n Remove Duplicates not working: missing field, history size, 63 runs
- n8n RSS to Discord: post new feed items with keyword filters
- n8n Split Out, Aggregate and Summarize not working: 78 runs, fixed
- GitHub release notifications in Telegram (free, skip pre-releases)
- n8n binary data not found? Fix 'none was found' and 'no binary field', 25 tests
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes