Block 1 - Workflow Configuration
- Type / Role
- n8n-nodes-base.set - set
- Config choices
- Version 3.4
Overview This workflow demonstrates an AI task routing system using multiple agents in n8n . It analyzes incoming user requests, determines their complexity, and routes them to the most appropriate...
n8n-nodes-base.set, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.if, n8n-nodes-base.emailsend, n8n-nodes-base.stickynote, n8n-nodes-base.webhook
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by ResilNext.
Original n8n.io sourceThis workflow demonstrates an AI task routing system using multiple agents in n8n. It analyzes incoming user requests, determines their complexity, and routes them to the most appropriate AI agent for processing.
A Supervisor Agent evaluates each request and classifies it as either simple or complex, returning a confidence score and reasoning. Based on this classification, an orchestrator agent delegates the task to the correct specialized agent.
The workflow also includes a confidence validation mechanism. If the classification confidence falls below a defined threshold, an email alert is sent to an administrator for manual review.
This architecture helps build scalable AI systems where tasks are intelligently routed to agents optimized for different levels of complexity.
Webhook Trigger The workflow starts when a request is received through a webhook endpoint.
Workflow Configuration The request and a configurable confidence threshold are stored using a Set node.
Supervisor Agent Classification The Supervisor Agent analyzes the user request and determines whether the task is simple or complex, returning a confidence score and reasoning.
Structured Output Parsing The classification result is parsed using a structured output parser to ensure reliable JSON formatting.
Confidence Validation An IF node checks whether the confidence score meets the configured threshold.
Agent Orchestration If the confidence is sufficient, an orchestrator agent delegates the task to either:
Fallback Handling If the confidence score is too low, the workflow sends an email alert requesting manual review.
Webhook Response The final AI response is returned to the original requester through the Respond to Webhook node.
userRequest placeholder if testing manually.confidenceThreshold if required.This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Route AI tasks between OpenAI agents with confidence-based email fallback |
|---|---|
| Complexity | advanced |
| Nodes | 21 |
| Categories | Engineering, AI Chatbot |
| Author | ResilNext |
| Published | 09 Mar 2026 |
Use the JSON export at /data/workflows/13965/13965.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Overview This workflow demonstrates an AI task routing system using multiple agents in n8n . It analyzes incoming user requests, determines their complexity, and routes them to the most appropriate...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, AI Chatbot use case.