AI Orchestrator: dynamically Selects Models Based on Input Type
n8n template #7004Summary
Use templateThis 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 cost-efficiency in AI-driven conversations. It dynamically routes requests to specialized AI models based on content type, optimizing response quality and efficiency. Benefits Smart Model Routing: Reduces costs by using lighter models for general tasks and reserving heavier models for complex needs. Scalability: Easily expandable by adding more request types or LLMs. Maintainability: Clear logic separation between classification, model ro
How to set it up
- Open template #7004 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
- Create 5 credentials under Credentials β Add credential: Anthropic Chat Model, OpenAI Chat Model, Google Gemini Chat Model, OpenRouter Chat Model, Model Selector. Then open each of those nodes and pick the credential.
- Check the model in the AI Agent node. The template may point at a model your account can't use; swap it for one you have access to.
- Click Execute workflow and step through each node's output to confirm the data looks right.
- Toggle the workflow to Active so its trigger runs on its own.
Hand off to your agent
Prompt
Help me set up the n8n workflow "AI Orchestrator: dynamically Selects Models Based on Input Type" (https://n8n.io/workflows/7004). It uses: AI Agent, Basic LLM Chain, Anthropic Chat Model, OpenAI Chat Model, Simple Memory, Structured Output Parser, Google Gemini Chat Model, OpenRouter Chat Model, Model Selector. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
AI AgentBasic LLM ChainAnthropic Chat ModelOpenAI Chat ModelSimple MemoryStructured Output ParserGoogle Gemini Chat ModelOpenRouter Chat ModelModel Selector
Questions
Yes. Davide Boizza published it free on n8n.io as a verified creator, and it has 5,438 views. It runs on n8n Cloud or a self-hosted n8n instance.
Anthropic Chat Model, OpenAI Chat Model, Google Gemini Chat Model, OpenRouter Chat Model, Model Selector. The other 4 nodes are built into n8n.
Similar workflows
NameViews
- Explore n8n Nodes in a Visual Reference Library5,197
- AI-Powered RAG Document Processing & Chatbot with Google Drive, Supabase, OpenAI11K
- π€ AI content generation for Auto Service π Automate your social mediaπ²!27K
- Allow your AI to call an API to fetch data21K
- Automate social media content with AI for Instagram, Facebook, LinkedIn & X16K
- Build an AI-Powered Tech Radar Advisor with SQL DB, RAG, and Routing Agents12K
- Automated LinkedIn Lead Generation, Scoring & Communication with AI-Agent12K
- π€π¬ Conversational AI Chatbot with Google Gemini for Text & Image | Telegram11K