Use this powerful n8n workflow to automate the daily synchronization of new Magento 2 customer data to Google Contacts and Google Sheets, ensuring zero duplication using the Compare Datasets n8n node.
Download this n8n workflow template and start using it instantly.
Managing customer data across multiple platforms without creating duplicates can be a significant headache, especially for active e-commerce sites. This robust n8n workflow is designed to solve that precise problem. It runs on a schedule, identifies new customers added to your Magento 2 store since the last sync, and meticulously checks a Google Sheet logging previous syncs before creating a new entry.
By leveraging the built-in logic of the n8n platform, this n8n workflow ensures that only truly new customers are pushed to Google Contacts, and then their email is immediately logged in the Google Sheet, closing the loop and preparing for the next run. It is an essential n8n node combination for maintaining clean data hygiene.
The entire process is initiated by a scheduled n8n trigger, which activates the daily sync routine.
Compare Datasets n8n node then cross-references the list of new customer emails against the existing emails retrieved from Google Sheets. Only customers marked as 'not existing' (truly new customers) are passed forward.To deploy this n8n workflow, follow these steps:
GET PREVIOUS DATE): Ensure the date calculation logic correctly formats the date needed by your Magento API.This n8n workflow leverages several powerful nodes:
Schedule Trigger: This is the initial n8n trigger, configured to start the synchronization process at specified intervals (e.g., daily).
GET PREVIOUS DATE (Code Node): A custom n8n node used to dynamically generate the required date filter (e.g., updated_at > YYYY-MM-DD) for the Magento API call. This is vital for fetching only the most recent data.
Get Existing Emails (Google Sheets n8n node): Reads a column from a specified spreadsheet to retrieve the comprehensive list of emails already processed, serving as the source of truth for deduplication.
Get New Customers (HTTP Request n8n node): Connects to the external API (Magento 2) using parameters derived from the Code node, retrieving a list of customer objects.
Compare Datasets (n8n node): The core deduplication tool. It compares the emails fetched from Google Sheets (Dataset 1) against the new customer emails (Dataset 2). It outputs data only when the email is unique to Dataset 2, effectively filtering out duplicates.
Create Google Contact (Google Contacts n8n node): Creates the contact record in Google Contacts using the filtered customer data (name, email) outputted by the Compare Datasets n8n node.
Automate daily MLB pitcher vs. batter analysis using a sophisticated n8n workflow. Fetch real-time stats, filter high-value matchups (ERA/OPS), and automatically update Google Sheets and send notifications via Telegram. This n8n template showcases advanced data manipulation.

Use this powerful n8n workflow to scrape daily LinkedIn job postings using an Apify n8n node, save results to Google Sheets, and deliver custom alerts via Gmail.

Automate daily Jira reporting using this advanced n8n workflow. It fetches new tickets, summarizes conversations with GPT-5, and sends a professional email report via Gmail.

Automate daily meeting summaries using this robust n8n workflow. It leverages the Google Gemini AI Agent and Google Calendar data, broadcasting results simultaneously to Slack, Discord, and WhatsApp. Find more n8n templates here.


Experienced Magento 2 Developer with 10+ years of expertise in building and optimizing eCommerce solutions. Over the past year, I’ve expanded my skills into workflow automation using n8n, streamlining business processes and integrating systems for efficiency. Passionate about solving complex problems, enhancing performance, and leveraging automation to drive smarter workflows.







































