🔐🦙Private & Local Ollama Self-Hosted + Dynamic LLM Router
n8n template #3139Summary
Use templateWho is this for? This workflow template is designed for AI enthusiasts, developers, and privacy-conscious users who want to leverage the power of local large language models (LLMs) without sending data to external services. It's particularly valuable for those running Ollama locally who want intelligent routing between different specialized models. What problem is this workflow solving? When working with multiple local LLMs, each with different strengths and capabilities, it can be challenging to manually select the right model for each specific task. This workflow automatically analyzes user prompts and routes them to the most appropriate specialized Ollama model, ensuring optimal performan
How to set it up
- Open template #3139 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
- Create a credential under Credentials → Add credential: Ollama Chat Model. 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 "🔐🦙Private & Local Ollama Self-Hosted + Dynamic LLM Router" (https://n8n.io/workflows/3139). It uses: AI Agent, Ollama Chat Model, Simple Memory. 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
Questions
Yes. Joseph LePage published it free on n8n.io as a verified creator, and it has 12K views. It runs on n8n Cloud or a self-hosted n8n instance.
Ollama Chat Model. The other 2 nodes are built into n8n.
Similar workflows
NameViews
- 🐋DeepSeek V3 Chat & R1 Reasoning Quick Start37K
- Local Chatbot with Retrieval Augmented Generation (RAG)29K
- AI Agent with Ollama for current weather and wiki13K
- 🔥📈🤖 AI Agent for n8n Creators Leaderboard - Find Popular Workflows6,416
- AI agent chat780K
- Building Your First WhatsApp Chatbot332K
- Angie, personal AI assistant with Telegram voice and text326K
- Build Your First AI Data Analyst Chatbot134K