Learn how to prepare, clean, and map data fields using the crucial Set n8n node before performing an efficient upsert operation into Google Sheets. This practical n8n workflow demonstrates essential data handling.
Download this n8n workflow template and start using it instantly.
Data analysts and operations teams needing to standardize data formats before storage.
Users learning how to leverage the Set n8n node for mandatory data cleaning.
Anyone seeking reliable n8n templates for integrating data sources with Google Sheets.
System administrators looking for robust n8n workflow examples.
A common challenge in automation is dealing with data mismatch: the source system exports data fields (e.g., name) that do not match the required format of the destination system (e.g., Full name). This powerful n8n workflow addresses this by demonstrating how to use the versatile Set n8n node to restructure and prepare items before insertion.
This specific n8n workflow fetches simulated customer data, renames crucial fields (id to ID), adds calculated fields (Created time), and then uses the Google Sheets n8n node to perform an efficient upsert (update existing records or insert new ones). Utilizing this n8n template ensures that your data is always standardized, clean, and ready for use in downstream applications, maximizing the value of your overall n8n automation strategy.
This automation is initiated manually, making it an excellent n8n template for testing and demonstration, starting with a basic n8n trigger.
name field is mapped to Full name, and a new field Created time is dynamically added using the $now expression. The configuration is set to Keep Only Set to ensure that only the perfectly structured data moves forward in the n8n workflow.upsert operation, the n8n node efficiently updates existing records based on keys or creates new rows if the keys are not found in the specified spreadsheet and range (A:C).To deploy this useful n8n workflow, follow these steps:
Sheets). You will need to set up an OAuth2 connection to Google Sheets, ensuring n8n has permission to read and write to the specific spreadsheet you intend to target.ID, Full name, Email, and Created time. On clicking 'execute' (Manual Trigger): The starting point for this n8n workflow. It is a standard n8n trigger used to manually initiate the execution cycle.
Customer Datastore - Generate some data (n8nTrainingCustomerDatastore): Simulates fetching customer records. It uses the getAllPeople operation to generate sample input data that requires cleaning.
Set - Prepare fields (Set n8n node): This core transformation n8n node is crucial for data integrity.
Function: Renames fields (e.g., id to ID, name to Full name), drops extraneous data, and adds a dynamic timestamp (Created time using {{$now}}).
Key Configuration: keepOnlySet is enabled, ensuring only the newly defined, properly formatted fields proceed to the next n8n node.
Create or Update record in Google Sheet (Google Sheets n8n node): The final action n8n node.
Function: Performs an upsert operation, which intelligently handles existing records (updates them) and new records (inserts them).
Key Configuration: Uses OAuth2 authentication and targets a specific spreadsheet ID with the range A:C for updating customer data.
Implement a proactive health alert system using a sophisticated n8n workflow. This n8n template analyzes vital signs with GPT-4, calculates dynamic risk scores, and automates urgent notifications via SMS and Slack.

Automate HDB flat price forecasting using this advanced n8n workflow. Integrates GPT-4o, time series analysis, and statistical modeling, saving predictions to Google Sheets.

Deploy this sophisticated n8n workflow to automate daily restaurant food waste prediction using Gemini AI and Google Sheets. Optimize inventory, reduce costs, and leverage smart forecasting with this essential n8n template.

Use this robust n8n workflow template utilizing Redis to implement locking mechanisms, preventing concurrent execution of critical automation tasks in your n8n workflows.

Use this robust n8n workflow to prevent duplicate processing by centrally managing item states in Redis. Features include automatic troubleshooting links and detailed audit logging.









































