Steps
How we tested, and what is real
On 25 October 2026 we ran 25 executions on n8n 2.43.7 with
n8n execute: the Basic LLM Chain node (version 1.9, one run on version 1.4) with the OpenAI Chat Model sub-node (version 1.3). We pointed the OpenAI credential's Base URL at a small local stand-in that answers with a fixed short reply and logs every prompt it receives. So the answers are scripted and no real model was called; what n8n sent, where it put the output and its error texts are real."No prompt specified": the default reads only chatInput
The default prompt source, Connected Chat Trigger Node, reads only
$json.chatInput. Feed it anything else, like{"text": "..."}from a webhook or a sheet, and it fails withNo prompt specified. Switch Source for Prompt (User Message) to Define below and write the prompt with an expression. The same error also shows up in Define below when your expression points at a field the item doesn't have:{{ $json.text }}on an item with onlybodyresolves empty, with no warning. Drag the field from the input panel instead of typing it.[object Object] in the prompt: stringify objects
Putting an object straight into the prompt, like
{{ $json.order }}, sentSummarize: [object Object]to the model, and the node still succeeded. A real model then answers about nothing. Use{{ JSON.stringify($json.order) }}, or point at the exact text field. Curly braces are fine here: JSON examples in the prompt and in a System message went through unchanged, unlike the Summarization Chain, which needs doubled braces.Model and fallback errors
With no Chat Model attached you get
A Model sub-node must be connected and enabled. If you turn on Enable Fallback Model you must connect a second model, or you getA Fallback Model sub-node must be connected and enabled. Watch out: when the primary model failed with a 401 (bad key), the fallback answered and the node stayed green, with nothing in the output saying which model replied. Check the primary model's credential after setting up a fallback, or you may pay the fallback's price for every call without knowing.Where the answer is
The answer is always at
{{ $json.text }}, on version 1.4 and 1.9, with or without a System message. If you get undefined, you are probably readingoutput(that's the AI Agent node) ormessage.content(that's the OpenAI node).One bad item fails all of them
With 3 items and the middle one failing, the default batching fired all 3 calls (all billed), then failed the node and threw away the 2 good answers. With Batch Size 1 it stopped at item 2 and never called item 3. Turn on Settings > On Error > Continue: the good items keep
textand the failed one becomes{"error": "..."}in its place. Check for{{ $json.error }}after the node.Output format: you need the toggle and the parser
To get JSON back you need both: Require Specific Output Format turned on and an output parser (such as Structured Output Parser) connected. With only the toggle, it was silently ignored. With only the parser connected, the parser was ignored and no format instructions were sent. With both, n8n appended long JSON Schema instructions to your prompt, and a reply that isn't valid JSON failed with
Model output doesn't fit required format; see the Structured Output Parser guide below.Credential errors: read the second line
A wrong key showed
Authorization failed - please check your credentials, and an account with no credits showedThe service is receiving too many requests from you, which looks like a rate limit but is billing. The provider's real reason is on the next line of the error. The credential's Base URL must end in/v1: without it n8n posted to/responses, which the real OpenAI API answers with 404.
All test results
We ran 25 executions; some rows group several. Left: what we set up. Right: what n8n did (real; the reply text itself came from our stand-in, see the first step).
| Test | Result |
|---|---|
Prompt source Connected Chat Trigger Node (the default), item {"text": "..."} | No prompt specified: this mode reads only $json.chatInput |
Define below, prompt {{ $json.text }} on an item that only has body | No prompt specified again: the expression resolved empty, no undefined warning |
| Define below with an empty prompt | Fails before running: Parameter "Prompt (User Message)" is required. |
Prompt Summarize: {{ $json.order }} where order is an object | Model got Summarize: [object Object]; node succeeded |
Same with {{ JSON.stringify($json.order) }} | Model got the real JSON |
| JSON example with curly braces in the prompt and in a System message | Sent verbatim, no error (unlike the Summarization Chain's f-string error) |
| No Chat Model connected | A Model sub-node must be connected and enabled |
| Enable Fallback Model on, only one model connected | A Fallback Model sub-node must be connected and enabled |
| Primary model with a bad key, fallback model working | Primary got a 401, the fallback answered, output looked normal and the node was green; nothing says which model answered |
| Version 1.4 and 1.9, with or without System message | Answer always at $json.text |
| Wrong API key | Authorization failed - please check your credentials; 401 Incorrect API key on the next line |
No credits (429 insufficient_quota) | The service is receiving too many requests from you: looks like a rate limit, is billing |
Base URL without /v1 | n8n posted to /responses, which is a 404 on the real OpenAI API |
| 3 items, item 2 too long (scripted 400), default batching | All 3 calls fired (billed), then the node failed and the 2 good answers were thrown away |
| Same with Batch Size 1 | Stopped at item 2; item 3 was never called |
| Same, Settings > On Error > Continue (regular output) | Items 1 and 3 kept text; item 2 became {"error": "400 ..."} in its place |
| Require Specific Output Format on, no parser connected | Silently ignored: plain text output |
| Structured Output Parser connected, toggle off | Parser ignored: no format instructions sent, plain text |
| Toggle on and parser connected, model replies in plain text | Long JSON Schema instructions added to the prompt; Model output doesn't fit required format |
Checklist
- Not using a Chat Trigger? Set the prompt source to Define below.
- Drag fields into the prompt; a wrong field name resolves empty without a warning.
- Wrap objects in
JSON.stringify()to avoid[object Object]. - Read the answer at
$json.text. - After adding a fallback model, test the primary credential on its own.
- Use On Error: Continue when you run many items, and check the error field.
- For JSON output, turn on Require Specific Output Format and connect a parser.
- Read the second line of credential errors: that is the provider's real reason.
Good to know
- Feeding it search results from documents? See n8n Simple Vector Store not working.
- Need tools or memory? See n8n AI Agent node not working; for long texts, n8n Summarization Chain not working.
- JSON format errors are in n8n Structured Output Parser not working; quota, key and Base URL errors in n8n OpenAI node not working.
- Every error text from our n8n guides is in the n8n error message index.
What we did not test
Real models (all replies came from our stand-in), chat models other than OpenAI, image or binary input in the prompt, the batch delay option, Chat Trigger memory, and n8n Cloud.
Start from a working agent
FAQ
Why does the n8n Basic LLM Chain say "No prompt specified"?
The default prompt source reads only chatInput from a Chat Trigger. Switch the source to Define below and set the prompt with an expression, and check that the field name exists.
Why does my Basic LLM Chain send [object Object] to the model?
You put an object in the prompt. Use {{ JSON.stringify($json.field) }} or point at a text field.
Where is the Basic LLM Chain output in n8n?
At $json.text, in every version we tested, with or without a System message.
Why does the Basic LLM Chain fallback model hide errors?
When the primary model fails, the fallback answers and the node stays green with no flag. Test the primary credential on its own.
Why is my Basic LLM Chain output format ignored?
You need both Require Specific Output Format turned on and an output parser connected. Either one alone is silently ignored.
Why does one failed item make the whole Basic LLM Chain fail?
By default the node fails and drops all answers when one item fails. Set On Error to Continue to keep the good answers and get an error field for the bad one.
Related guides
- n8n "Model output doesn't fit required format": 35 tests, fixed
- n8n Information Extractor not working? 27 tests, every error decoded
- n8n AI Agent node not working? 18 tests, every error decoded
- n8n Text Classifier not working? 30 tests, every error decoded
- n8n Code node errors: "Code doesn't return items properly" and 10 more, fixed
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes