anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
An n8n chat that sends each message to Llama 3.2 on your own Ollama server. The model answers as a JSON object, and the chat shows your prompt, the response and the JSON it came from.
Chat on a local Ollama model that answers as JSON is an n8n workflow in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
Chat message
It starts when you send a message in n8n’s chat:
A chat reply that repeats your prompt, gives the model’s response and shows the JSON it came from
What you need before you start.
Local language model
Runs Llama 3.2 on your own server and writes the answer to each message.
NeedsAn Ollama server with the model pulled, and an Ollama credential in n8n
Checked by Mindket on 13 Nov 2026
This n8n workflow is a chat that runs on a model you host yourself. Each message goes to Llama 3.2 on an Ollama server, with an instruction to answer as a JSON object that has a Prompt and a Response. The workflow reads that object, and the chat shows your prompt, the response and the raw JSON. If the model step fails, the chat answers with one plain line. The file holds nine nodes, three of them sticky notes.
Developers and teams who want to try a local model from an n8n chat before they wire it into something larger. Skip it if you need a chat that remembers earlier messages. This one answers each message alone.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| IT services | Small IT teams | Try a model that never sends text to a cloud service | A team asks a local model to reword a short policy and checks the answer on their own server. |
| Software | Developers | Check that a small model returns JSON a workflow can read | A developer asks for a product name and a tagline and checks that both fill their fields. |
| Education | Teachers of AI courses | Show a class a model that runs on a laptop | A lecturer asks one question live and shows the JSON that comes back. |
| Research | Analysts | Compare how local models word the same prompt | An analyst swaps the model name and asks the same question twice. |
You need a little n8n and a running Ollama server: import a file, add one credential and pull one model.
Any n8n that can reach your Ollama server will run it.
Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Pull the model before you run the chat.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own |
| Ollama | A server n8n can reach, with the model pulled by ollama pull llama3.2 |
| Credential | One Ollama credential that holds the server’s address |
workflow.json.http://localhost:11434 unless you changed OLLAMA_HOST.http://ollama:11434, with both on one Docker network.Ollama Model, and check that llama3.2:latest shows in ollama list.Type a question in the chat. The model is asked to reply with a JSON object, and the workflow turns it into three parts. They are your prompt, the model’s response and the raw JSON.
| To change | Where |
|---|---|
| The shape of the answer | The prompt in Basic LLM Chain, and the same fields in Structured Response |
| The model | Ollama Model, with any model you have pulled |
| What the chat shows | The text in Structured Response |
| The failure line | Error Response |
You type this in the chat.
Name three uses for a compost bin
The model answers as a JSON object. The chat then shows the line “Your prompt was”, your question, the line “My response is”, the model’s answer, and below them the JSON as the model wrote it.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. Here the chat box feeds one chain, and a model node sits under the chain as its brain. Test with a short question first, then open the run under Executions to see the raw text the model returned.
For experts. The chain has an error output, and its second branch is the only path to Error Response.
| Node | What it does | What to know |
|---|---|---|
Basic LLM Chain | Basic LLM Chain 1.5 with a fixed prompt, set to continue on its error output | A failed model call reaches Error Response |
Ollama Model | Ollama model node, llama3.2:latest | It needs an Ollama credential |
JSON to Object | Set 3.4, one field named response of type object | It stops the run when the text is not JSON |
Structured Response | Set 3.4, one field named text | It also pastes in the chain’s raw text |
A small model does not always keep to a format, and the node that reads the JSON has no error path.
llama3.2:latest is the 3B model, a 2.0 GB download (Ollama’s library page, read on 12 November 2026)JSON to Object and Error Response does not answerAn n8n chat that runs on a model of your own. Each message goes to Llama 3.2 on an Ollama server, and the model is asked
to answer as a JSON object with a Prompt and a Response. The chat shows your prompt, the response and the raw JSON.
workflow.json: the workflow as n8n exports it, nine nodes. Three are sticky notes. It holds no credential.README.md: these notes.ollama pull llama3.2. n8n Cloud can only use an Ollamaworkflow.json.http://localhost:11434 unless you changed OLLAMA_HOST. If n8n runs inlocalhost is the container itself: put n8n and Ollama on one Docker network and use the Ollama container'shttp://ollama:11434.Ollama Model. Its model is llama3.2:latest, so run ollama list and check that theWhen chat message received passes your message on as chatInput.Basic LLM Chain builds its prompt: give the question and answer as a JSON object with the fields Prompt andOllama Model writes the answer.JSON to Object reads the answer text as an object and stores it in a field named response.Structured Response writes the chat's reply in a field named text: your prompt, the response, and the chain's rawError Response, which replies "There was an error."Basic LLM Chain. If you add fields to it, read them in Structured Response.Ollama Model, with any model you have pulled.Error Response.llama3.2:latest is the 3B model, a 2.0 GB download (Ollama's library page, read on 12 November 2026). A small modelJSON to Object has no error path of its own. When the answer is not valid JSON, for example when it comes wrapped in aError Response does not answer.NOTICE.md 636 B README.md 3 KB workflow.json 5 KB
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.