Templates / Route AI tasks with OpenAI GPT‑4.1‑mini and confidence‑based email fallback

Route AI tasks with OpenAI GPT‑4.1‑mini and confidence‑based email fallback

Ready for 3.0

by ResilNext ✓ · 9 views · created 2026-04-03 · Support Chatbot, AI Summarization

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

  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 (Simple Task Agent Tool, Complex Task Agent Tool)
  5. Send Fallback Alert (Send Email): sends an email over SMTP

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 (8)

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…

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.