{
  "name": "Branching \u2014 IF + Switch(3) + Loop",
  "nodes": [
    {
      "id": "t",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        200,
        300
      ],
      "parameters": {
        "path": "signup",
        "httpMethod": "POST"
      }
    },
    {
      "id": "if",
      "name": "Is Active",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        440,
        300
      ],
      "parameters": {
        "conditions": {
          "conditions": [
            {
              "leftValue": "={{$json.body.status}}",
              "rightValue": "active",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ]
        }
      }
    },
    {
      "id": "sw",
      "name": "Route By Tier",
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3,
      "position": [
        680,
        220
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "vip"
            },
            {
              "outputKey": "pro"
            },
            {
              "outputKey": "free"
            }
          ]
        },
        "options": {
          "fallbackOutput": "extra"
        }
      }
    },
    {
      "id": "loop",
      "name": "Batch Items",
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        920,
        220
      ],
      "parameters": {
        "batchSize": 10
      }
    },
    {
      "id": "done",
      "name": "Mark Done",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3,
      "position": [
        1160,
        220
      ],
      "parameters": {}
    },
    {
      "id": "inactive",
      "name": "Log Inactive",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        680,
        420
      ],
      "parameters": {}
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Is Active",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Active": {
      "main": [
        [
          {
            "node": "Route By Tier",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Inactive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route By Tier": {
      "main": [
        [
          {
            "node": "Batch Items",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Batch Items",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Batch Items",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Inactive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Batch Items": {
      "main": [
        [
          {
            "node": "Mark Done",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Route By Tier",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {},
  "active": false
}