Block 1 - Loop Over Items
- Type / Role
- n8n-nodes-base.splitInBatches - splitInBatches
- Config choices
- Version 3
This workflow is provided as-is. Please review and test before using in production.
This workflow introduces beginners to one of the most fundamental concepts in n8n: looping over items . Using a simple use case—generating LinkedIn captions for content ideas—it demonstrates how to...
n8n-nodes-base.splitinbatches, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.toolthink, n8n-nodes-base.stickynote, n8n-nodes-base.manualtrigger, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.set
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Robert Breen.
Original n8n.io sourceThis workflow introduces beginners to one of the most fundamental concepts in n8n: looping over items. Using a simple use case—generating LinkedIn captions for content ideas—it demonstrates how to split a dataset into individual items, process them with AI, and collect the output for review or export.
Manual Trigger (Run Workflow)Create Random Data (Code)return [
{
json: {
row_number: 2,
id: 1,
Date: '2025-07-30',
idea: 'n8n rises to the top',
caption: '',
complete: ''
}
},
{
json: {
row_number: 3,
id: 2,
Date: '2025-07-31',
idea: 'n8n nodes',
caption: '',
complete: ''
}
},
{
json: {
row_number: 4,
id: 3,
Date: '2025-08-01',
idea: 'n8n use cases for marketing',
caption: '',
complete: ''
}
}
];
Loop Over Items (SplitInBatches)Create Captions (LangChain Agent)idea: {{ $json.idea }}
You are a helpful assistant creating captions for a LinkedIn post. Please create a LinkedIn caption for the idea.
Tool: Inject Creativity (LangChain Tool)Output Table (Set)idea: ={{ $('Create Random Data').item.json.idea }}output: ={{ $json.output }}This workflow demonstrates:
Beginners will understand how item-level processing works in n8n and how powerful looping combined with AI can be.
Robert Breen
Automation Consultant | AI Workflow Designer | n8n Expert
📧 [email protected]
🌐 ynteractive.com
🔗 LinkedIn
n8n loops OpenAI LangChain workflow training beginner LinkedIn automation caption generator
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Loop over items — beginner example |
|---|---|
| Complexity | intermediate |
| Nodes | 8 |
| Categories | Content Creation, Multimodal AI |
| Author | Robert Breen |
| Published | 07 Aug 2025 |
Use the JSON export at /data/workflows/7152/7152.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
This workflow introduces beginners to one of the most fundamental concepts in n8n: looping over items . Using a simple use case—generating LinkedIn captions for content ideas—it demonstrates how to...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.