π Learn Code Node (JavaScript) with an Interactive Hands-On Tutorial
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 begins with a sample list of users. 2. Processes Each Item (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. 3. Fetches External Data (A
At a glance
π Learn Code Node (JavaScript) with an Interactive Hands-On Tutorial is a ready-made n8n workflow you import as a workflow JSON file β no build required. It connects UNSUPPORTED_SLUG_FORMAT. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- UNSUPPORTED_SLUG_FORMAT
- Modules
- 7
- Price
- Free
- Version
- v1.0

About this workflow
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 begins with a sample list of users. 2. Processes Each Item (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. 3. Fetches External Data (Advanced): The second Code node showcases a more advanced feature. For each user, it uses the built-in this.helpers.httpRequest function to call an external API (genderize.io) to enrich the data with a predicted gender. 4. Processes All Items at Once (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. 5. Create a Binary File: The final Code node gets the fully enriched list of users once again and creates a binary CSV file to show how to use binary data Buffer in JavaScript. Set up steps Setup time: < 1 minute This workflow is a self-contained tutorial and requires no setup. 1. Explore the Nodes: Click on each of the Code nodes to read the code and the comments explaining each step, from basic to advanced. 2. Run the Workflow: Click "Execute Workflow" to see it in action. 3. Check the Output: Click on each node after the execution to see how the data is transformed at each stage. Notice how the data is progressively enriched. 4. Experiment! Try changing the data in the 1. Sample Data node, or modify the code in the Code nodes to see what happens.
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n β click the menu β Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Diagnose n8n workflow errors with Claude AI, Supabase and Resend email alerts
Error handling system with PostgreSQL logging and rate-limited notifications
ADF: Call Synapse pipeline with a notebook activity
Process legal documents with Ollama AI & generate HTML reports (100% local)
Govern stale Entra ID guest accounts with SharePoint and Microsoft Teams
Automated YouTube subscription notifications with RSS and email
Transcribe YouTube videos & create GEO summaries with Whisper and GPT-4o-mini in Notion
Generate Instagram content from top trends with AI image generation
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint β instant download
- Setup guide PDF included
- 5 downloads Β· valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you