Hi, I’m currently using the Starter plan of the cloud version, and I’m unable to get a response from the AI Workflow Builder.
The error message states that the prompt is too long: 207,607 tokens, which exceeds the 200,000 maximum.
This is confusing because my actual prompt is very short.
Does anyone know the cause of this issue?
t way to find solutions is by using the
search function at the upper right.
If your question hasn’t been asked before, please follow the template below. Skip the questions that are not relevant to you. →
Describe the problem/error/question
prompt is too long: 207607 tokens > 200000 maximum
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system:
I don’t know how exactly the AI Agent is built, but according to the documentation it has your workflow and at least some prior Chat messages as context which usually needs to be added to your prompt token amount. Do you have a lot nodes in your workflow or maybe very big code nodes or similar?
If your using the agent on a different workflow, does the message show up as well?
Hi,
It happens, but sort of rare. I’ve had it happen twice with just simple workflows. It thinks for a while, tries and validate a few workflows, then just errors out. I would just close the editor (after saving any changes), then come back and have it try again. This usually does the trick for me. There’s a similar question to this: Prompt is too long: 203416 tokens > 200000 maximum - #6 by KhemOptimal
You can see the small workflow where this happened to me. The OP for that question has a small workflow as well.
(Note: this was also with the Starter plan.)
Khem
2 Likes
thank you, the solution is just close & restart it. I got it.
1 Like
Sometimes it is buggy. so close and restart is better option.