Skip to content
Developer & DevOps

Example of batch loop terminating when no items remain

5 nodes 618 173 Automatic trigger
Download

Loading workflow…

Workflow Description

An automated workflow that receives data manually, divides it into manageable batches, and applies conditional logic and custom functions to each batch for efficient processing without API limits.

How it works

  1. 1.Activate the manual trigger to initiate the workflow
  2. 2.Divide input data into evenly-sized batches
  3. 3.Apply conditional logic to filter or route each batch
  4. 4.Execute custom functions to transform or validate data
  5. 5.Store results in workflow variables for downstream use

Use cases

  • Process large contact lists while respecting API rate limits
  • Filter millions of database records based on specific criteria
  • Update customer records in batches to improve system performance

Requirements

  • Well-formatted input data (list or JSON array)
  • Basic understanding of conditional logic and JavaScript functions

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 618
Downloads 173

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