Skip to main content

πŸŽ“ Learn Data Synchronization: Warehouse Inventory Audit Tutorial

Workflow preview

Workflow preview
100%
πŸŽ“ Learn Data Synchronization: Warehouse Inventory Audit Tutorial preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 bui...

Best for

  • Engineering automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.noop, n8n-nodes-base.set, n8n-nodes-base.comparedatasets, n8n-nodes-base.splitout

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Lucas Peyrin.

Original n8n.io source

1.1 Workflow description

Title
πŸŽ“ Learn Data Synchronization: Warehouse Inventory Audit Tutorial
Workflow name
πŸŽ“ 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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Start Audit

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - βž• Add to Warehouse B

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 5 - Warehouse A (Source of Truth)

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - βœ… All Good (Do Nothing)

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 7 - πŸ”„ Update in Warehouse B

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 8 - ❌ Remove from Warehouse B

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 9 - The Auditor

Type / Role
n8n-nodes-base.compareDatasets - compareDatasets
Config choices
Version 2.3

Block 10 - Warehouse B (To be Synced)

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note11

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note12

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note13

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Split Out Prducts (B)

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 16 - Split Out Prducts (A)

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 17 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow πŸŽ“ Learn Data Synchronization: Warehouse Inventory Audit Tutorial
Complexity advanced
Nodes 17
Categories Engineering
Author Lucas Peyrin
Published 14 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5999/5999.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does πŸŽ“ Learn Data Synchronization: Warehouse Inventory Audit Tutorial do?

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 bui...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering use case.