Ollama Llama 3.2 chat workflow in n8n
This n8n workflow is a simple chat that runs on a local Llama 3.2 model through Ollama and returns a structured JSON response. It is for people who want to try a private, self hosted chatbot in n8n before building something bigger on top of it.
What it does
A chat message goes into a basic LLM chain backed by the Ollama model node. The output is converted from JSON to an object and shaped into a structured response, with a separate error response and error handler if the model call fails.
How to use it
Install Ollama with the Llama 3.2 model, add the Ollama credential in n8n and send a chat message.
More in Other and the n8n workflow library.
Full text
Front matter
name: 🗨️Ollama Chat
description: Triggered manually or by an app event. Connects Stop And Error. # 🦙 Ollama Chat Workflow A simple N8N workflow that integrates Ollama LLM for chat message processing and returns a structured JSON object. ## Overview This workflow creates a chat interface that processes messages using the Llama 3.2 model through Ollama. When a chat message is received, it gets processed through a basic LLM chain and returns a response. ## Components - **Trigger Node** - **Processing Node** - **Model Node** - **JSON to Object Node** - **Structured Response Node** - **Error
category: Automation
kind: Workflow
software: Stop And Error🗨️Ollama Chat
Triggered manually or by an app event. Connects Stop And Error. # 🦙 Ollama Chat Workflow
A simple N8N workflow that integrates Ollama LLM for chat message processing and returns a structured JSON object.
Overview
This workflow creates a chat interface that processes messages using the Llama 3.2 model through Ollama. When a chat message is received, it gets processed through a basic LLM chain and returns a response.
Components
- Trigger Node
- Processing Node
- Model Node
- JSON to Object Node
- Structured Response Node
- **Error
Steps
- Manual Trigger (manualTrigger)
- When chat message received (noOp)
- Basic LLM Chain (noOp)
- Ollama Model (noOp)
- Sticky Note (stickyNote)
- Sticky Note1 (stickyNote)
- Sticky Note2 (stickyNote)
- Sticky Note3 (stickyNote)
- Sticky Note4 (stickyNote)
- Sticky Note5 (stickyNote)
- Sticky Note6 (stickyNote)
- Structured Response (set)
- Error Response (set)
- Sticky Note7 (stickyNote)
- JSON to Object (set)
- Error Handler (stopAndError)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source and license
Source: https://github.com/Zie619/n8n-workflows/blob/main/Stickynote/1691_Stickynote_Automation_Triggered.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.