upscaler
uwg · Kit
Holds a set of image upscaling models gathered from the OpenModelDB community, for people who want to enlarge low-resolution pictures with AI on their own comp…
An n8n workflow that asks an OpenAI model a question and holds the answer to a JSON shape you define. A reply that does not fit goes to a second model call, which repairs it once.
JSON answers in a fixed format with an auto-fix retry 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.
Manual run
It starts when you press Execute workflow, and there is no form:
The model’s answer as data in the shape of your schema, repaired once if it first came back wrong
What you need before you start.
Language model
Answers the question and, in a second node, repairs a reply that does not fit the schema.
NeedsOpenAI API key
Checked by Mindket on 13 Nov 2026
This n8n workflow shows how to make a language model answer in a fixed JSON shape. You press a button, and a prompt asks OpenAI for the five largest US states by area, each with its three largest cities and their populations. A Structured Output Parser holds the answer to a schema. An Auto-fixing Output Parser wraps it and sends a bad reply to a second model call, which repairs it once. Eleven nodes do the work, four of them sticky notes.
Builders of n8n workflows who need a model’s answer as data that later nodes can read, such as a row to store or a field to branch on. Skip it if you want free text. It runs by hand from the editor, so it is a pattern to copy, not a service.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Workflow builders | Make a model return fields that a later node can use | A builder asks for a ticket’s category and urgency as two fields. |
| Operations | Operations analysts | Turn free text into rows | An analyst pulls the supplier, amount and date out of an email. |
| Research | Data teams | Collect facts from a passage in one fixed layout | A team lists the people and companies an article names. |
| Marketing | Content teams | Get product copy back in labelled parts | A marketer asks for a headline, a subtitle and three bullets. |
You need a little n8n: import a file, add an OpenAI credential and run it.
Any n8n that can reach OpenAI will run it. The reply appears in the output of the LLM Chain node.
LLM Chain and its two parsers into a workflow that has its own trigger and promptDownload saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Setup is one credential, used in two nodes, and a model choice in each.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own |
| OpenAI | An API key |
workflow.json.OpenAI Chat Model and OpenAI Chat Model1.gpt-5-mini, is due to shut down on 11 December 2026.LLM Chain to read the answer.Change the question in Prompt and the schema in Structured Output Parser, then run it again. The schema tells the model which fields to return, and the parser rejects anything else. A rejected reply goes to OpenAI Chat Model1 with the error, and that model writes one new attempt.
| To change | Where |
|---|---|
| The question | The input value in Prompt |
| The shape of the answer | The jsonSchema in Structured Output Parser |
| The repair instructions | The prompt option of Auto-fixing Output Parser, which must keep {error} |
| The models | OpenAI Chat Model for the answer and OpenAI Chat Model1 for the repair |
A builder keeps the question as it ships and reads what comes back.
The model answers in JSON. If the parser accepts the reply, LLM Chain outputs it: a single object comes out as the item, and a list comes out as an item whose data field holds the list. If not, the repair call tries once more. Check the figures against a source, since the parser checks shape and not truth.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. A model’s reply is plain text, so a later node cannot count on its layout. A parser reads the reply against a schema and hands on data in the shape you asked for. The two models hang under the chain instead of sitting in the line.
For experts. LLM Chain is the Basic LLM Chain with its output parser switched on. Structured Output Parser takes the JSON schema. In n8n’s current code it accepts one object or a list of that object. Auto-fixing Output Parser wraps it. On a failure it sends the instructions, the bad reply and the error to its own model.
| Node | What it does | What to know |
|---|---|---|
Prompt | Sets the input field | The chain reads its prompt from input |
LLM Chain | Sends the prompt and applies the parser | An object comes out as the item, a list as a data field |
Structured Output Parser | Holds the schema | name and population are bare words, so any value passes |
Auto-fixing Output Parser | Repairs a bad reply once | A second failure stops the run with an error |
OpenAI Chat Model1 | Writes the repair | It can be a different model from the first |
The workflow runs by hand and leans on a default model that is going away.
gpt-5-mini in n8n’s repository on 12 November 2026. OpenAI’s deprecations page, read that day, lists gpt-5-mini for shutdown on 11 December 2026, with gpt-5.6-terra as the replacement. Both nodes also set a temperature of 0, so clear it if OpenAI refuses it for the model you pickname and population are bare words, not {"type": "string"}, so any value passes. Write each as an object with a type to enforce itAn n8n workflow that asks an OpenAI model a question and holds the answer to a JSON shape you define. A Structured Output
Parser keeps the shape. An Auto-fixing Output Parser sends a reply that does not fit to a second model call, which repairs it.
workflow.json: the workflow as n8n exports it, 11 nodes, four of them sticky notes. It holds no credential. The notesREADME.md: these notes.workflow.json.OpenAI Chat Model and OpenAI Chat Model1.gpt-5-mini, is due to shut down on 11 December 2026.LLM Chain to read the answer.Prompt, and the schema in Structured Output Parser to match it.When clicking "Execute Workflow" starts the run by hand.Prompt sets one field, input, to a question: the 5 largest US states by area, each with its 3 largest cities andLLM Chain reads input as its prompt and sends it to OpenAI Chat Model, which has a temperature of 0.Structured Output Parser. Auto-fixing Output Parser wraps that parser.OpenAI Chat Model1. It receives the instructions, the badLLM Chain. In n8n's current code a single object comes out as the item itself, and a list ofdata field holds the list.input value in Prompt.jsonSchema in Structured Output Parser.Auto-fixing Output Parser. It must keep the {error} placeholder.OpenAI Chat Model for the answer and OpenAI Chat Model1 for the repair. They can differ.gpt-5-mini in n8n's repository ongpt-5-mini, withgpt-5.6-terra as the replacement. Pick a model in each node. Both nodes also set a temperature of 0, so clear it ifname and population are written as bare words, as in "name": "string", not as {"type": "string"}. n8n's convertertype toNOTICE.md 602 B README.md 4 KB workflow.json 5 KB
uwg · Kit
Holds a set of image upscaling models gathered from the OpenModelDB community, for people who want to enlarge low-resolution pictures with AI on their own comp…
nerijs · Kit
A pixel art style add-on for Stable Diffusion XL that turns text prompts into pixel-style images, with an optional LCM LoRA for faster runs. For game makers, d…
microsoft · Kit
Turns written conversations into spoken audio with up to four speakers and about 90 minutes of speech, an open Microsoft text-to-speech model for research on p…
masterofaudio2077 · Kit
Reads Egyptian Arabic text aloud and follows the short vowel marks you write into it. A fine-tune of VoiceTut-TTS that keeps its 19 built-in voices and voice c…
hugging-quants · Kit
Runs Meta's Llama 3.1 8B Instruct chat model in 4-bit AWQ form, so it fits on a GPU with about 4 GiB of free memory for the weights. For developers who want a…
besktech · Kit
Scores a Russian-first decision from a context and a list of options, giving a probability for yes/no, choice or rating questions. Runs on a plain CPU, for tea…