AI Agents & LangChain in n8n · 25 min

Choosing a model: OpenAI, Anthropic, Gemini, local

Trade-offs between hosted frontier models and self-hosted open models via Ollama.

Key concepts

  • Model-agnostic Chat Model node
  • Cost/latency/quality trade-offs
  • Ollama self-hosted models

Exercise

Swap the chat model in an existing agent from OpenAI to a local Ollama model and compare answers.

Official docs