Block 1 - 1. Sample Data
- Type / Role
- n8n-nodes-base.set - set
- Config choices
- Version 3.4
This workflow is provided as-is. Please review and test before using in production.
How it works This workflow is a hands on tutorial for the Code node in n8n, covering both basic and advanced concepts through a simple data processing task. 1. Provides Sample Data: The workflow be...
n8n-nodes-base.set, n8n-nodes-base.splitout, n8n-nodes-base.code, n8n-nodes-base.stickynote, n8n-nodes-base.manualtrigger
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Lucas Peyrin.
Original n8n.io sourceThis workflow is a hands-on tutorial for the Code node in n8n, covering both basic and advanced concepts through a simple data processing task.
Run Once for Each Item): The first Code node iterates through each user to calculate their fullName and age. This demonstrates basic item-by-item data manipulation using $input.item.json.this.helpers.httpRequest function to call an external API (genderize.io) to enrich the data with a predicted gender.Run Once for All Items): The third Code node receives the fully enriched list of users and runs only once. It uses $items() to access the entire list and calculate the averageAge, returning a single summary item.Buffer in JavaScript.Setup time: < 1 minute
This workflow is a self-contained tutorial and requires no setup.
1. Sample Data node, or modify the code in the Code nodes to see what happens.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 | π Learn Code Node (JavaScript) with an Interactive Hands-On Tutorial |
|---|---|
| Complexity | intermediate |
| Nodes | 14 |
| Categories | Miscellaneous |
| Author | Lucas Peyrin |
| Published | 27 Jun 2025 |
Use the JSON export at /data/workflows/5407/5407.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.
How it works This workflow is a hands on tutorial for the Code node in n8n, covering both basic and advanced concepts through a simple data processing task. 1. Provides Sample Data: The workflow be...
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 Miscellaneous use case.