Route AI tasks with OpenAI GPT‑4.1‑mini and confidence‑based email fallback
Ready for 3.0Ready 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 13 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.
- Workflow Configuration (Edit Fields (Set)): sets 2 fields: userRequest, confidenceThreshold
- Supervisor Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Supervisor; output parser: Routing Decision Parser
- Check Confidence Score (If): checks a condition and branches into true / false
- Execute Selected Agent (AI Agent): runs an AI agent, with model: OpenAI Model - Executor; 2 tools (Simple Task Agent Tool, Complex Task Agent Tool)
- Send Fallback Alert (Send Email): sends an email over SMTP
Services it uses
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 (8)
- Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - If
n8n-nodes-base.if - AI Agent Tool
@n8n/n8n-nodes-langchain.agentTool - Send Email
n8n-nodes-base.emailSend - Webhook
n8n-nodes-base.webhook
From the author
Overview This workflow intelligently routes incoming user requests using AI-powered task classification. It determines whether a task is simple or complex, assigns a confidence score, and dynamically delegates execution to the appropriate agent. If the…