AcademyWorkflowsDevelopment

Chat with Local LLMs Using n8n and Ollama

Development and IT teams that want to test or use language models privately, without sending data to a cloud API.

  • Recommendedour rating
  • 77,672views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

chat-with-local-llms-using-n8n-and-ollama.json

Loading the file...

AI automation

Want this workflow running in your company?

A template is the start. We adapt automations like this to your tools, handle the exceptions, and test and monitor them so they hold up under real load.

  • Free 20-minute call to look at your process
  • Connected to the tools you already use
  • Tested, monitored and documented

What it does

An n8n workflow that gives you a chat interface connected to a language model running locally through Ollama. Each message goes through an LLM chain to your own Ollama server and the answer comes back in the chat, so prompts stay on your own hardware.

Use cases

  1. 01Chat with a self-hosted model in private
  2. 02Prototype AI features without a cloud API
  3. 03Try different local models in one place

Connects

Basic LLM Chain · Ollama Chat Model

Questions about
Chat with Local LLMs Using n8n and Ollama.

What is Chat with Local LLMs Using n8n and Ollama used for?

Development and IT teams that want to test or use language models privately, without sending data to a cloud API. An n8n workflow that gives you a chat interface connected to a language model running locally through Ollama. Each message goes through an LLM chain to your own Ollama server and the answer comes back in the chat, so prompts stay on your own hardware.

How do I import Chat with Local LLMs Using n8n and Ollama into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Chat with Local LLMs Using n8n and Ollama safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.