AutomationMart
Home/Browse/πŸŽ“ Learn Code Node (JavaScript) with an Interactive Hands-On Tutorial
n8n

πŸŽ“ Learn Code Node (JavaScript) with an Interactive Hands-On Tutorial

n8nn8n7 modulesv1.0
UNSUPPORTED_SLUG_FORMAT

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
πŸŽ“ Learn Code Node (JavaScript) with an Interactive Hands-On Tutorial workflow diagram

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.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n β†’ click the menu β†’ Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 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

Who's it for This workflow is for anyone who runs n8n workflows and wants to know immediately when something breaks, without digging through execution logs. Especially useful for non-technical users and freelancers or agencies managing workflows for clients. How it works When a workflow fails, this system activates automatically. Claude AI analyzes the error using the technical details and the business context you provide, then generates a diagnosis with the direct cause, a step-by-step f

Free

Error handling system with PostgreSQL logging and rate-limited notifications

Log errors and avoid sending too many emails Use case Most of the time, it’s necessary to log all errors that occur. However, in some cases, a scheduled task or service consuming excessive resources might trigger a surge of errors. To address this, we can log all errors but limit alerts to a maximum of one notification every 5 minutes. What this workflow does This workflow can be configured to receive error events, or you can integrate it before your own error-handling logic. If used as the pri

Free

ADF: Call Synapse pipeline with a notebook activity

Azure Data Factory pipeline

Free

Process legal documents with Ollama AI & generate HTML reports (100% local)

TUTORIAL VIDEO Key Features 🧠 AI-Powered Analysis - Use any Ollama-compatible model (Llama, Mistral, CodeLlama, etc.) πŸ”§ Flexible Input - Supports PDFs, Word docs, text files, and more πŸ“Š Structured Output - Generates clean HTML reports and summaries πŸ”„ Automated Pipeline - Set-and-forget document processing Perfect For: - Enterprise Environments - Where data privacy is paramount - Research Organizations - Processing sensitive or proprietary documents - Small Teams - Cost-effective alternative to c

Free

Govern stale Entra ID guest accounts with SharePoint and Microsoft Teams

Quick overview This template runs two scheduled workflows to govern Microsoft Entra ID (Azure AD) guest accounts by detecting stale users via Microsoft Graph, staging deletions in SharePoint with a 72-hour window, notifying sponsors in Microsoft Teams, and deleting overdue guests while auditing outcomes. How it works 1. The Scanner (Runs Weekly): Fetches all guest users using native Microsoft Graph API pagination. 2. Filters Stale Accounts: Identifies guests with no sign-in activity for over 90

Free

Automated YouTube subscription notifications with RSS and email

Who is this template for? You are in the bad habit of always checking your feed to see if there are new videos? This workflow will help you get rid of this habit by delivering an email notification for each new video posted from the channels you are subscribed to. No need to check your feed again: no email = no new video. Example email How it works Every hour (by default), we: - Fetch all your YouTube subscriptions from the YouTube Data v3 API. - Get a list of the latest videos of each channel t

Free

Transcribe YouTube videos & create GEO summaries with Whisper and GPT-4o-mini in Notion

Description Automate your YouTube research workflow by extracting audio from any video, transcribing it with Whisper AI, and generating structured GEO (Goal–Execution–Outcome) summaries using GPT-4o-mini. πŸŽ₯πŸ€– This template transforms unstructured video content into actionable, searchable insights that are automatically stored in Notion with rich metadata. It’s ideal for creators, educators, analysts, and knowledge workers who want to convert long videos into concise, high-quality summaries w

Free

Generate Instagram content from top trends with AI image generation

How it works This automated workflow discovers trending Instagram posts and creates similar AI-generated content. Here's the high-level process: 1. Content Discovery & Analysis - Scrapes trending posts from specific hashtags - Analyzes visual elements using AI - Filters out videos and duplicates 2. AI Content Generation - Creates unique images based on trending content - Generates engaging captions with relevant hashtags - Maintains brand consistency while being original 3. Automa

Free

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.

Log in to review
Free
No ratings yet

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.

β‚Ή2,499/ session
3 hrs Β· video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free