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

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

Ready for 3.0

by ResilNext ✓ · 232 views · created 2026-03-09 · Engineering, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 14 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects OpenAI Chat Model.

How it runs

Trigger: When an HTTP GET request hits its webhook URL.

  1. Workflow Configuration (Edit Fields (Set)): sets 2 fields: userRequest, confidenceThreshold
  2. Supervisor Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Supervisor; output parser: Routing Decision Parser
  3. Check Confidence Score (If): checks a condition and branches into true / false
  4. Execute Selected Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Executor; 2 tools (Complex Task Agent Tool (5.4), Simple Task Agent Tool(5 MINI))
  5. Send Fallback Alert (Send Email): sends an email over SMTP
  6. Respond to Webhook: sends the response back to the webhook caller

Services it uses

OpenAI Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

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…

Excerpt from ResilNext's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.