Steps
How we tested, and what is real
We ran 18 workflows on n8n 2.43.7 with
n8n execute: the AI Agent node (version 3.1, Tools Agent), the OpenAI Chat Model sub-node (version 1.3), the Calculator tool and Simple Memory. To make the model misbehave on purpose (loop on a tool, run out of credits, reject the key) we set the OpenAI credential's Base URL to a small local stand-in that logs every request and answers like OpenAI. So how n8n behaves and words its errors is real; the model's answers are simulated."No prompt specified": the agent only reads chatInput
With Source for Prompt on its default (Connected Chat Trigger Node), the agent reads
$json.chatInputand nothing else. That works behind a Chat Trigger, but after a Manual Trigger, a Webhook or a Telegram Trigger the text is in another field, and the node failed withNo prompt specified. Fix: set Source for Prompt to Define below and put{{ $json.message }}(your field) in Prompt. Careful: if that expression resolves to empty, you get the sameNo prompt specified, so check the field name in the input panel."A Chat Model sub-node must be connected and enabled"
The agent has no model to call. Connect a chat model (OpenAI Chat Model, Anthropic, Ollama...) to the Chat Model connector under the node, and check it is not deactivated. A tool is optional: with no tool connected, version 3 ran fine.
"Max iterations (10) reached": the agent loops on a tool
Each tool call is one iteration. When our model kept calling the Calculator, n8n made 10 model calls and then failed with
Max iterations (10) reached. The agent could not complete the task within the allowed number of iterations.The node returned nothing, and with Max Iterations 3 and Return Intermediate Steps on it still failed without the steps. Make the tool descriptions and system message clearer about when to stop, or raise Max Iterations in Options if the task really needs more steps. Each iteration is a paid model call.Credential errors hide the real reason on the next line
A wrong key showed
Authorization failed - please check your credentialson top and OpenAI'sIncorrect API key providedon the line below. An account with no credits showedThe service is receiving too many requests from you, which reads like a speed limit, while the line below saidYou exceeded your current quota, please check your plan and billing details.That is billing: retries and Wait nodes won't fix it; add credits on platform.openai.com. n8n sent one request each time and did not retry. A custom Base URL without/v1gaveThe resource you are requesting could not be found."Error in sub-node Simple Memory": no sessionId
With Simple Memory on its default session setting, an input with no
sessionIdfield failed with onlyError in sub-node Simple Memory. n8n's source shows the reason: it expects the session ID in an input field calledsessionId(a Chat Trigger adds it for you). Add that field with an Edit Fields node, or switch the memory to a Custom Key such as{{ $json.userId }}.Simple Memory mixes users inside one execution
This one has no error. We sent 3 items in one execution with sessionId
u1,u1andu2. Theu2item got the wholeu1conversation: in our run, all items shared the first item's session. With a Custom Key the same happened. If one execution can carry messages from different people (a batch from a sheet, a polling trigger), run the agent once per item, for example from a sub-workflow or Loop Over Items. We did not test that workaround, so check the history in a test run.On Error Continue loses the reason
With Settings > On Error > Continue (regular output) and a wrong key, both items came out as
{"error": "Authorization failed - please check your credentials"}, without OpenAI's line. Log the error and send it to yourself, and look at a failed execution to see the full text.
All 18 test results
Left: what we set up. Right: what n8n did (real) with answers from our OpenAI stand-in (simulated, see the first step).
| Test | Result |
|---|---|
Chat Trigger style input: chatInput: "hello", Source for Prompt left on the default (Connected Chat Trigger Node) | Worked. The answer was at $json.output |
Same default, but the text is in a field called message (Manual Trigger, Webhook, Telegram...) | Failed: No prompt specified. The default only reads $json.chatInput |
Source for Prompt set to Define below, prompt {{ $json.msg }} that resolves to empty | Same No prompt specified |
| No chat model connected | Failed: A Chat Model sub-node must be connected and enabled |
| No tool connected at all | Worked. Node version 3 does not need a tool |
| Calculator tool, model calls it once then answers | Worked: 2 model calls, the answer used the tool result |
| Model keeps calling the tool | 10 model calls, then Max iterations (10) reached. The agent could not complete the task within the allowed number of iterations. The node failed with no partial output |
| Max Iterations 3 and Return Intermediate Steps on | Max iterations (3) reached...; still failed, no intermediate steps returned |
| Wrong API key in the OpenAI credential | Top line Authorization failed - please check your credentials; OpenAI's Incorrect API key provided only on the next line; one call, no retry |
No credits on the API account (429 insufficient_quota) | Top line The service is receiving too many requests from you, which is misleading; the next line says You exceeded your current quota, please check your plan and billing details. One call, not retried |
Credential Base URL without /v1 | Request went to /responses: The resource you are requesting could not be found |
Simple Memory on the default session setting, input has no sessionId field | Only Error in sub-node Simple Memory. The reason (from n8n's source, not shown in our output) is that it expects a field called sessionId |
| Simple Memory with a Custom Key, 2 items in one execution | Item 2 saw item 1's conversation |
Simple Memory, 3 items with sessionId u1, u1, u2 in one execution | Item 3 (u2) got all of u1's history: every item shared the first item's session |
| 2 items, no memory | Each item answered on its own |
| Use Responses API turned off in the OpenAI Chat Model (Chat Completions) | Same behaviour, worked with the tool |
| Wrong key and On Error set to Continue (regular output), 2 items | Both items came out as {"error": "Authorization failed - please check your credentials"}; OpenAI's reason was lost |
System Message with {{ $now }} | Worked |
Checklist
No prompt specified: the text is not inchatInput. Switch Source for Prompt to Define below and map your field, or rename the field tochatInputin an Edit Fields node.- Read the second line of every error: that is the model provider's real reason.
too many requestsfrom OpenAI can be an empty balance: check billing on platform.openai.com before adding retries.- Custom Base URL (LiteLLM, Ollama, a proxy) ends in
/v1. Max iterations: tighten the tool descriptions and the system message, or raise Max Iterations; the node gives you nothing back when it hits the limit.- Simple Memory: give every item a
sessionId, and don't rely on it to keep users apart inside one execution.
Good to know
- Agent behind a chat window? 404s, empty bubbles and streaming with no reply are in n8n Chat Trigger not working.
- Agent searching your documents? Empty, duplicate or null-score results are covered in n8n Simple Vector Store not working.
- No tools needed? The simpler chain has its own traps: n8n Basic LLM Chain not working.
- Routing items into categories with a model? Dropped items, two-branch items and the fallback key are in n8n Text Classifier not working.
- Only need to pull fields out of text? The Information Extractor does it without an agent; its errors are in n8n Information Extractor not working.
- Agent with Require Specific Output Format failing with
Model output doesn't fit required format? See n8n Structured Output Parser not working. - Using the plain OpenAI node instead of an agent? Its output path, quota and cut-off reply problems are in n8n OpenAI node not working.
- Pacing many items through a model that rate limits: n8n 429 rate limits.
- Running the agent once per item with Loop Over Items: n8n Loop Over Items not working.
- New to agents? Build an AI agent without coding.
- Every error text from our n8n guides is in the n8n error message index.
What we did not test
The real api.openai.com (answers came from our stand-in, built from OpenAI's documented error bodies), the Chat Trigger chat window and streaming, Require Specific Output Format (output parsers), fallback models, other memory stores (Postgres, Redis), other model providers (Anthropic, Gemini, Ollama), n8n Cloud, and whether Loop Over Items or a sub-workflow really keeps Simple Memory sessions apart.
Start from a working agent
FAQ
What does "No prompt specified" mean in the n8n AI Agent node?
The agent looked for the text in $json.chatInput and found nothing. That is the default when Source for Prompt is set to Connected Chat Trigger Node. Set it to Define below and map your own field, or make sure that expression is not empty.
How do I fix "Max iterations (10) reached" in n8n?
The agent kept calling tools without finishing. Make the tool descriptions and system message clearer, or raise Max Iterations in the node options. In our tests the node returned no partial output when it hit the limit.
What does "A Chat Model sub-node must be connected and enabled" mean?
No chat model is connected to the AI Agent node, or it is deactivated. Connect one to the Chat Model connector. A tool is not required in node version 3.
Why does the AI Agent say "too many requests" when I barely use it?
With OpenAI, an empty API balance can show as "The service is receiving too many requests from you". The line under it says "You exceeded your current quota". Add credits on platform.openai.com.
What does "Error in sub-node Simple Memory" mean?
Usually that Simple Memory found no sessionId field in the input. Add a sessionId field or use a Custom Key for the session.
Does n8n Simple Memory keep users apart?
Across executions, by session key. Inside one execution with several items, our test showed every item sharing the first item's session, so run the agent once per item when items come from different people.
Related guides
- n8n OpenAI node not working? 18 tests, every error decoded
- n8n Basic LLM Chain not working? 25 tests, every error decoded
- n8n Simple Vector Store not working? 23 tests, every error decoded
- n8n "Model output doesn't fit required format": 35 tests, fixed
- How to build an AI agent without coding: a practical guide for 2026
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