{
  "name": "🎓 Learn Workflow Logic with Merge, IF & Switch Operations",
  "nodes": [
    {
      "id": "d6cf9b3d-66b8-4022-8c9d-698e89cd22fd",
      "name": "Start Sorting",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -880,
        608
      ]
    },
    {
      "id": "b8c72a1e-0268-4d99-8141-ca14e35cbd6a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1360,
        128
      ],
      "parameters": {
        "width": 624,
        "height": 660,
        "content": "### Tutorial: The Logic Trio (Merge, IF, Switch)\n\nWelcome! This workflow will teach you the three most important nodes for controlling the flow of your data.\n\n**The Analogy: A Package Sorting Center**"
      }
    },
    {
      "id": "81532695-73c0-4357-a957-3d0ef580578f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        192
      ],
      "parameters": {
        "width": 384,
        "height": 604,
        "content": "### 1. The Merge Node\n\n**Analogy:** A conveyor belt where packages from different loading docks (the `Set` nodes) come together.\n\n**What it does:** The Merge node combines multiple streams of data int"
      }
    },
    {
      "id": "dadbac54-6b31-4a0f-8d5e-b6121467e90e",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        192
      ],
      "parameters": {
        "width": 384,
        "height": 596,
        "content": "### 2. The IF Node\n\n**Analogy:** A simple sorting gate with two paths: a \"true\" path and a \"false\" path.\n\n**What it does:** The IF node checks if a condition is met. If it's true, the data goes down t"
      }
    },
    {
      "id": "0c330031-eab5-4ee3-8b11-91aee526952a",
      "name": "Add 'Fragile' Handling",
      "type": "n8n-nodes-base.set",
      "position": [
        624,
        512
      ]
    },
    {
      "id": "d14c0e68-3823-4f15-98eb-58a0d4983861",
      "name": "Add 'Standard' Handling",
      "type": "n8n-nodes-base.set",
      "position": [
        624,
        704
      ]
    },
    {
      "id": "2ebde854-aa6b-48de-83b1-33950a1486e0",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        272
      ],
      "parameters": {
        "width": 384,
        "height": 552,
        "content": "### Merge Again?\n\n**Why do we need another Merge node here?**\n\nAfter the IF node, our data was split into two different paths. Before we can perform the *next* sorting step on all packages, we need to"
      }
    },
    {
      "id": "66ca4ac5-aceb-426e-ab22-50c012602a85",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1232,
        176
      ],
      "parameters": {
        "width": 400,
        "height": 648,
        "content": "### 3. The Switch Node\n\n**Analogy:** An advanced sorting machine that can send packages to many different destinations.\n\n**What it does:** The Switch node is like an IF node with multiple doors. It ch"
      }
    },
    {
      "id": "10f56a78-85cd-4c8b-88e0-b6b3f0346e89",
      "name": "Send to London Bin",
      "type": "n8n-nodes-base.set",
      "position": [
        1776,
        320
      ]
    },
    {
      "id": "2cba95bd-2c9b-42d1-90cb-74c2edf97ec7",
      "name": "Send to New York Bin",
      "type": "n8n-nodes-base.set",
      "position": [
        1776,
        512
      ]
    },
    {
      "id": "1531b4e3-eece-4c89-98bd-e9633fdd77f6",
      "name": "Send to Tokyo Bin",
      "type": "n8n-nodes-base.set",
      "position": [
        1776,
        704
      ]
    },
    {
      "id": "d46604a8-663e-42bd-a175-a34edb8953fb",
      "name": "Default Bin",
      "type": "n8n-nodes-base.set",
      "position": [
        1776,
        896
      ]
    },
    {
      "id": "570040aa-3f8d-4f59-904a-ee3deb36a9df",
      "name": "Final Sorted Packages",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2160,
        624
      ]
    },
    {
      "id": "756313e7-d2f3-45cc-a4f5-f91e7a8f778a",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2032,
        272
      ],
      "parameters": {
        "width": 368,
        "height": 560,
        "content": "### All Packages Sorted!\n\nCongratulations! You've successfully used the three logic nodes to sort your packages.\n\n**You learned how to:**\n- **Merge** data from different sources.\n- Use **IF** for simp"
      }
    },
    {
      "id": "4466652f-cc2b-47b1-bf4f-98d89753881f",
      "name": "3. Switch Node",
      "type": "n8n-nodes-base.switch",
      "position": [
        1392,
        576
      ]
    },
    {
      "id": "add68013-30a7-43db-93d4-5af691764684",
      "name": "Create Letter",
      "type": "n8n-nodes-base.set",
      "position": [
        -496,
        416
      ]
    },
    {
      "id": "5af75a45-b912-41c6-b073-03188ae914ef",
      "name": "1. Merge Node",
      "type": "n8n-nodes-base.merge",
      "position": [
        -128,
        592
      ]
    },
    {
      "id": "11627c3b-465a-4a4a-bfe9-95c08d502f2f",
      "name": "2. IF Node",
      "type": "n8n-nodes-base.if",
      "position": [
        272,
        608
      ]
    },
    {
      "id": "4b5b5ba4-25e1-4ef0-93d8-50670dbc1ce0",
      "name": "Re-group All Packages",
      "type": "n8n-nodes-base.merge",
      "position": [
        960,
        608
      ]
    },
    {
      "id": "21d270c4-c19c-42ed-a6e3-67ecedd1c0c9",
      "name": "Create 2nd Letter",
      "type": "n8n-nodes-base.set",
      "position": [
        -496,
        608
      ]
    },
    {
      "id": "8a295323-9515-410c-9ac1-fb431d08cea2",
      "name": "Create Parcel",
      "type": "n8n-nodes-base.set",
      "position": [
        -496,
        800
      ]
    },
    {
      "id": "353ac679-f133-4028-955a-f4be07ed586b",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2432,
        -256
      ],
      "parameters": {
        "width": 544,
        "height": 1088,
        "content": "## Was this helpful? Let me know!\n[![clic](https://supastudio.ia2s.app/storage/v1/object/public/assets/n8n/clic_down_lucas.gif)](https://workflows.ac/form)\n\nI really hope this template helped you. You"
      }
    }
  ],
  "connections": {
    "2. IF Node": {
      "main": [
        [
          {
            "node": "Add 'Fragile' Handling",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Add 'Standard' Handling",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Default Bin": {
      "main": [
        [
          {
            "node": "Final Sorted Packages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1. Merge Node": {
      "main": [
        [
          {
            "node": "2. IF Node",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Letter": {
      "main": [
        [
          {
            "node": "1. Merge Node",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Parcel": {
      "main": [
        [
          {
            "node": "1. Merge Node",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Start Sorting": {
      "main": [
        [
          {
            "node": "Create Parcel",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create 2nd Letter",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create Letter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3. Switch Node": {
      "main": [
        [
          {
            "node": "Send to London Bin",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send to New York Bin",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send to Tokyo Bin",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Default Bin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create 2nd Letter": {
      "main": [
        [
          {
            "node": "1. Merge Node",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Send to Tokyo Bin": {
      "main": [
        [
          {
            "node": "Final Sorted Packages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send to London Bin": {
      "main": [
        [
          {
            "node": "Final Sorted Packages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send to New York Bin": {
      "main": [
        [
          {
            "node": "Final Sorted Packages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Re-group All Packages": {
      "main": [
        [
          {
            "node": "3. Switch Node",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add 'Fragile' Handling": {
      "main": [
        [
          {
            "node": "Re-group All Packages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add 'Standard' Handling": {
      "main": [
        [
          {
            "node": "Re-group All Packages",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}