Skip to content
NEWError doctor and Watchtower: failed n8n runs explained in plain words, and emailed to you. See what is new

Library / Chatbots & Messaging Bots

Chatbots & Messaging Bots

Chat with Local LLMs Using n8n and Ollama

When a chat message is received, a self-hosted Ollama language model answers it through a simple chat chain.

What it does

## 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. ### How it works 1. When chat message received: Captures the user's input from the chat interface. 2. Chat LLM Chain: Sends the input to the Ollama server and receives the AI-generated response. 3. Delivers the LLM's response back to the chat interface. ### Set up steps * Make sure Ollama is installed and running on your machine before executing this workflow. * Edit the Ollama address if different from the default.

The steps

  1. When chat message received
  2. Ollama Chat Model
  3. Chat LLM Chain

Similar automations