Run your private AI conversations locally. This n8n workflow connects a chat trigger to your self-hosted Ollama LLMs, providing secure and customizable local automation.
Download this n8n workflow template and start using it instantly.
AI Developers and Enthusiasts seeking to test models locally without cloud dependencies.
Users requiring privacy and data control over their LLM interactions.
n8n power users looking for advanced local AI capabilities within their automation setup.
Teams needing robust, self-hosted n8n templates for custom AI development.
This comprehensive n8n workflow is designed for seamless interaction with local Large Language Models (LLMs) managed via Ollama. Instead of relying on external cloud APIs, this setup keeps your processing entirely private and self-hosted. When an input is received through the specialized n8n chat interface, this n8n workflow instantly routes the prompt to your local Ollama server, retrieves the response, and delivers it back to the user. This is an essential automation piece for anyone leveraging the power of local LLMs and needing a reliable chat interface built directly into their n8n environment. This powerful combination demonstrates the flexibility of the n8n node system for specialized AI tasks.
This automation sequence starts with a specialized n8n trigger and moves through a LangChain orchestrated process to communicate with the local model:
When chat message received n8n trigger captures a new user input from the designated chat interface.Chat LLM Chain n8n node. This chain node is responsible for structuring the input and determining how to handle the conversation history (though history management details aren't explicitly defined, the chain structure facilitates it).Chat LLM Chain utilizes the Ollama Chat Model n8n node as its designated language model resource. This n8n node is pre-configured to point to the local Ollama API endpoint (typically http://localhost:11434).Ollama Chat Model back to the Chat LLM Chain, which then delivers the final output back to the originating chat interface, completing the loop initiated by the n8n trigger.To deploy and utilize this advanced n8n workflow, follow these steps:
Ollama Chat Model n8n node.http://localhost:11434. Adjust this address if your Ollama instance runs on a different port or host.--net=host flag to facilitate connection to localhost.When chat message received n8n trigger and start interacting with your local LLMs.This n8n workflow utilizes core LangChain nodes specifically tailored for local AI integration:
When chat message received (n8n trigger):
Function: Acts as the starting point, the primary n8n trigger, initiating the automation when a user sends a message to the n8n chat interface.
Key Configuration: Registered with a unique Webhook ID to listen for chat inputs.
Chat LLM Chain (n8n node):
Function: Serves as the primary orchestrator, passing the user's prompt from the trigger to the specified LLM service and managing the response flow.
Key Configuration: Connects the input stream from the trigger to the chosen language model provider.
Ollama Chat Model (n8n node):
Function: This crucial n8n node interfaces directly with the self-hosted Ollama API, allowing the n8n workflow to leverage locally downloaded and managed LLMs.
* Key Configuration: Requires 'Local Ollama' API credentials configured to point to the correct local server address (e.g., http://localhost:11434).
Use this advanced n8n workflow to build an AI agent that chats with your Google Sheet data using custom tools. Learn how to combine n8n node tools, OpenAI, and Google Sheets for dynamic data access.

Deploy an expert AI Agent using this n8n workflow to query HubSpot Contacts and Deals instantly. Ideal for sales and ops teams using powerful n8n templates.

Deploy an advanced n8n workflow to chat with your email history via Telegram. This RAG system uses an n8n AI Agent, PGVector, structured SQL tools, and a local LLM (Mistral via Ollama).

Deploy an advanced AI chatbot using this n8n workflow. Connect Google Sheets data via a RAG system to answer schedule questions instantly in Telegram using a custom n8n node.

Deploy a robust n8n workflow that connects an OpenAI Agent (GPT-4) to PostgreSQL data (P&L, Balance Sheets) for real-time, conversational financial analysis. This advanced n8n templates solution streamlines reporting.

Full-stack developer with 5+ years streamlining healthcare processes. Proficient in NodeJS, VueJS, MongoDB, PostgreSQL, Kubernetes, and n8n. Ready to optimize your workflows – book a consult via my link.







































