Ai Agent 100s cloudfare timeout

Describe the problem/error/question

What is the error message (if any)?

I recieve the whole cloudfare timeout HTML as a chatÏnput on my AI Agent chat once it reaches the 100s timeout while doing a subworkflow task set as its tool

Please share your workflow


Share the output returned by the last node

The whole HTML of the timeout page interrupts the conversation workflow while the subworkflow is still executing correctly

Information on your n8n setup

  • n8n version: 2.1.4 Cloud
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Cloud
  • Operating system: Windows 11 pro

Could you record a video of what is happening? I don’t fully understand. If it’s a timeout issue, maybe see if you can change the timeout length.

Thanks for your reply. From what I gather the AI Agents i’m using for the chatbot has a 100s timeout on the http connection. I’m using a subworkflow which makes an HTTP request to an API and then another ai agent reads sentiment based on the response, which takes longer than 100s most of the times. My problem is that when users are interacting with the chat and the subprocess takes longer than the AI Agent output is the cloudfare timeout HTML response. I can’t get a video right now but I will upload one as soon as I work on it again.

I’ve cut the HTML reply since it had my cloud n8n address. But that’s mainly my problem. My AI agent uses a tool calling a subworkflow with an API request. From what I gather I cannot call that tool asynchronously but I’d love to be wrong here.

You might need to be more specfic with the system prompt and in your sub workflow configure it so the API doesen’t return a HTML.