Skip to content
Developer & DevOps

Example of ending a batch loop at the fifth iteration

5 nodes 546 206 Automatic trigger
Download

Loading workflow…

Workflow Description

A workflow that accepts data via manual trigger, splits it into separate batches, and applies conditional logic to process each batch based on specific criteria. Enables precise control over large dataset flows and prevents system overload.

How it works

  1. 1.Receive data through manual trigger event
  2. 2.Split incoming data into manageable batches using Split In Batches node
  3. 3.Evaluate conditions for each batch to determine processing path
  4. 4.Execute custom operations on qualified batches via JavaScript functions

Use cases

  • Processing large customer lists in controlled stages
  • Sending bulk emails or notifications with rate limiting to prevent service interruption

Requirements

  • Input data structured in JSON or CSV format
  • Proper batch size configuration aligned with downstream service limits

Service Value

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

Apps Used

Manual Trigger Code Split In Batches If Set

Details

Trigger Automatic trigger
Nodes 5
Apps 5
Views 546
Downloads 206

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 (5)

On clicking 'execute'

Manual Trigger

#1

Function

Function

#2

SplitInBatches

Split In Batches

#3

IF

If

#4

Set

Set

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