The outside service was slow, and there was no setting to wait longer
A slow model or tool, and the run just says time-out. Where AI agent API timeout settings live, which wait ran out, and what is retried.

Every call an AI agent makes to something outside the platform runs against a clock. The call to the model provider has one. So does the call to a tool, a file server or an MCP server, and so does the run around them. A proxy or a cloud service in front of the platform often adds one more. Several of these clocks run at the same time, set in different places by different people, and nobody chose some of them.
When one of them runs out, the run fails with a time-out and little else. The person on duty then looks for the setting that lets the call wait longer. Sometimes there is none. Sometimes there is one, and it belongs to a clock that did not run out.
Three reports, one missing answer
A connection that broke after an upgrade. A user who runs a workflow tool on their own server reported on its issue tracker in October 2026 that an SFTP connection which had worked before now failed with a time-out during the handshake. Host, credentials and network were unchanged. The user reported that the connection settings gave no way to change the wait. They measured that one step of the handshake now took longer than the default wait, and patched the library in their own container image as a workaround.
A model call that timed out now and then. A few days later, a team that runs the same tool on its own servers reported on the vendor's community forum that its calls to a hosted model failed from time to time with a request time-out and no other error. A plain HTTP call to the same provider worked. A community moderator from the vendor's staff replied that the tool's model step had no time-out option in that version, and that a proposed fix was still open.
A webhook that never answered. A company that runs the same tool on a serverless cloud service described on the forum in July 2026 a webhook call that stayed open. After more than ten minutes with no traffic, a worker finished the job in a few seconds, but the main instance kept waiting for the worker's answer. The caller received nothing, the tool showed no error, and the request stayed open for 15 minutes or more, until the cloud service's own time-out ended it. The company paid for that compute time. Its own analysis was that the network dropped an idle internal connection without notice. A moderator from the vendor gave two keep-alive settings, which the company reported fixed it, and a member of the vendor's team later wrote that it looked likely to be a bug.
In April 2026, a user who runs the tool for several clients on one server wrote that long model calls with a large context ran into the default time-out of the tool's HTTP step. Prompts that worked in a direct API call failed at random, and the user advised others to raise that wait. For what else breaks when one install carries many workflows, see The workflow that took everything else down with it.
The shortest wait wins
Each report started from a time-out, and in each, finding the wait that ran out took work. That is the usual picture: a call sits inside several waits, and the shortest one ends it. In the webhook report, the wait that ended the request belonged to the cloud service in front of the tool, not to the tool. In the April report, the step's default wait was shorter than the model needed for a long prompt.
So the first question after a time-out is which wait ran out. Only then does it make sense to ask how long it should be. To answer quickly, you need to know in advance where each wait is set.
Three waits, set in three places
These checks fit any platform whose agents call models and outside services, ours included. Where EpicStaff has an answer, it follows the check.
1. The model call
A model provider can be slow because of load, a long prompt or a long answer. Find out where the wait for one model call is set: per model, per agent or per install. Measure your slowest normal answer, with your longest prompt, and set the wait above it.
In EpicStaff: Each LLM configuration has its own time-out: 120 seconds by default, set in the model configuration, from 1 to 600 seconds.
2. Each tool call
A tool call often waits on a third party: a file server, a search service, an internal API, an MCP server. Find out whether the platform sets a wait for each tool call, and whether an MCP server adds one of its own. If a tool is your own code, give each outside call inside it a time-out of its own, shorter than the tool's wait. Then your code can fail with a message that names the slow service, instead of a general time-out. For who owns each connection, see Connecting an AI agent to your systems is easy. Owning the connection is not.
In EpicStaff: Each agent has a tool time-out that applies to every tool call, Python and MCP: 300 seconds by default, which you can change per agent on its Execution tab; an MCP server also has its own request time-out, 30 seconds by default. When a tool call runs out of time, the run goes on: the model is told the tool timed out, and after three failed tool calls in a row (the default) the agent stops and summarises.
3. Each agent task
Around the calls of each agent task sits that task's time limit. People miss it, because it is set apart from the model and the tools, and it counts every call and retry in the task. Set it above the slowest call you expect, with room for retries. For the other limits on an agent run, see The agent hit its limit and still said it was done.
In EpicStaff: Each agent has a time budget for each task, 10 minutes by default. You can set 1 to 30 minutes on its Execution tab. When it runs out, the step fails and the run ends with the status "error". The flow waits up to this budget times the number of tasks, plus about a minute.
4. What is retried, and what is not
A retry turns one wait into several. A model call that is retried after a time-out can use its full wait more than once before the run sees the failure. Find out which errors are retried, how often, and with what pause. Then check the other side: after a tool error, can the model call the same tool again? If that tool writes to another system, make sure it is safe to run twice. For runs that start twice, see The retry ran it twice.
In EpicStaff: A model call is retried after a rate limit, a connection error, a time-out or a server error, with a longer wait each time, and you set the number of retries per agent; the platform does not retry a call with a bad key or a bad request, or a tool call.
5. What the caller gets
A system that starts a run through a webhook has its own wait, and so does every proxy or gateway on the way. If the webhook holds the request open until the run ends, the shortest of those waits ends the call, as in the webhook report. Find out whether your webhook answers at once or waits for the run. If the caller needs the result, decide how it gets it: by asking for it later, or by a message the flow sends at the end.
In EpicStaff: A webhook answers its caller at once and does not wait for the run.
6. Test with a slow service before go-live
Build a small test service that answers after a delay you set. Point a copy of the agent at it, as a tool or as the model address. Raise the delay step by step, past each wait you have set. For each step, note which wait ran out, what the run record says, and what the caller received. Run the test again after each upgrade, because an upgrade can change how long a call takes, as in the first report. For how to test the rest of a workflow, see You cannot test an AI agent like normal code. You can test most of the workflow.
From the inside out
Once you know where each wait is set, put them in order. The time-out on your own outside call sits inside the tool's wait. The tool's wait and the model's wait, with their retries, sit inside the agent task's time limit. The task limits, added up, sit inside whatever waits outside: the caller, a proxy, a cloud service. Each wait should be longer than the one inside it.
When the order is right, the wait closest to the slow service runs out first. Its message names that service, and the person on duty knows where to look. When the order is wrong, an outer wait ends the call first, and all anyone sees is a time-out.
A longer wait helps only if it is the wait that ran out. With the order written down, you know which one that is before the next time-out, not after it.
Q&A
Why does my AI agent time out when the same API call works directly?
A direct call usually has one wait: the one in your own client. Inside a platform, the same call sits under several: the wait of the step or tool, the wait of the run, and sometimes a proxy in front. A long prompt can need more time than the shortest of these. Compare how long the direct call takes with each wait in the chain, and raise the one that is too short.
Should I set every timeout to the maximum?
No. A very long wait keeps a worker busy with a service that may never answer, delays the error, and can cost money while it waits, as in the webhook report above. Measure your slowest normal call, set each wait somewhat above it, and keep the inner waits shorter than the outer ones.
What is the difference between a timeout and a rate limit error?
With a rate limit, the provider answered and refused, because too many requests came too fast; waiting and trying again usually works. With a time-out, no answer came in time, and the request may still have reached the other side and done its work. So a retry after a rate limit is usually safe, while a retry after a time-out on a tool that writes can do the work twice.
Where do I set the timeout for an LLM call in EpicStaff?
Each LLM configuration has its own time-out: 120 seconds by default, set in the model configuration, from 1 to 600 seconds. Each agent has a time budget for each task, 10 minutes by default. You can set 1 to 30 minutes on its Execution tab. When it runs out, the step fails and the run ends with the status "error". Set the model's time-out below the task budget, with room for retries.


