Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

Chat with local LLMs using n8n and Ollama

n8n template #2384
Chat with local LLMs using n8n and Ollama This n8n workflow allows you to seamlessly interact with your self-hosted Large Language Models (LLMs) through a user-friendly chat interface. By connecting to Ollama, a powerful tool for managing local LLMs, you can send prompts and receive AI-generated responses directly within n8n. Use cases Private AI Interactions Ideal for scenarios where data privacy and confidentiality are important. Cost-Effective LLM Usage Avoid ongoing cloud API costs by running models on your own hardware. Experimentation & Learning A great way to explore and experiment with different LLMs in a local, controlled environment. Prototyping & Development Build and test AI-powe

How to set it up

  1. Open template #2384 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
  2. Create a credential under Credentials → Add credential: Ollama Chat Model. Then open each of those nodes and pick the credential.
  3. Check the model in the Ollama Chat Model node. The template may point at a model your account can't use; swap it for one you have access to.
  4. Click Execute workflow and step through each node's output to confirm the data looks right.
  5. 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 "Chat with local LLMs using n8n and Ollama" (https://n8n.io/workflows/2384). It uses: Basic LLM Chain, Ollama Chat Model. 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. Mihai Farcas published it free on n8n.io as a verified creator, and it has 78K views. It runs on n8n Cloud or a self-hosted n8n instance.

Ollama Chat Model. The other 1 node are built into n8n.

Similar workflows

NameViews
  1. 🐋DeepSeek V3 Chat & R1 Reasoning Quick Start37K
  2. Extract personal data with self-hosted LLM Mistral NeMo5,231
  3. Chat with PDF docs using AI (quoting sources)95K
  4. Respond to WhatsApp Messages with AI Like a Pro!91K
  5. ⚡AI-Powered YouTube Video Summarization & Analysis80K
  6. Personalize marketing emails using customer data and AI72K
  7. Gmail AI Auto-Responder: Create Draft Replies to incoming emails55K
  8. AI Automated HR Workflow for CV Analysis and Candidate Evaluation51K