Skip to main content

Master data transformation with the complete set node guide

Workflow preview

Workflow preview
100%
Master data transformation with the complete set node guide preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

n8n Set Node Tutorial Complete Guide How It Works This tutorial workflow teaches you everything about n8n's Set node through hands on examples. The Set node is one of the most powerful tools in ...

Best for

  • Engineering automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.start, n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.if, n8n-nodes-base.merge, n8n-nodes-base.manualtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by David Olusola.

Original n8n.io source

1.1 Workflow description

Title
Master data transformation with the complete set node guide
Workflow name
Master data transformation with the complete set node guide

n8n Set Node Tutorial - Complete Guide

🎯 How It Works

This tutorial workflow teaches you everything about n8n's Set node through hands-on examples. The Set node is one of the most powerful tools in n8n - it allows you to create, modify, and transform data as it flows through your workflow.

What makes this tutorial special:

  • Progressive Learning: Starts simple, builds to complex concepts
  • Interactive Examples: Real working nodes you can modify and test
  • Visual Guidance: Sticky notes explain every concept
  • Branching Logic: Shows how Set nodes work in different workflow paths
  • Real Data: Uses practical examples you'll encounter in automation

The workflow demonstrates 6 core concepts:

  1. Basic data types (strings, numbers, booleans)
  2. Expression syntax with {{ }} and $json references
  3. Complex data structures (objects and arrays)
  4. "Keep Only Set" option for clean outputs
  5. Conditional data setting with branching logic
  6. Data transformation and aggregation techniques

πŸ“‹ Setup Steps

Step 1: Import the Workflow

  1. Copy the JSON from the code artifact above
  2. Open your n8n instance in your browser
  3. Navigate to Workflows section
  4. Click "Import from JSON" or the import button (usually a "+" or import icon)
  5. Paste the JSON into the import dialog
  6. Click "Import" to load the workflow
  7. Save the workflow (Ctrl+S or click Save button)

Step 2: Choose Your Starting Point

Option A: Default Tutorial Mode (Recommended for beginners)

  • The workflow is ready to run as-is
  • Uses simple "Welcome" message as starting data
  • Click "Execute Workflow" to begin

Option B: Rich Test Data Mode (Recommended for experimentation)

  1. Locate the nodes: Find "Start (Manual Trigger)" and "0. Test Data Input"
  2. Disconnect default: Click the connection line between "Start (Manual Trigger)" β†’ "1. Set Basic Values" and delete it
  3. Connect test data: Drag from "0. Test Data Input" output to "1. Set Basic Values" input
  4. Execute: Click "Execute Workflow" to run with rich test data

Step 3: Execute and Learn

  1. Run the workflow: Click the "Execute Workflow" button
  2. Check outputs: Click on each node to see its output data
  3. Read the notes: Each sticky note explains what's happening
  4. Follow the flow: Data flows from left to right, top to bottom

Step 4: Experiment and Modify

Try These Experiments:

πŸ”§ Change Basic Values:

  • Click on "1. Set Basic Values"
  • Modify user_age (try 20 vs 35)
  • Change user_name to see how it propagates
  • Execute and see the changes flow through

πŸ“Š Test Conditional Logic:

  • Set user_age to 20 β†’ triggers "Student Discount" path
  • Set user_age to 30 β†’ triggers "Premium Access" path
  • Watch how the workflow branches differently

🎨 Modify Expressions:

  • In "2. Set with Expressions", try changing:
    • ={{ $json.score * 2 }} to ={{ $json.score * 3 }}
    • ={{ $json.user_name }} Smith to ={{ $json.user_name }} Johnson

πŸ—οΈ Complex Data Structures:

  • In "3. Set Complex Data", modify the JSON structure
  • Add new properties to the user_profile object
  • Try nested expressions

πŸŽ“ Learning Path

Beginner Level (Nodes 1-2)

  • Focus: Understanding basic Set operations
  • Learn: Data types, static values, simple expressions
  • Time: 10-15 minutes

Intermediate Level (Nodes 3-4)

  • Focus: Complex data and output control
  • Learn: Objects, arrays, "Keep Only Set" option
  • Time: 15-20 minutes

Advanced Level (Nodes 5-6)

  • Focus: Conditional logic and data aggregation
  • Learn: Branching workflows, merging data, complex expressions
  • Time: 20-25 minutes

πŸ” What Each Node Teaches

Node Concept Key Learning
1. Set Basic Values Data Types String, number, boolean basics
2. Set with Expressions Dynamic Data {{ }} syntax, $json references, $now functions
3. Set Complex Data Advanced Structures Objects, arrays, nested properties
4. Set Clean Output Data Management "Keep Only Set" for clean final outputs
5a/5b. Conditional Sets Branching Logic Different data based on conditions
6. Tutorial Summary Data Aggregation Combining and summarizing workflow data

πŸ’‘ Pro Tips

πŸš€ Quick Wins:

  • Always check node outputs after execution
  • Use sticky notes as your learning guide
  • Experiment with small changes first
  • Copy nodes to try variations

πŸ› οΈ Advanced Techniques:

  • Use Keep Only Set for API responses
  • Combine static and dynamic data in complex objects
  • Leverage conditional paths for different user types
  • Reference nested object properties with dot notation

πŸ› Troubleshooting:

  • If expressions don't work, check the {{ }} syntax
  • Ensure field names match exactly (case-sensitive)
  • Use the expression editor for complex logic
  • Check data types match your expectations

🎯 Next Steps After Tutorial

  1. Create your own Set nodes in a new workflow
  2. Practice with real data from APIs or databases
  3. Build data transformation workflows for your specific use cases
  4. Combine Set nodes with other n8n nodes like HTTP, Webhook, etc.
  5. Explore advanced expressions using JavaScript functions

Congratulations! You now have the foundation to use Set nodes effectively in any n8n workflow. The Set node is truly the "Swiss Army knife" of n8n automation! πŸ› οΈ

1.2 Logical Blocks

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.

2. Block-by-Block Analysis

Block 1 - Start (Manual Trigger)

Type / Role
n8n-nodes-base.start - start
Config choices
Version 1

Block 2 - Tutorial Intro

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - 1. Set Basic Values

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.2

Block 4 - Basic Set Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - 2. Set with Expressions

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.2

Block 6 - Expression Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - 3. Set Complex Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.2

Block 8 - Complex Data Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - 4. Set Clean Output

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.2

Block 10 - Keep Only Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Age Check

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 12 - 5a. Set Adult Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.2

Block 13 - 5b. Set Young Adult Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.2

Block 14 - Conditional Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Merge Branches

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 2.1

Block 16 - 6. Tutorial Summary

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.2

Block 17 - Completion Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - 0. Test Data Input

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.2

Block 19 - When clicking β€˜Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

3. Summary Table

Workflow Master data transformation with the complete set node guide
Complexity advanced
Nodes 19
Categories Engineering
Author David Olusola
Published 23 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6292/6292.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

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.

Frequently asked questions

What does Master data transformation with the complete set node guide do?

n8n Set Node Tutorial Complete Guide How It Works This tutorial workflow teaches you everything about n8n's Set node through hands on examples. The Set node is one of the most powerful tools in ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

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 Engineering use case.