N8n AI Agent node timing out (Connection Timeout) in Premium/Cloud mode – redirects to error page

I’m running into an issue with the AI Agent node in n8n Premium (Cloud) mode, and I’m hoping someone can help.

What’s happening:

  • The workflow runs fine until it reaches the AI Agent node

  • When execution hits this node, it gets stuck

  • After waiting, it throws a Connection Timeout error

  • Then it redirects to an error page

Environment:

  • n8n: Premium / Cloud mode

  • AI Agent node: Enabled

  • Other nodes (Webhook, JS, API, etc.) work without any issues

  • The problem occurs only with the AI Agent node

What I’ve tried:

  • Re-running the workflow

  • Simplifying the prompt

  • Checking JSON output format

  • Verifying credentials and model configuration

Questions:

  • Is this a known issue with the AI Agent node in Premium/Cloud?

  • Are there strict timeout limits for AI Agent executions?

  • Any recommended workaround or best practice?

If anyone has experienced this or knows how to debug it, I’d really appreciate your help :folded_hands:

1 Like

Hi there @Ayush_Khadka welcome to the community

are you using the cloud subscription from n8n or is it from render?

since from your 502 error it’s from render, might be it’s because it’s the render problem instead of the n8n, but that’s just an assumption

can you show me the workflow and on what part does it get stuck?

it will help me help you better

Did you manage to solve this? We are having the same issues. Community edition.