Chat with Local LLMs using n8n and Ollama
detail.loadingPreview
Integrate local Large Language Models into your n8n workflows using Ollama and Langchain nodes. This enables conversational AI powered by your self-hosted models, triggered by chat messages.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This n8n workflow provides a bridge between local Large Language Models (LLMs) and your automation processes. By leveraging Ollama, a popular tool for running LLMs on your own hardware, and the n8n Langchain nodes, you can create powerful conversational AI experiences directly within your n8n canvas. The workflow is triggered by incoming chat messages, processed by an Ollama LLM, and the response is returned to the chat interface, enabling interactive AI-powered automations.
Key Features
- Connect to and utilize self-hosted LLMs via Ollama.
- Trigger AI responses based on chat messages.
- Seamless integration with n8n's automation capabilities.
- Utilizes the Langchain nodes for LLM interaction.
How To Use
- Ensure Ollama is installed and running on your machine.
- Configure the 'Ollama Chat Model' node with your Ollama connection details (e.g., http://localhost:11434).
- Set up the 'When chat message received' node to capture user inputs.
- Connect the 'When chat message received' node to the 'Chat LLM Chain' node.
- Connect the 'Ollama Chat Model' node to the 'Chat LLM Chain' node as the language model.
- The 'Chat LLM Chain' will process the input and return the response to the chat interface.
Apps Used
Workflow JSON
{
"id": "20764fa0-3fb7-49ec-ac8b-0de324f85e45",
"name": "Chat with Local LLMs using n8n and Ollama",
"nodes": 0,
"category": "OpenAI and LLMs",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 20764fa0-3fb7...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
AI-Powered Automation with OpenAI and LLM Templates
Explore n8n workflows that leverage OpenAI and LLM nodes for advanced automation. Includes examples for email categorization, RAG with PDFs, and AI assistants that use predefined API endpoints.
Automated AI Email Responder with Summarization and Vector Search
This workflow automatically responds to incoming emails by summarizing them, retrieving relevant information from a Qdrant vector store, and generating a concise, professional reply using AI. It leverages 'Email Trigger (IMAP)', 'DeepSeek R1', and 'Send Email' nodes for core email handling.
ReAct AI Agent with Custom HTTP Request
This n8n workflow demonstrates a ReAct AI Agent that interacts with external web pages using a custom HTTP Request node. It solves the problem of dynamically fetching and processing web content based on AI-driven instructions.