// guides · n8n error index

n8n Summarization Chain not working? 24 tests, every error decoded

Why the n8n Summarization Chain returns undefined, summarizes the wrong fields, ignores your prompt or makes dozens of calls. 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 24 executions on n8n 2.43.7 with n8n execute: the Summarization Chain node (version 2.1, one run on version 2) in Use Node Input (JSON) mode, 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 summary and logs every prompt it receives. So the summaries are scripted and no real model was called; what n8n sent, how many calls it made, where it put the output and its error texts are real.

  2. Summary is undefined? The output key moves

    With the defaults (version 2.1, batch size 5) the summary is at {{ $json.output.text }}. Set Batch Size to 1, or use a workflow built on node version 2, and it moves to {{ $json.response.text }}. With the Refine method it is {{ $json.output.output_text }}. An expression copied from another workflow can silently return undefined. Run the node once and drag the field from the output panel instead of typing the path.

  3. It summarizes every text field, not just your text

    In Use Node Input (JSON) mode the node joins every string field of the item and sends that. Our item had an email, a URL and the text, and all three went into the prompt; the id, amount and true/false fields were dropped. Version 2.1 has no option to choose one field. Put an Edit Fields (Set) node before the chain that keeps only the text field, or use Document Loader mode.

  4. Empty input still runs, and still costs a call

    An empty item, an item with only numbers, or Binary mode with no file did not fail. The model was called with empty text and the node showed success. A real model then invents something or says there is nothing to summarize. Put an If node before the chain that stops items whose text is empty.

  5. Custom prompt: keep {text}, and double JSON braces

    A custom prompt without {text} sends only your instruction: in our run the model never saw the input and the node still succeeded. Always include {text} (for the Refine prompt also {existing_answer}). Braces are placeholders, so a JSON example like {"summary": "..."} failed with Invalid prompt schema: (f-string) Missing value for input "summary". Write it with doubled braces, {{"summary": "..."}}, and it works.

  6. Too many calls: chunk size and method decide the bill

    Map Reduce on about 6,600 characters made one call, because everything fit and the map step was skipped. About 29,000 characters made 37 calls with the default chunk size of 1000 (36 map calls plus one combine); a Chunk Size of 4000 cut that to 9. Refine made 7 calls one after another on the 6,600-character text, so it is slow. Stuff always makes one call but fails on long documents with the model's context-length error. Chunk Size must stay above Chunk Overlap (200 by default), or you get Cannot have chunkOverlap >= chunkSize.

  7. One bad item fails all of them

    With 3 items and the middle one failing, all 3 calls were made and billed, and then the node failed with no output at all. With Settings > On Error > Continue, the good items kept their summaries and the failed one became {"error": "..."} in its place, under the same output or response key. Check for {{ $json.output.error }} after the node.

  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 Base URL must end in /v1; see the OpenAI node guide below.

All test results

We ran 24 executions; some rows group several. Left: what we set up. Right: what n8n did (real; the summary text itself came from our stand-in, see the first step).

TestResult
Version 2.1 defaults (Map Reduce, batch size 5), 1 itemSummary at $json.output.text
Same node with Batch Size 1, or node version 2Summary at $json.response.text: the same expression returns undefined
Summarization Method = RefineSummary at $json.output.output_text, not .text
Use Node Input (JSON), item with id: 42, email, URL, text, amount: 99.5, paid: trueThe prompt got the email, the URL and the text joined together; numbers and booleans were dropped. No option picks one field
Empty item {}, a numbers-only item, or Use Node Input (Binary) with no fileModel still called with empty text and billed; node succeeded with a "summary" of nothing
Custom prompt Summarize this in French. (no {text})The model got only that sentence and none of the input; node succeeded
Custom prompt Return JSON like {"summary": "..."} for: {text}Invalid prompt schema: (f-string) Missing value for input "summary"
Same prompt with doubled braces {{"summary": "..."}}Worked
Chunk Size 200 or less with the default overlap 200Cannot have chunkOverlap >= chunkSize
Map Reduce, about 6,600 charactersOne model call (everything fit, so the map step was skipped)
Map Reduce, about 29,000 characters, default chunk size 100037 calls (36 map + 1 combine)
Same text, Chunk Size 40009 calls
Refine, about 6,600 characters7 calls, one after another (one per chunk)
StuffAlways 1 call with the whole text; long documents hit the context limit
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; the quota reason on the next line
Text longer than the model context (scripted 400)400 This model's maximum context length is 128000 tokens. as the top line
3 items, the middle one failsAll 3 calls fired (billed), then the node failed with no output for any item
Same, Settings > On Error > ContinueGood items kept their summaries; the bad one became {"error": "..."} in its place, under output (or response with Batch Size 1)

Checklist

Good to know

What we did not test

Real models (all summaries came from our stand-in), Document Loader mode, Advanced chunking with a Text Splitter sub-node, chat models other than OpenAI, the batch delay option, and n8n Cloud.

FAQ

Why is the n8n Summarization Chain output undefined?

The output key depends on settings: output.text by default, response.text with Batch Size 1 or node version 2, and output.output_text with the Refine method. Drag the field from the output panel.

Why does the Summarization Chain summarize my email address and URLs too?

In Use Node Input (JSON) mode it joins every string field of the item. Keep only the text field with an Edit Fields node before it.

What does "Invalid prompt schema (f-string) Missing value for input" mean?

Your custom prompt contains braces that n8n reads as placeholders, often a JSON example. Double them, like {{"summary": "..."}}, and keep {text} for the input.

Why does my custom summary prompt ignore the input?

The prompt has no {text} placeholder, so n8n sends only your instruction. Add {text} where the input should go.

Why does the Summarization Chain make so many API calls?

Map Reduce and Refine call the model once per chunk. With the default chunk size of 1000, about 29,000 characters took 37 calls; chunk size 4000 took 9.

Does the Summarization Chain fail on empty input?

No. In our tests it called the model with empty text and showed success. Filter empty items with an If node first.

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.