How to Use Set Node in n8n | Edit Fields Node | Add, Edit, Clean Data

Learn How to Use Set Node in n8n | Edit Fields Node | Add, Edit, Clean Data in this comprehensive n8n tutorial. Step-by-step guide with video, code examples, and expert tips from the n8n Zero to Hero course.

Table of Contents

Overview

This lesson is part of the n8n AI Automation - Zero to Hero course, Section: 3. Deep Dive Concepts.

Watch the video above for the full tutorial, or read the written guide below.

What Is the Set Node (Edit Fields) in n8n?

The Set node, renamed Edit Fields in newer n8n versions, creates, edits, renames, or removes fields on the data items flowing through your workflow. It is how you shape, clean, and standardize data between two nodes without writing code, using either a visual field mapper or raw JSON. Think of it as the node that decides exactly what data moves forward.

How to Use the Set Node in n8n

Add an Edit Fields (Set) node, then pick a mode. Manual Mapping lets you add each field name and value, dragging in values from earlier nodes as expressions. JSON mode lets you define the whole output object at once. Turn on "Keep Only Set" to drop every other field and pass a clean payload to the next node or API.

Common uses: rename keys to match an API, set default values, type-cast strings to numbers, or trim a large object down to only the fields the next step needs.

Key Takeaways

  • Understanding the core concepts covered in this lesson
  • Practical, hands-on experience you can apply immediately
  • Tips from real-world n8n workflow implementations

Next Steps

Continue your n8n journey with the full n8n AI Automation - Zero to Hero course.

Frequently Asked Questions

The Set node, now called Edit Fields, lets you add, edit, rename, or remove fields on items moving through an n8n workflow. You will learn both Manual Mapping and JSON modes, and how 'Keep Only Set' produces a clean payload for the next node.

This lesson builds on earlier concepts. If you are new to n8n, start with Lesson 1 for the best learning experience.

Join the GenAI Unplugged community on Substack where Dheeraj answers questions and shares additional tips.

Dheeraj Sharma

Dheeraj Sharma

AI Systems Builder
Creator of the n8n Zero to Hero course (42 lessons, 31+ hours). I help solopreneurs build AI systems that grow revenue without growing workload.

Get the n8n Mastery Bundle

All workflows, cheat sheets, and premium resources from the entire course in one package.

Get Premium Resources