Skip to content
AI Agents

Parallel Array Semantic Namer with Conflict Guard

8 nodes 7 1 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

A manual-trigger workflow that flattens an object containing nested parallel arrays into named records. A Code node infers a semantic name per array from its parent key (singularizing single-element arrays), detects identical names inferred from different paths, appends a distinguishing path suffix and records the conflict. An If node splits conflicting from clean records, Set nodes add a status field while keeping all fields, and a Merge node recombines both branches. Fully self-contained with fictional data, no external calls.

How it works

  1. 1.Run Manual Trigger; a Code node emits a fictional object with parallel arrays including an intentional name conflict
  2. 2.Infer Names & Detect Conflicts traverses the structure, infers one name per array and singularizes single-element arrays
  3. 3.Identical inferred names are grouped; occurrences after the first get an @parent-path suffix and all group records are flagged with conflict_detected and conflict_detail
  4. 4.If splits conflicting records (true branch) from clean records (false branch)
  5. 5.Set nodes add record_status with includeOtherFields, Merge (append) recombines both branches, NoOp ends the flow

Use cases

  • Stable column naming before splitting parallel report arrays into records
  • Detecting parallel-array name collisions before they reach downstream reports
  • Normalizing field names from nested JSON sources

Requirements

  • n8n 2.44.6+ with code, if, merge, set, stickyNote and manualTrigger nodes
  • No credentials or external calls — fully self-contained

Setup and testing in n8n

  1. Import the workflow JSON into n8n
  2. Execute Manual Trigger; expect 7 records: 3 named items and 3 named items@shipment (all conflict_resolved) plus 1 record note with status clean
  3. Edge case: replace the payload with an empty or array-free object and expect an error/no-arrays message
  4. Real data: replace the Fictional Sample Payload code with your object of the same schema; no other code changes needed

Service Value

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

Apps Used

Manual Trigger Code If Set Merge No Op

Details

Trigger Manual trigger
Nodes 8
Apps 6
Views 7
Downloads 1

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

Fictional Sample Payload

Code

#2

Infer Names & Detect Conflicts

Code

#3

Has Conflict?

If

#4

Flag Conflict Resolved

Set

#5

Mark Clean Record

Set

#6

Merge Branches

Merge

#7

Detection Complete

No Op

#8

Rules: Inference & Conflict

Sticky Note

#9

Setup: Replace Sample

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