Learn how to build an advanced n8n workflow using custom scripting and iteration control. This n8n node combination merges data from multiple RSS feed reads into one output.
Download this n8n workflow template and start using it instantly.
Users looking to aggregate data efficiently from multiple external sources within a single n8n execution.
Developers needing advanced examples of custom Javascript logic inside an n8n node.
Anyone interested in mastering complex iteration, looping, and data merging techniques in n8n.
Automation specialists who want to create highly efficient, customized n8n templates.
While n8n is powerful for parallel processing, sometimes you need precise control over sequential loops and aggregation. This specific n8n workflow demonstrates a technique to fetch content from multiple URLs (specifically two RSS feeds in this example) sequentially. The true innovation lies in the use of the IF n8n node combined with the SplitInBatches context to create a controlled loop, ensuring every feed is read. Crucially, a final custom Function n8n node then retrieves and combines the data from all previous loop executions, delivering a consolidated result. This pattern is essential for creating robust data aggregation n8n templates.
The n8n workflow begins with the On clicking 'execute' n8n trigger.
Function n8n node defines the input, creating separate items for each RSS feed URL (Medium and Dev.to) related to n8n content.SplitInBatches n8n node ensures that the flow processes only one URL item at a time.RSS Feed Read n8n node executes using the current batch's URL.IF n8n node checks the SplitInBatches context.noItemsLeft is false), the flow loops back to SplitInBatches via Path 1 to process the next URL.noItemsLeft is true), the flow proceeds to the final aggregation step (Merge Data) via Path 0.Merge Data custom Function n8n node executes only once all loops are complete. It uses a custom script iterating through previous executions of the RSS Feed Read n8n node using the $items() helper function, collecting all fetched data into a single JSON object. This completes the entire n8n workflow.To use this advanced n8n workflow, follow these steps:
RSS Feed Read n8n node, which typically does not require external credentials. Ensure your n8n instance can reach external URLs.Merge Data n8n node to understand the specific JavaScript logic being used for aggregation. Modify the feed URLs in the initial Function n8n node if you want to track different sources. This n8n template is designed for easy modification.On clicking 'execute' n8n trigger to test the data merging functionality. This advanced n8n template is ready to run out of the box.This custom n8n workflow leverages several key n8n node types:
On clicking 'execute' (Manual Trigger): The standard entry point. This n8n trigger initiates the entire process manually for testing and execution.
Function (URL Initialization): Generates two items, each defining an RSS feed URL. This feeds the initial list of tasks to the SplitInBatches n8n node.
SplitInBatches: Crucial for controlling the iteration. It sends items one by one to the downstream n8n node (RSS Feed Read). Key Configuration: Batch Size is set to 1.
RSS Feed Read: The core action n8n node, dynamically configured to read the URL passed in the input (={{$json["url"]}}).
IF: The flow control n8n node that manages the loop. It checks if the SplitInBatches n8n node has completed its job by evaluating the $node["SplitInBatches"].context["noItemsLeft"] expression. If incomplete, it loops back, ensuring the n8n workflow processes all items.
Merge Data (Function): This complex custom n8n node contains the aggregation script. It uses Javascript’s $items("RSS Feed Read", 0, counter) to access the output of the RSS Feed Read n8n node from every iteration, consolidating all results into a single item for final output. This powerful technique is what distinguishes this n8n template.
Use this powerful n8n workflow to merge multiple RSS feeds, clean data using regex, filter for recent content (48 hours), and broadcast the curated list as Markdown messages via Telegram. A prime example of effective n8n templates.

Automate PDF merging tasks using this robust n8n workflow. Download multiple remote files, use the ConvertAPI service, and save the resulting document automatically. Leverage this powerful n8n node integration.

Learn how to merge multiple PDF files using an n8n workflow template. This n8n node guide details downloading files, merging binary data, and writing the final PDF.

Use this core logic n8n workflow template to efficiently merge and combine two separate datasets based on a common matching key using the n8n Merge node.

A powerful n8n workflow for message buffering using Redis, dynamic timing, and OpenAI GPT consolidation. Essential n8n templates for robust, high-volume chat automation and cost efficiency.









































