Skip to content
AI Agents

Duplicate Record Reconciler with Conflict Lineage and Source Priority

8 nodes 53 6 Manual trigger
Download

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. 1.Manual Trigger starts the run.
  2. 2.Code node emits fictional device records and config.
  3. 3.Code node validates, groups by composite key, resolves conflicts and records lineage.
  4. 4.IF node routes groups with unresolved conflicts.
  5. 5.Set nodes tag needs_review or auto_resolved.
  6. 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

  1. Import the JSON into n8n and execute manually.
  2. Verify 3 groups, 2 invalid records and 1 unresolved conflict.
  3. Set records to an empty array and verify zero counts.
  4. Change sourcePriority and observe different chosen values.

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Manual Trigger Code If Set Merge

Details

Trigger Manual trigger
Nodes 8
Apps 5
Views 53
Downloads 6

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (8)

Manual Trigger

Manual Trigger

#1

Build Sample Batch

Code

#2

Reconcile Duplicate Groups

Code

#3

Has Unresolved Conflicts?

If

#4

Tag Needs Review

Set

#5

Tag Auto Resolved

Set

#6

Append Both Paths

Merge

#7

Build Final Report

Code

#8

Note Input and Rules

Sticky Note

#9

Note Routing and Report

Sticky Note

#10
Stay in the loop

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

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime