n8n errors / Other
This model's maximum context length is 65536 tokens. However, you requested 73149 tokens.
Cause
The AI Agent/Chat Model node sends a request over the model's token limit, commonly because a shared Window Buffer Memory node accumulates all users' history under one session ID.
Fix
Set a unique session ID per user (e.g. {{ $json.subscriber_id }}). Reduce the memory node's 'Context Window Length' to 10-15 messages. Truncate or summarise large document content before the model call. Or switch to a larger-context model.
Part of the Automation Error Index — n8n errors: browse all.
Hitting an automation error we have not covered?
AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.
Describe the problem