Steps
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.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.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.
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.
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 withInvalid prompt schema: (f-string) Missing value for input "summary". Write it with doubled braces,{{"summary": "..."}}, and it works.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.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 sameoutputorresponsekey. Check for{{ $json.output.error }}after the node.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 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).
| Test | Result |
|---|---|
| Version 2.1 defaults (Map Reduce, batch size 5), 1 item | Summary at $json.output.text |
| Same node with Batch Size 1, or node version 2 | Summary at $json.response.text: the same expression returns undefined |
| Summarization Method = Refine | Summary at $json.output.output_text, not .text |
Use Node Input (JSON), item with id: 42, email, URL, text, amount: 99.5, paid: true | The 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 file | Model 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 200 | Cannot have chunkOverlap >= chunkSize |
| Map Reduce, about 6,600 characters | One model call (everything fit, so the map step was skipped) |
| Map Reduce, about 29,000 characters, default chunk size 1000 | 37 calls (36 map + 1 combine) |
| Same text, Chunk Size 4000 | 9 calls |
| Refine, about 6,600 characters | 7 calls, one after another (one per chunk) |
| Stuff | Always 1 call with the whole text; long documents hit the context limit |
| 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; 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 fails | All 3 calls fired (billed), then the node failed with no output for any item |
| Same, Settings > On Error > Continue | Good items kept their summaries; the bad one became {"error": "..."} in its place, under output (or response with Batch Size 1) |
Checklist
- Drag the summary field from the output panel:
output.text,response.textoroutput.output_textdepending on batch size, version and method. - Keep only the text field with Edit Fields before the chain.
- Stop empty items with an If node; they still cost a call.
- Custom prompts must contain
{text}; double any literal braces. - Raise Chunk Size (for example 4000) to cut the number of calls; keep it above Chunk Overlap.
- Use On Error: Continue and check the error field when you summarize many items.
- Read the second line of credential errors: that is the provider's real reason.
Good to know
- Want to search long documents instead of summarizing them? See n8n Simple Vector Store not working.
- Short prompt on each item, no chunking? See n8n Basic LLM Chain not working.
- Need fields pulled out of the text instead of a summary? See n8n Information Extractor not working; for routing by topic, n8n Text Classifier not working.
- Quota, key and Base URL errors from OpenAI are in n8n OpenAI node not working; pacing in n8n 429 rate limits.
- Every error text from our n8n guides is in the n8n error message index.
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.
Start from a working agent
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
- n8n Information Extractor not working? 27 tests, every error decoded
- n8n OpenAI node not working? 18 tests, every error decoded
- n8n Split Out, Aggregate and Summarize not working: 78 runs, fixed
- n8n Simple Vector Store not working? 23 tests, every error decoded
- n8n queue mode not working? Redis and worker errors, 12 tests
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