// guides · n8n error index

n8n Basic LLM Chain not working? 25 tests, every error decoded

Why the n8n Basic LLM Chain says No prompt specified, sends [object Object], hides failures behind a fallback or ignores your output format. Tested on n8n 2.43.7.

Updated 2026-10-25 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. 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.

  2. "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 with No 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 only body resolves empty, with no warning. Drag the field from the input panel instead of typing it.

  3. [object Object] in the prompt: stringify objects

    Putting an object straight into the prompt, like {{ $json.order }}, sent Summarize: [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.

  4. 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 get A 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.

  5. 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 reading output (that's the AI Agent node) or message.content (that's the OpenAI node).

  6. 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 text and the failed one becomes {"error": "..."} in its place. Check for {{ $json.error }} after the node.

  7. 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.

  8. Credential errors: read the second line

    A wrong key showed Authorization failed - please check your credentials, and an account with no credits showed The 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).

TestResult
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 bodyNo prompt specified again: the expression resolved empty, no undefined warning
Define below with an empty promptFails before running: Parameter "Prompt (User Message)" is required.
Prompt Summarize: {{ $json.order }} where order is an objectModel 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 messageSent verbatim, no error (unlike the Summarization Chain's f-string error)
No Chat Model connectedA Model sub-node must be connected and enabled
Enable Fallback Model on, only one model connectedA Fallback Model sub-node must be connected and enabled
Primary model with a bad key, fallback model workingPrimary 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 messageAnswer always at $json.text
Wrong API keyAuthorization 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 /v1n8n posted to /responses, which is a 404 on the real OpenAI API
3 items, item 2 too long (scripted 400), default batchingAll 3 calls fired (billed), then the node failed and the 2 good answers were thrown away
Same with Batch Size 1Stopped 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 connectedSilently ignored: plain text output
Structured Output Parser connected, toggle offParser ignored: no format instructions sent, plain text
Toggle on and parser connected, model replies in plain textLong JSON Schema instructions added to the prompt; Model output doesn't fit required format

Checklist

Good to know

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.

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

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.