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": "Smoke Test - Switch Node",
"nodes": [
{
"parameters": {},
"id": "start",
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
100,
300
]
},
{
"parameters": {
"assignments": [
{
"name": "grade",
"value": "A"
}
]
},
"id": "set1",
"name": "Set Grade",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
300,
300
]
},
{
"parameters": {
"rules": [
{
"field": "$json.grade",
"operation": "equal",
"value": "A"
}
]
},
"id": "switch1",
"name": "Switch on Grade",
"type": "n8n-nodes-base.switch",
"typeVersion": 1,
"position": [
500,
300
]
},
{
"parameters": {
"assignments": [
{
"name": "result",
"value": "Honor Roll"
}
]
},
"id": "set_honor",
"name": "Set Honor Roll",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
700,
200
]
},
{
"parameters": {
"assignments": [
{
"name": "result",
"value": "Standard"
}
]
},
"id": "set_standard",
"name": "Set Standard",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
700,
400
]
}
],
"connections": {
"Start": {
"main": [
[
{
"node": "Set Grade",
"type": "main",
"index": 0
}
]
]
},
"Set Grade": {
"main": [
[
{
"node": "Switch on Grade",
"type": "main",
"index": 0
}
]
]
},
"Switch on Grade": {
"main": [
[
{
"node": "Set Honor Roll",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Standard",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Smoke Test - Switch Node. Uses start. Manual trigger; 5 nodes.
Source: https://github.com/neul-labs/m9m/blob/main/test-workflows/smoke/switch-node.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.
PostHog:Event:create:Identity:create:Alias:create:Track:page screen. Uses start, postHog. Manual trigger; 6 nodes.
This n8n template demonstrates how to identify new queries in Google Search Console that had no impressions in the past but appeared for the first time in the last 7 days. It also segments them into t
Demio:Event:getAll get register:Report:get. Uses start, demio. Manual trigger; 5 nodes.
This n8n template helps you detect page cannibalization in Google Search Console (GSC): situations where multiple pages on your site rank for the same query and more than one page gets clicks. Use it