The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"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
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Branching — IF + Switch(3) + Loop. Webhook trigger; 6 nodes.
Source: https://github.com/malharlakdawala/flowproof/blob/main/examples/workflows/branching.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
A production-ready authentication workflow implementing secure user registration, login, token verification, and refresh token mechanisms. Perfect for adding authentication to any application without
Portfolio Orchestrator. Uses httpRequest. Webhook trigger; 59 nodes.
This n8n template demonstrates how a simple Multi-Layer Perceptron (MLP) neural network can predict housing prices. The prediction is based on four key features, processed through a three-layer model.
github code Try yourself
This workflow receives new consult bookings via webhook (Calendly v2 or a generic scheduling tool), generates timed confirmation and reminder messages, runs each SMS through a separate compliance work