// guides · n8n error index

n8n AI Agent node not working? 18 tests, every error decoded

Why the n8n AI Agent node fails: "No prompt specified", "Max iterations reached", Simple Memory session errors, misleading quota errors. 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

    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.

  2. "No prompt specified": the agent only reads chatInput

    With Source for Prompt on its default (Connected Chat Trigger Node), the agent reads $json.chatInput and 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 with No 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 same No prompt specified, so check the field name in the input panel.

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

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

  5. Credential errors hide the real reason on the next line

    A wrong key showed Authorization failed - please check your credentials on top and OpenAI's Incorrect API key provided on the line below. An account with no credits showed The service is receiving too many requests from you, which reads like a speed limit, while the line below said You 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 /v1 gave The resource you are requesting could not be found.

  6. "Error in sub-node Simple Memory": no sessionId

    With Simple Memory on its default session setting, an input with no sessionId field failed with only Error in sub-node Simple Memory. n8n's source shows the reason: it expects the session ID in an input field called sessionId (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 }}.

  7. Simple Memory mixes users inside one execution

    This one has no error. We sent 3 items in one execution with sessionId u1, u1 and u2. The u2 item got the whole u1 conversation: 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.

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

TestResult
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 emptySame No prompt specified
No chat model connectedFailed: A Chat Model sub-node must be connected and enabled
No tool connected at allWorked. Node version 3 does not need a tool
Calculator tool, model calls it once then answersWorked: 2 model calls, the answer used the tool result
Model keeps calling the tool10 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 onMax iterations (3) reached...; still failed, no intermediate steps returned
Wrong API key in the OpenAI credentialTop 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 /v1Request went to /responses: The resource you are requesting could not be found
Simple Memory on the default session setting, input has no sessionId fieldOnly 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 executionItem 2 saw item 1's conversation
Simple Memory, 3 items with sessionId u1, u1, u2 in one executionItem 3 (u2) got all of u1's history: every item shared the first item's session
2 items, no memoryEach 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 itemsBoth items came out as {"error": "Authorization failed - please check your credentials"}; OpenAI's reason was lost
System Message with {{ $now }}Worked

Checklist

Good to know

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.

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

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.