n8n tutorial: cleaning and transforming your data with Edit Fields, expressions and the Code node (without abusing it)
In almost all of the n8n workflows that we build for SMEs, there comes a point where the data arrives "dirty": a phone number written in three different ways, a date in text format, an amount with a comma, an empty field that breaks the next step. Before connecting an AI agent or a CRM, you have to clean it up. n8n offers three tools for this, from the simplest to the most powerful: the node…
The article discusses how to clean and normalize data in workflows built with n8n, a tool for small and medium-sized enterprises (SMEs). It highlights three tools for data cleaning: Edit Fields, expressions, and the Code node, and provides guidance on when to use each. The article uses a concrete example of a contact form that sends data to n8n, which needs to be cleaned and transformed before being sent to a CRM or AI agent. The example demonstrates how to use each of the three tools to achieve the desired output.
Summarised by urgent.news, not translated. Machine-written; may contain errors — check the original.
Source: dev.to