기본 콘텐츠로 건너뛰기

n8n AI Agent Errors Fixed: Prompts, Memory, Ollama, 429s

Summary: Most n8n AI Agent failures come from a handful of causes: a prompt that resolves to null, a missing Chat Model, memory that has no session ID, a local Ollama server the n8n container can't reach, or an API that is rate-limiting you. This guide maps each error message to its fix, using n8n's own documentation as checked on 2026-10-26. It ends with the plan limits (like execution timeouts) that can make a healthy agent look broken.

Before you start: read the error in the right place

When an AI Agent node fails, n8n shows the error in the node's output panel, and when a service returns HTTP 429 it rewrites the message as The service is receiving too many requests from you. Open the failed execution from the Executions list instead of re-running blindly, because n8n lets you load data from a previous execution back into the editor and debug with the exact input that broke it.

One concept explains a surprising number of "it worked for the first item only" complaints. The Chat Model, Memory and Output Parser pieces attached under an agent are sub-nodes. In a normal node, an expression like {{ $json.name }} resolves once per input item. In a sub-node, n8n's docs say it always resolves to the first item. If you put per-item expressions inside a model or memory sub-node and feed it five items, all five get the first item's value. Move per-item data into the agent's prompt instead.

Error 1: "400 Invalid value for 'content': expected a string, got null"

This means the prompt the agent sent to the model was empty. n8n lists two ways it happens:

  1. Prompt set to "Define below" with an expression in the Text field that doesn't produce a value. Usually the field name is wrong or the previous node's output changed shape. Open the input panel, drag the real field into the Text box, and check the preview isn't empty.
  2. Prompt set to "Connected Chat Trigger Node" while the incoming chatInput field contains nulls. Clean the nulls out before the data reaches the agent.

Error 2: "No prompt specified"

The agent is waiting to pick up its prompt automatically from a Chat Trigger, but your workflow starts with something else (a schedule, a webhook, a form). The fix is in the agent itself: change the Prompt parameter from Connected Chat Trigger Node to Define below, then build the prompt from static text plus expressions that reference earlier nodes.

Error 3: "A Chat Model sub-node must be connected"

An agent without a model can't run. With the node open, click + Chat Model at the bottom of the screen; with it closed, click the Chat Model + connector under the node. Pick the provider and add its credential. This also shows up after copying a template whose model node you deleted.

Error 4: "Error in sub-node Simple Memory" or "No sessionId"

Old memory node from a template

According to n8n, the Simple Memory error most often comes from an older version of the node (it used to be called Window Buffer Memory), typically inherited from an older template. Delete the memory node and add it again so you get the current version.

Missing session ID

Simple Memory normally takes its sessionId from the On Chat Message trigger. If you see No sessionId, first check that the trigger's output actually contains one. If you aren't using a chat trigger at all, you must supply the session yourself. A fixed key such as my_test_session is fine for testing, but n8n warns to replace it with real per-user session handling before publishing, or every user shares one conversation.

"workflow could not be started!" when loading previous messages

If your Chat Trigger has Load Previous Session set to From Memory (only visible once the chat is public), connect the same Simple Memory node to both the Chat Trigger and the Agent, and set the memory's Session ID to Connected Chat Trigger Node. Also note: two Simple Memory nodes in one workflow share one memory instance by default, so give them different session IDs if they should stay separate.

Error 5: Ollama "ECONNREFUSED" or can't connect

Local models via Ollama are popular with n8n, and the connection is where things break. The key fact from n8n's docs: inside Docker, each container has its own localhost, so http://localhost:11434 often points at the wrong machine.

  • Only n8n is in Docker: set the Ollama credential's base URL to http://host.docker.internal:11434. Docker Desktop maps that name automatically; on Linux, start n8n with --add-host host.docker.internal:host-gateway. Ollama on the host must listen on 0.0.0.0.
  • Only Ollama is in Docker: publish the port with -p 11434:11434, and http://localhost:11434 works.
  • Both in separate containers: create a user-defined network (docker network create n8n-ollama), connect both containers to it, and use http://<ollama-container-name>:11434. On Docker's default bridge network, container names don't resolve, which produces ENOTFOUND even when Ollama is running.
  • connect ECONNREFUSED ::1:11434: localhost resolved to IPv6 while Ollama listens on IPv4. Use http://127.0.0.1:11434 instead.
  • Behind a corporate proxy: n8n notes Ollama doesn't support custom HTTP agents, so HTTP_PROXY/HTTPS_PROXY may not help at all.
  • Remote Ollama behind an authenticated proxy (for example Open WebUI): enter both the remote URL and an API key in the Ollama credential; the node supports Bearer tokens.

If Ollama itself won't start or won't use your GPU, that's a separate problem; see our Ollama troubleshooting guide.

Error 6: "The service is receiving too many requests from you" and "insufficient quota"

This is a 429 from the model provider, and agents hit it fast when you push hundreds of items through. n8n documents two fixes:

  1. Retry On Fail: open the node, go to Settings, enable Retry On Fail, and set Wait Between Tries (ms) longer than the provider's limit window (1000 for a one-request-per-second API).
  2. Loop Over Items + Wait: put Loop Over Items before the model call, a Wait node after it, and wire the Wait back into the loop so items go out in paced batches. The HTTP Request node has the same idea built in under Add Option > Batching.

For OpenAI specifically, n8n notes that quota errors can persist even right after topping up. Its advice: make sure the account has credit, then issue a new API key and update the credential.

Error 7: The agent's output isn't the JSON you asked for

You attach a Structured Output Parser by enabling Require Specific Output Format on the root node. But n8n says plainly that structured parsing is often unreliable with agents. Its recommended pattern: let the agent produce its answer, then pass it to a separate Basic LLM Chain whose only job is to parse it into your schema. The parser also only shapes the final answer; for intermediate steps, describe the format in the agent's System Message. To check whether the agent actually called a tool, enable Return intermediate steps in the agent options, which adds an intermediateSteps field later nodes can read.

When nothing is "wrong": plan limits that look like errors

Long agent runs with several tool calls can simply run out of time. The figures below are from n8n's official pricing page and trial docs on 2026-10-26.

Option Price Executions Concurrency Max execution time
Cloud free trial Free for 14 days 1,000 total 5 180 seconds
Cloud Starter €20/month billed annually 2.5K/month 5 5 minutes
Cloud Pro €50/month billed annually 10K/month 20 or 50 40 minutes
Self-hosted Community Edition Free (you run the server) Set by your own hardware Set by your setup Configurable by you

n8n counts an execution as one full workflow run regardless of how many steps it has. If your trial agent dies at around three minutes, you've likely hit the 180-second cap rather than a bug. When a trial ends without an upgrade, n8n deletes the instance, but you can download workflows for 90 days.

Editor's note

Who this is for: people building their first chat agents or AI automations in n8n, especially with local models in Docker. Not for: custom node development or queue-mode scaling problems.

Gotchas worth remembering: sub-node expressions use only the first item; templates often carry outdated memory nodes; localhost inside Docker isn't your computer; and a 429 sometimes needs a fresh API key, not just more credit.

A habit that saves time: set an error workflow. Create a workflow starting with the Error Trigger node, then in your main workflow open Options > Settings and pick it under Error workflow. It receives the error message and the last node that ran, so you can send yourself an alert instead of discovering failures days later.

FAQ

Why does my agent only answer about the first row of my sheet?

Expressions inside sub-nodes such as the Chat Model always resolve to the first input item. Put per-row data into the agent's prompt, which runs per item, rather than into the model or memory node.

Can I run n8n agents completely free?

Yes, with limits on your time rather than your wallet: the self-hosted Community Edition is free, and pairing it with a local model through Ollama avoids API fees. You manage the server and updates yourself. For a local-model setup, our LM Studio tutorial covers another way to serve models on your own PC.

My agent works in the editor chat but breaks when triggered by a webhook. Why?

The agent is probably still set to take its prompt from a Connected Chat Trigger Node. Switch the Prompt to Define below and reference the webhook's fields, and give Simple Memory an explicit session ID.

For another node-based AI tool with its own set of classic errors, see ComfyUI Errors Fixed.

Match the exact error text first, and most n8n agent problems take minutes, not hours, to fix.

Official n8n documentation images are attached at the end of this post. Image credit: n8n Docs (docs.n8n.io).

Last verified: 2026-10-26

Sources:
n8n Docs: AI Agent common issues
n8n Docs: Simple Memory common issues
n8n Docs: Chat Trigger common issues
n8n Docs: Ollama Chat Model common issues
n8n Docs: OpenAI Chat Model common issues
n8n Docs: Structured Output Parser common issues
n8n Docs: Handle rate limits
n8n Docs: Handle errors gracefully
n8n Docs: Try free then choose a plan
n8n Docs: Choose how to use n8n
n8n Pricing

Uploaded Image Uploaded Image Uploaded Image Uploaded Image

댓글

이 블로그의 인기 게시물

브루(Vrew) 요금제 정리: 무료 200크레딧으로 어디까지 쓸 수 있나

요약: 영상 자막 편집기 브루(Vrew)는 2026년 4월 22일부터 기능별 사용량 대신 '통합 크레딧' 하나로 요금을 매겨요. 무료 플랜은 매달 200크레딧이 들어오는데, 음성 분석(자동 자막)만 쓰면 최대 200분 분량이라 짧은 영상 몇 편은 충분하지만, 영상 초반의 Vrew 마크를 지우려면 유료 플랜이 필요해요. 이 글은 브루 공식 가격 페이지와 고객센터 공지를 2026년 10월 23일에 다시 확인해, 크레딧 계산법과 플랜 고르는 기준을 정리했어요. 목차 브루 요금 구조: 통합 크레딧이란 1크레딧으로 할 수 있는 일 무료 플랜으로 되는 것과 안 되는 것 유료 플랜 4종 비교표 월 구독·연 구독·기간 이용권, 무엇이 이득일까 상황별 추천: 학생·직장인·유튜버 크레딧이 모자랄 때: 사용 기록 지우개 업그레이드·환불 전에 알아둘 규칙 운영자 메모, 자주 묻는 질문 1. 브루 요금 구조: 통합 크레딧이란 예전 브루는 플랜마다 음성 분석 몇 분, AI 목소리 몇 자, 번역 몇 자처럼 기능별 한도를 따로 줬어요. 그런데 보이저엑스(브루 운영사)가 실제 이용 데이터를 보니 한두 가지 기능만 집중해서 쓰는 사람이 훨씬 많았다고 해요. 그래서 2026년 4월 22일 업데이트부터는 플랜마다 정해진 크레딧을 받고, 어떤 기능에 쓸지는 내가 정하는 방식으로 바뀌었어요. 플랜별 매달 지급량은 Free 200 · Light 2,000 · Standard 10,000 · Business 12,000크레딧 이에요. 공식 공지에 따르면 무료 사용자는 매달 1일에, 유료 사용자는 매월 결제일에 충전되고, 남은 크레딧은 다음 달로 넘어가지 않아요. 바뀐 뒤 무엇이 좋아졌나 공지에 나온 예시가 이해하기 쉬워요. Standard 플랜에서 AI 목소리만 쓰면 예전에는 최대 50만 자였지만, 지금은 1만 크레딧을 모두 AI 목소리에 몰아 쓸 수 있어 최대 100만 자가 돼요. 반대로 여러 기능을 골고루 쓰는 사람은 크레딧이 기능끼리 ...

에이닷 전화 vs 익시오: 통화 녹음·AI 요약, 내 통신사·폰에 맞는 앱 고르기

요약: 통화 녹음과 AI 요약을 쓰고 싶다면 먼저 내 통신사와 휴대폰 종류부터 확인해야 해요. LG유플러스 고객은 무료 앱 익시오, SKT 고객은 에이닷 전화가 가장 기능이 많고, 다른 통신사의 아이폰 사용자는 iOS에 들어 있는 기본 통화 녹음·전사 기능이 현실적인 선택이에요. 이 글은 2026-10-30에 SKT·LG유플러스·Apple 공식 페이지와 도움말을 직접 확인해 세 가지를 비교했어요. 왜 '앱 기능'보다 '내 조건'을 먼저 봐야 할까요 통화 요약 앱 비교 글을 보면 기능 목록부터 나열하는 경우가 많아요. 그런데 실제로 써 보려는 사람에게 가장 먼저 걸리는 건 기능이 아니라 이용 조건 이에요. 익시오는 LG유플러스 고객 전용이고, 에이닷 전화는 누구나 설치할 수 있지만 통역콜·baro 같은 기능은 SKT 고객에게만 열려 있어요. 아이폰은 운영체제 구조상 앱이 통화를 마음대로 녹음하기 어려워서, 통신사 앱이 안 되면 iOS 기본 기능에 기대야 해요. 그래서 이 글은 "어떤 앱이 제일 좋은가"보다 "내 통신사·내 폰에서 무엇을 쓸 수 있나" 순서로 정리했어요. 기능 차이는 그다음이에요. 한눈에 비교: 에이닷 전화 vs 익시오 vs 아이폰 기본 통화 녹음 구분 에이닷 전화 (SKT) 익시오 ixi-O (LG유플러스) 아이폰 기본 통화 녹음 (Apple) 누가 쓸 수 있나 통신사 구분 없이 앱 설치 가능. 단, 통역콜·baro·그룹통화 발신 등은 SKT 고객 전용 U+ 모바일 고객. 타 통신사, 만 14세 미만, 선불요금제 고객은 제한 (공식 사이트 FAQ상 알뜰폰 중 KB리브엠은 예외) 지원 국가·언어의 iPhone 사용자. 1명과 통화할 때만 녹음 가능 지원 OS·기기 Android 10 이상, iOS 16 이상 iOS 17 이상 iPhone 12 이상 / Android...

타입캐스트 vs 클로바더빙: 수익 나는 채널에 쓸 때 무료·유료 조건 비교

요약 타입캐스트와 클로바더빙은 둘 다 글만 입력하면 한국어 AI 목소리를 만들어 주는 서비스지만, 무료로 쓸 수 있는 범위가 꽤 다릅니다. 클로바더빙 무료는 매달 15,000자까지 쓸 수 있는 대신 수익이 생기는 채널에는 쓸 수 없고, 타입캐스트 무료는 처음에 주는 약 5분 분량의 다운로드로 끝나는 체험판에 가깝습니다. 광고 수익이 붙은 유튜브나 쇼핑몰 영상에 넣을 목소리라면 처음부터 유료 플랜 조건을 보고 고르는 편이 안전합니다. 왜 이 두 서비스를 같이 비교하나 쇼츠 내레이션, 수업 자료 더빙, 상품 소개 영상처럼 "내 목소리 대신 AI 목소리"가 필요할 때 한국 사용자들이 가장 많이 찾는 곳이 네오사피엔스의 타입캐스트 와 네이버의 클로바더빙 입니다. 기능 소개만 보면 비슷해 보이지만, 실제로 문제가 되는 건 음질보다 "이 목소리를 내 채널에 써도 되나" 입니다. 그래서 이 글은 기능 나열보다 무료 사용 범위, 출처 표기 의무, 유료 플랜 가격과 다운로드 한도를 중심으로 정리했습니다. 모든 수치는 2026년 10월 25일에 두 서비스의 공식 요금 페이지와 고객센터 도움말에서 직접 다시 확인한 내용입니다. 한눈에 보는 비교표 항목 타입캐스트 무료 타입캐스트 베이직 클로바더빙 Free 클로바더빙 Standard 월 요금 0원 9,900원 (연간 결제 시 10% 할인) 0원 19,900원 (네이버 클라우드 플랫폼에서 결제) 무료·포함 사용량 음성 생성·재생 무제한, 다운로드는 최초 3,000크레딧(약 5분) 1회 지급 월 30,000크레딧(약 60분) 월 15,000자, 다운로드 월 20회, 프로젝트 누적 5개 (매월 1일 갱신) 월 30,000자, 다운로드 월 40회, 프로젝트 누적 20개 쓸 수 있...