Interactive n8n Code Node (JS) Hands-On Tutorial
Hands-on tutorial for n8n's Code node using JavaScript, covering item-by-item processing, API calls, batch operations, and binary CSV export with sample user data.
This workflow serves as an interactive tutorial for mastering n8n's Code node with JavaScript. It starts with sample user data, then demonstrates processing each item individually to compute full names and ages using $input.item.json. Next, it advances to fetching external data via this.helpers.httpRequest to an API like genderize.io for gender prediction, enriching each record progressively.
The tutorial then shows batch processing with $items() to calculate summary statistics like average age across all items in a single execution. Finally, it creates a binary CSV file from the enriched dataset using Buffer, highlighting binary data handling. Benefits include rapid learning of core Code node concepts, from basics to advanced features, without external setup—ideal for n8n beginners and intermediates.
Use cases span data transformation pipelines, API enrichment, reporting summaries, and file exports in automation workflows. Experiment by modifying sample data or code to build custom logic, accelerating development in areas like user profiling, analytics, or ETL processes. No setup required; just execute and inspect node outputs for instant feedback.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
HR & Recruitment Pipeline
7 hand-picked workflows for $39.00.
That is $5.57 each, vs $9.99 for this one alone.
View bundleSecure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related HR & Operations workflows
- Automate CV Screening with AI-Powered Analysis$14.99
- Automated AI Resume Screening and Evaluation with Google Sheets and Drive$14.99
- Automate Candidate Evaluation with AI and Slack Integration$14.99
- Automate HR Processes via WhatsApp with AI and Google Workspace$19.99
- AI-Automated HR Workflow for CV Analysis and Candidate Evaluation$14.99
- Customer Onboarding Automation with HubSpot, Email Sequences, and Team Alerts$14.99
More from Arjun Radu
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.