Chat with Local LLMs Using n8n and Ollama
## 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-powered applications without relying on external services. ### 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.
- Platform
- n8n
- Category
- AI
- Price
- $4.99
- Creator
- Mihai Farcas
- stickyNote
- chainLlm
- chatTrigger
- lmChatOllama
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related AI workflows
- Launch Your First AI-Powered Chatbot with Actionable Tools$9.99
- Automate AI Video Creation and YouTube Upload with Google Sheets$14.99
- Build a WhatsApp Assistant with Memory, Google Suite, Multi-AI, Research, and Imaging$24.99
- Automate Blog Post Creation and Publishing with GPT, Leonardo AI, and WordPress$14.99
- Email Agent$500.99
- Automate SEO Keyword Generation with ChatGPT from Google Sheets$3.99
More from Mihai Farcas
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.