Automation is all about moving and transforming data efficiently. While n8n offers hundreds of integrations, its true power lies in how you handle the flow of data between nodes.

Three of the most powerful (but often overlooked) nodes are:
👉 Set – node is used to restructure data or to assign values to variables that can be reused in subsequent nodes within the current workflow.
👉 Split In Batches – for breaking data into smaller chunks
👉 Merge – for combining different data streams

This trio forms the backbone of advanced n8n workflows. In this guide, we'll explore what they are, when to use them, and how they work together, complete with real-world examples.

Prerequisites

Before diving in, make sure you have:

Split in batche

The Set Node

What is it?

The Set node allows you to define, restructure, or clean your data before passing it to the next step.

Where/Why/When to Use?

How to Use?

Real-World Example

Imagine you scraped leads from LinkedIn with firstName, lastName, and mail. Before sending them to a CRM API, you can use Set to restructure as:

{
	"fullName": "{{ $json.firstName }} {{ $json.lastName }}",
	"primaryEmail": "{{ $json.mail }}",
	"status": "new"
}

Pros & Cons

✅ Easy to restructure data
✅ Perfect for cleaning payloads
❌ Can get messy with large objects

The Split In Batches Node

What is it?

The Split In Batches node processes large datasets in smaller chunks, instead of sending everything at once.

Where/Why/When to Use?

How to Use?

Real-World Example

You fetch 100 contacts from Google Sheets. Instead of sending all 500 emails at once (risking API errors), you:

  1. Use Split In Batches (10 per batch).

  2. Send each batch via the Gmail node.

  3. Continue until all contacts are processed.

Pros & Cons

✅ Prevents API quota issues
✅ Makes workflows more reliable
❌ Adds extra looping logic

Split

The Merge Node

What is it?

The Merge node lets you combine two data streams in different ways.

Where/Why/When to Use?

Merge Modes

Real-World Example for Merge Node

Scenario: You have customer orders from one source and customer info from another. You want a single dataset with all details.

Data Streams

Merge Node

Output:

OrderId, CustomerId, Amount, Name, Email

Explanation: Now each order is enriched with customer details, combining data from two sources into one clean dataset.

Pros & Cons

✅ Works like SQL joins
✅ Great for enrichment workflows
❌ Needs careful key mapping

Key Differences

NodePurposeBest Use CaseAnalogy
SetRestructure/clean dataRename, add, or remove fieldsEditing a form before submission
Split In BatchesProcess in small partsHandle large datasets & rate limitsCutting a cake into slices
MergeCombine two streamsJoin API results or datasetsMerging two Excel sheets

When to Use Them Together

Often, these nodes work best in combination. Example:

  1. Fetch 1000 leads from Google Sheets.

  2. Use Split In Batches (50 at a time).

  3. Use Set to restructure fields (firstName + lastName → fullName).

  4. Call CRM API.

  5. Use Merge with CRM's response to enrich with company IDs.

  6. Save the final data in MongoDB.

This ensures the process is clean, efficient, and scalable.

Pros & Cons of the Trio

✅ Essential for advanced workflow design
✅ Help manage data quality, scalability, and enrichment
✅ Make workflows modular & professional
❌ Overusing them may complicate workflows
❌ Debugging batch/merge flows can be time-consuming

Conclusion

The Set, Split In Batches, and Merge nodes are not just "extra" tools—they are core building blocks for advanced n8n workflows.

By mastering this trio, you'll unlock the ability to build robust, scalable, and production-grade automations in n8n. 🚀