Duplicate Record Reconciler with Conflict Lineage and Source Priority
Read the execution path horizontally, with supporting AI nodes below. Layout changes affect this preview only; the download stays unchanged.
Loading workflow…
Workflow Description
Reads a {records, config} wrapper, builds a trimmed, lowercased composite key, and groups matching records. It fills non-empty values, resolves differing values by source priority or latest valid updatedAt per field rule, and leaves fields without a rule as unresolved conflicts. Each conflict stores the chosen value, its source and record, plus every candidate with its source. An IF splits groups needing review, Merge appends both paths, and a final Code node outputs one report including invalid records.
How it works
- 1.Manual Trigger starts the run.
- 2.Code node emits fictional device records and config.
- 3.Code node validates, groups by composite key, resolves conflicts and records lineage.
- 4.IF node routes groups with unresolved conflicts.
- 5.Set nodes tag needs_review or auto_resolved.
- 6.Merge appends both paths; final Code builds a single report.
Use cases
- Reconciling device records from CMDB, MDM and spreadsheets.
- Consolidating duplicate contacts while keeping disagreements reviewable.
Requirements
- No credentials needed.
- Define keyFields, sourcePriority, fieldRules and emptyValues.
- Provide input as a {records, config} wrapper.
Setup and testing in n8n
- Import the JSON into n8n and execute manually.
- Verify 3 groups, 2 invalid records and 1 unresolved conflict.
- Set records to an empty array and verify zero counts.
- Change sourcePriority and observe different chosen values.
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (8)
Manual Trigger
Manual Trigger
Build Sample Batch
Code
Reconcile Duplicate Groups
Code
Has Unresolved Conflicts?
If
Tag Needs Review
Set
Tag Auto Resolved
Set
Append Both Paths
Merge
Build Final Report
Code
Note Input and Rules
Sticky Note
Note Routing and Report
Sticky Note
Fresh workflows, straight to your inbox
Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.
- New workflows
- Clear overviews
- Setup guides