금. 8μ›” 15th, 2025

D: The Merge Node in n8n is a powerful tool that allows you to combine data from multiple sources or branches in your workflow. Whether you’re merging arrays, joining JSON objects, or aggregating API responses, this node can save you tons of time! 🎯

In this guide, we’ll explore 10 real-world examples of how to use the Merge Node effectively. Let’s dive in!


πŸ”Ή 1. Basic Array Merging

Use Case: Combine two lists of products from different APIs.
Steps:

  1. Fetch data from API 1 (e.g., Shopify products).
  2. Fetch data from API 2 (e.g., WooCommerce products).
  3. Use the Merge Node in “Append” mode to combine both arrays.

Example Output:

[
  { "id": 1, "name": "T-Shirt", "source": "Shopify" },
  { "id": 2, "name": "Jeans", "source": "WooCommerce" }
]

πŸ”Ή 2. Merging JSON Objects by Key

Use Case: Combine user profiles from different databases.
Steps:

  1. Get user data from Database A (e.g., name & email).
  2. Get user data from Database B (e.g., address & phone).
  3. Use “Merge by Key” mode with id as the key.

Example Output:

{
  "id": 101,
  "name": "John Doe",
  "email": "john@example.com",
  "address": "123 Main St",
  "phone": "+123456789"
}

πŸ”Ή 3. Aggregating Survey Responses

Use Case: Combine multiple survey responses into a single dataset.
Steps:

  1. Collect responses from Google Forms & Typeform.
  2. Use “Merge” in “Keep Key Matches” mode to align responses by question_id.

Example Output:

[
  { "question_id": "Q1", "answer": "Yes", "source": "Google Forms" },
  { "question_id": "Q1", "answer": "No", "source": "Typeform" }
]

πŸ”Ή 4. Combining CSV & API Data

Use Case: Enrich CSV data with live API information.
Steps:

  1. Load a CSV file with product SKUs.
  2. Fetch real-time pricing from a Pricing API.
  3. Merge using “Overwrite” mode to update prices.

Example Output:

{ "sku": "P100", "name": "Laptop", "price": "$999" }

πŸ”Ή 5. Merging Parallel Workflow Branches

Use Case: Run multiple API checks and combine results.
Steps:

  1. Branch 1: Check FedEx shipping status.
  2. Branch 2: Check UPS shipping status.
  3. Use “Append” to merge both into a single report.

Example Output:

[
  { "carrier": "FedEx", "status": "Delivered" },
  { "carrier": "UPS", "status": "In Transit" }
]

πŸ”Ή 6. Joining CRM & Email Marketing Data

Use Case: Sync customer data between HubSpot & Mailchimp.
Steps:

  1. Extract contacts from HubSpot.
  2. Fetch tags from Mailchimp.
  3. Merge by “email” field to enrich profiles.

Example Output:

{
  "email": "user@example.com",
  "name": "Alice",
  "tags": ["Premium", "Newsletter"]
}

πŸ”Ή 7. Combining Multi-Page API Results

Use Case: Paginated API responses (e.g., Shopify orders).
Steps:

  1. Loop through pages using HTTP Request Node.
  2. Merge all pages into one array with “Append”.

Example Output:

[
  { "order_id": 1001, "total": "$50" },
  { "order_id": 1002, "total": "$75" }
]

πŸ”Ή 8. Merging Time-Series Data

Use Case: Combine daily sales reports.
Steps:

  1. Fetch yesterday’s sales from DB.
  2. Fetch today’s sales from API.
  3. Merge and sort by timestamp.

Example Output:

[
  { "date": "2023-10-01", "sales": 1200 },
  { "date": "2023-10-02", "sales": 1500 }
]

πŸ”Ή 9. Handling Conflicting Fields

Use Case: Priority-based data merging (e.g., “CRM overrides ERP”).
Steps:

  1. Set “Overwrite” mode.
  2. Define priority sources (e.g., Salesforce > SAP).

Example Output:

{ "client_id": "C100", "name": "Updated Name" }

πŸ”Ή 10. Dynamic Data Enrichment

Use Case: Add weather data to event locations.
Steps:

  1. Get event locations from Google Calendar.
  2. Fetch weather from OpenWeatherMap.
  3. Merge by “location” + “date”.

Example Output:

{
  "event": "Conference",
  "location": "Berlin",
  "weather": "Sunny",
  "temp": "22°C"
}

πŸŽ‰ BONUS TIP: Debugging Merges

  • Use “Keep Key Matches” to avoid empty results.
  • Add a “Function Node” to log merged data.

Final Thoughts

The Merge Node is a game-changer for data orchestration in n8n! πŸš€ Whether you’re building ETL pipelines, CRM syncs, or multi-source reports, mastering this node will make your workflows 10x more powerful.

πŸ’‘ Pro Tip: Experiment with different merge modes (Append, Merge by Key, Overwrite) to see which fits your use case best!

πŸ‘‰ Now it’s your turn! Try these examples and automate like a pro. Happy n8n-ing! πŸ˜ƒ

λ‹΅κΈ€ 남기기

이메일 μ£Όμ†ŒλŠ” κ³΅κ°œλ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. ν•„μˆ˜ ν•„λ“œλŠ” *둜 ν‘œμ‹œλ©λ‹ˆλ‹€