Learn Data Synchronization: Warehouse Inventory Audit Tutorial
## How it works This template is a hands-on tutorial for one of n8n's most powerful data tools: the **Compare Datasets** node. It's the perfect next step after learning basic logic, showing you how to build robust data synchronization workflows. We use a simple **Warehouse Audit** analogy to make the concept crystal clear: * **Warehouse A:** Our main, source of truth database. This is the master list of what our inventory should be. * **Warehouse B:** A second, remote database (like a Notion page or Google Sheet) that we need to keep in sync. * **The Compare Datasets Node:** This is our **Auditor**. It takes both inventory lists and meticulously compares them to find any discrepancies. The Auditor then sorts every item into one of four categories, which correspond to the node's four outputs: 1. **In A only:** New products found in our main warehouse that need to be **added** to Warehouse B. 2. **Same:** Products that match perfectly in both warehouses. **No action needed!** 3. **Different:** Products that exist in both places but have different details (e.g., stock count). These need to be **updated** in Warehouse B. 4. **In B only:** Extra products found in Warehouse B that aren't in our master list. These need to be **deleted**. This pattern is the foundation for any two-way data sync you'll ever need to build. ## Set up steps **Setup time: 0 minutes!** This workflow is a self-contained tutorial and requires no setup or credentials. 1. Click **Execute Workflow** to start the audit. 2. Explore the two `Set` nodes (Warehouse A and Warehouse B) to see the initial data we are comparing. 3. Click on **The Auditor (Compare Datasets node)** to see how it's configured to use `product_id` as the matching key. 4. Follow the outputs to the four `NoOp` nodes to see which products were sorted into each category. 5. Read the sticky notes next to each output—they explain exactly why each item ended up there.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
Web Scraping & Research Engine
8 hand-picked workflows for $59.00.
That is $7.38 each, vs $14.99 for this one alone.
View bundleSecure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Data & Analytics workflows
- Generate AI viral videos with VEO 3 and upload to TikTok$14.99
- Generate a daily multi-asset market report with TwelveData, Groq and Google Sheets$14.99
- Build an OpenAI RAG system with document upload, semantic search and caching$24.99
- Automate Website Content Scraping and SEO Keyword Extraction with GPT-4o-mini and Airtable$14.99
- Process Contact Form Submissions with Validation and MongoDB Storage$14.99
- Add webhook data to a Google Sheet$2.99
More from Lucas Peyrin
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.