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
- When chat message received
- Ollama Chat Model
- Chat LLM Chain
Similar automations
Chatbots & Messaging BotsChat with Local LLMs Using n8n and Ollama5 stepsChatbots & Messaging BotsChat with a Local Ollama Model6 stepsAI Agents & AssistantsRoute Chats to Local Ollama Models with Private Router7 stepsRAG & Knowledge BasesChat with local documents using Ollama and MariaDB Vector cache28 steps