Skip to content
AI Agents

Category Router with Sentinels Preventing Merge Stalls

9 nodes 11 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

Routes records into 'urgent' and 'other' branches by a trimmed, lowercased category field and injects an is_sentinel=true item into any empty branch so Merge always receives both inputs. After merging, sentinels are removed and one report is built with real item counts per branch, their IDs, empty branches by name and invalid rule-field count; a Set node adds a text summary and status. Runs locally on fictional data with no external calls.

How it works

  1. 1.Manual Trigger starts
  2. 2.Code emits four fictional records incl. two invalid categories
  3. 3.Code classifies and adds sentinels for empty branches
  4. 4.IF routes on _branch
  5. 5.NoOp per path, then Merge in append mode
  6. 6.Code drops sentinels and builds a single report
  7. 7.Set adds summary and status

Use cases

  • Split and re-join batches without stalls
  • Surface empty branches explicitly

Requirements

  • No credentials required
  • Adjust ROUTING_FIELD and ROUTING_VALUE for your data

Setup and testing in n8n

  1. Import and run manually
  2. Confirm report lists 'urgent' as empty
  3. Add a category 'urgent' record and confirm no empty branch
  4. Make the sample node return [{json:{}}] and confirm zero counts in both branches

Service Value

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

Apps Used

Manual Trigger Code If No Op Merge Set

Details

Trigger Manual trigger
Nodes 9
Apps 6
Views 11
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 (9)

/

Manual Trigger

Manual Trigger

#1

Emit Fictional Sample Records

Code

#2

Classify and Add Sentinels

Code

#3

Is Urgent Branch?

If

#4

Urgent Path

No Op

#5

Other Path

No Op

#6

Merge Branches

Merge

#7

Remove Sentinels and Build Report

Code

#8

Format Summary

Set

#9

Note Stages

Sticky Note

#10

Note Setup

Sticky Note

#11
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