Objective: Combine two separate data streams into one list.

Screenshot 2025-11-22 at 12.39.08 AM.png

{
  "nodes": [
    {
      "parameters": {},
      "id": "1abc1503-423c-4bf6-9c97-ee6e4c52f83c",
      "name": "When clicking \\"Execute Workflow\\"",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -272,
        32
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "name": "Source",
              "value": "Database A",
              "type": "string",
              "id": "b8e16fd9-8781-4592-ab5e-02e6894996bc"
            },
            {
              "name": "Data",
              "value": "Adil Hidayat",
              "type": "string",
              "id": "c0d3353f-d6a8-4b25-8708-3fcbb64da509"
            }
          ]
        },
        "options": {}
      },
      "id": "fa8f1e09-b0f7-44f0-8b90-f0369fd3863e",
      "name": "Stream A",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        -48,
        -64
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "name": "Source",
              "value": "Database B",
              "type": "string",
              "id": "9d1c4064-06b6-4ae1-a5c1-d817d765162f"
            },
            {
              "name": "Data",
              "value": "Pendakwah Teknologi",
              "type": "string",
              "id": "587afb99-cb11-4936-bffc-bc59007f8203"
            }
          ]
        },
        "options": {}
      },
      "id": "c0dfdb22-ce01-4990-8270-67c8660e1596",
      "name": "Stream B",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        -48,
        128
      ]
    },
    {
      "parameters": {},
      "id": "5db21580-495e-45af-a3ea-f5643f5589b7",
      "name": "Merge (Append)",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3,
      "position": [
        176,
        32
      ]
    },
    {
      "parameters": {
        "content": "## Lab 7: The Merger\\n1. **Parallel Execution:** The Trigger starts **both** Stream A and Stream B at the same time.\\n2. **Merge Node:** Waits for both to finish, then combines the results.\\n3. **Mode:** set to `Append` (stack them on top of each other).",
        "height": 620,
        "width": 866,
        "color": 4
      },
      "id": "0ca14d5e-ee26-4aef-91d5-ac4c10934e1d",
      "name": "Instructions",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -432,
        -320
      ]
    }
  ],
  "connections": {
    "When clicking \\"Execute Workflow\\"": {
      "main": [
        [
          {
            "node": "Stream A",
            "type": "main",
            "index": 0
          },
          {
            "node": "Stream B",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Stream A": {
      "main": [
        [
          {
            "node": "Merge (Append)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Stream B": {
      "main": [
        [
          {
            "node": "Merge (Append)",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "instanceId": "82cc682d3f33add4f11a78e1f29750bf4ba4e425478ba4b17330f9bf15960ec6"
  }
}