Templates / AI orchestrator: dynamically selects models based on input type

AI orchestrator: dynamically selects models based on input type

Ready for 3.0

by Davide Boizza ✓ · 20,116 views · created 2025-08-05 · 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 11 nodes and runs when a chat message arrives. Along the way it connects Model Selector, Anthropic Chat Model, Google Gemini Chat Model and OpenAI Chat Model and 1 more.

How it runs

Trigger: When a chat message arrives.

  1. Request Type (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
  2. AI Agent: runs an AI agent, with model: Model Selector; memory: Simple Memory

Services it uses

Model SelectorAnthropic Chat ModelGoogle Gemini Chat ModelOpenAI Chat ModelOpenRouter 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 (10)

From the author

This workflow is designed to intelligently route user queries to the most suitable large language model (LLM) based on the type of request received in a chat environment. It uses structured classification and model selection to optimize both performance and…

Excerpt from Davide Boizza'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.