workflows.fit
Back to n8n workflows
n8n templateFreeBy ResilNext

Route AI tasks between OpenAI agents with confidence-based email fallback

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 AI agent for process...

CommunicationHITLCore NodesAILangchainDevelopmentUtilitySet
Loading interactive preview...

Template notes

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 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.

---

How It Works

1. Webhook Trigger The workflow starts when a request is received through a webhook endpoint.