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": "Smart Router Workflow",
"nodes": [
{
"parameters": {
"path": "smart-router",
"options": {}
},
"id": "webhook-trigger",
"name": "Smart Router Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
240,
300
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict"
},
"conditions": [
{
"id": "content-request",
"leftValue": "={{ $json.requestType }}",
"rightValue": "content",
"operator": {
"type": "string",
"operation": "equals"
}
},
{
"id": "social-request",
"leftValue": "={{ $json.requestType }}",
"rightValue": "social",
"operator": {
"type": "string",
"operation": "equals"
}
},
{
"id": "email-request",
"leftValue": "={{ $json.requestType }}",
"rightValue": "email",
"operator": {
"type": "string",
"operation": "equals"
}
}
],
"combinator": "or"
},
"options": {}
},
"id": "smart-router",
"name": "Route Request",
"type": "n8n-nodes-base.if",
"typeVersion": 2,
"position": [
460,
300
]
},
{
"parameters": {
"url": "http://localhost:5678/webhook/content-generator",
"sendQuery": false,
"sendHeaders": false,
"sendBody": true,
"contentType": "json",
"body": "={{ $json }}"
},
"id": "content-route",
"name": "Route to Content Factory",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
680,
180
]
},
{
"parameters": {
"url": "http://localhost:5678/webhook/social-media",
"sendQuery": false,
"sendHeaders": false,
"sendBody": true,
"contentType": "json",
"body": "={{ $json }}"
},
"id": "social-route",
"name": "Route to Social Media",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
680,
300
]
},
{
"parameters": {
"url": "http://localhost:5678/webhook/email-automation",
"sendQuery": false,
"sendHeaders": false,
"sendBody": true,
"contentType": "json",
"body": "={{ $json }}"
},
"id": "email-route",
"name": "Route to Email Automation",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
680,
420
]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={ \"status\": \"routed\", \"target\": \"{{ $json.requestType }}\", \"timestamp\": \"{{ new Date().toISOString() }}\" }"
},
"id": "success-response",
"name": "Success Response",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
900,
300
]
}
],
"connections": {
"Smart Router Webhook": {
"main": [
[
{
"node": "Route Request",
"type": "main",
"index": 0
}
]
]
},
"Route Request": {
"main": [
[
{
"node": "Route to Content Factory",
"type": "main",
"index": 0
}
],
[
{
"node": "Route to Social Media",
"type": "main",
"index": 0
}
],
[
{
"node": "Route to Email Automation",
"type": "main",
"index": 0
}
]
]
},
"Route to Content Factory": {
"main": [
[
{
"node": "Success Response",
"type": "main",
"index": 0
}
]
]
},
"Route to Social Media": {
"main": [
[
{
"node": "Success Response",
"type": "main",
"index": 0
}
]
]
},
"Route to Email Automation": {
"main": [
[
{
"node": "Success Response",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"tags": [
"automation",
"routing"
],
"triggerCount": 1,
"updatedAt": "2024-01-15T00:00:00.000Z",
"versionId": "1"
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Smart Router Workflow. Uses httpRequest. Webhook trigger; 6 nodes.
Source: https://github.com/longsangautomation-max/longsang/blob/9114604c1eab55c552312bb3e09de9914988af6e/workflows/smart-router.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.
This template is designed for developers, businesses, and service providers who need to programmatically check Calendly availability. It's perfect for: Web developers building custom booking interface
Never lose a prospect to a missed call again. This workflow sends an automatic "sorry we missed you" SMS within seconds, follows up 2 hours later if there's no reply, and enrolls unresponsive contacts
Send Postcards to Contacts Automatically using CentralStationCRM and EchtPost. Uses httpRequest. Webhook trigger; 12 nodes.
Send Postcards to Contacts Automatically using CentralStationCRM and EchtPost. Uses httpRequest. Webhook trigger; 12 nodes.
Send Postcards to Contacts Automatically using CentralStationCRM and EchtPost. Uses httpRequest. Webhook trigger; 12 nodes.