When The Model Goes Down: Designing AI Workflows That Degrade Instead Of Stop
Provider outages are a normal operating condition. How to build timeouts, fallbacks and degraded modes that keep an AI workflow useful when the model is not.
Every AI workflow depends on a hosted API it does not control. That API will have bad afternoons. Not because the vendors are careless — a model endpoint is a large distributed system serving thousands of customers with uneven traffic, and nobody runs one of those without incidents.
Most teams know this in the abstract and build as if it were not true. The pilot runs against a healthy endpoint on a Tuesday afternoon, everything is fast, and the workflow is designed as if the model will always answer. Then the first real outage arrives and the automation reveals what it is: a single point of failure wearing a product name.
The interesting question is not whether the model goes down. It is what your workflow does in the ninety minutes it is unavailable.
Three different things get called “down”
Treating an outage as one event produces one response — usually retry until it works — and that is wrong for two of the three cases.
Hard unavailability. Requests fail fast with connection or server errors. The failure is loud and easy to detect.
Degradation. The endpoint answers, but slowly. Latency climbs from two seconds to forty, or rate limits start rejecting normal traffic. Nothing looks broken from the outside; the workflow just gets slower until queues back up and timeouts fire somewhere downstream. It does the most damage because it is invisible until the pile-up has already happened.
Up but different. The endpoint is healthy and fast and the output quality has changed — a silent routing to a different model version, a safety filter behaving differently, a context limit quietly reduced. No error code tells you. The only signal is that the four numbers you track start moving: escalation rate up, edit rate up, cost per task drifting.
Each of these needs a different response, and a workflow that only handles the first one will handle the other two by accident, badly.
Timeouts are a design decision
Most client libraries ship with generous or absent timeouts, and the default gets inherited rather than chosen. For a chat box that is survivable — a person waits, then gives up. For a workflow it is not, because the timeout decides how long a worker is held, how many tasks queue, and whether a retry still fits inside the business deadline.
Set an explicit budget at every layer: a per-request timeout in seconds, a per-step limit for a multi-call sequence, a wall-clock ceiling for the whole task after which it fails and moves to the fallback path no matter how promising the current attempt looks. Then check that the layers add up to something smaller than the deadline the business cares about. “Processed within an hour” is not compatible with three retries at a 25-minute timeout each.
The same arithmetic applies to retries. A retry is only useful if there is time left for it to succeed and the action is safe to repeat. On a workflow with side effects those two conditions are frequently not both true, which is why every write has to be idempotent before retry logic goes anywhere near it.
Deferring beats failing
The most valuable property of an automated workflow during an outage is that it can wait.
Batch work — overnight enrichment, document processing, report generation, reconciliation — does not need an answer in the next thirty seconds, it needs one before someone reads it. A queue in front of the model call buys that for almost nothing: work accumulates during the incident, drains when the endpoint recovers, and the only visible effect is that the morning report was built at 7am instead of 5am.
Two things are easy to skip. The queue has to survive a worker restart, which means a durable queue rather than an in-memory buffer. And work has to carry a deadline, so a task that has waited six hours is marked stale or escalated instead of being processed cheerfully at the wrong moment. A queue without a staleness policy turns an outage into a flood of decisions made on outdated context.
Interactive workflows have less room to defer, but the honest degraded mode is still better than a spinner that never resolves: say the assistant is unavailable, hand over the form that lets the user finish by hand, and log that they had to.
The fallback provider is a fiction until you test it
Wiring a second provider is the obvious answer to single-vendor dependency and it is worth doing — but a fallback that has never been exercised is not a fallback, it is a config file with hopes attached.
Prompts do not transfer cleanly. Tool schemas one model calls reliably come back malformed from another. Output formats that hold under structured generation may not hold under a looser one. A cheaper model may pass your standard cases and fail on the tail — which is exactly where an outage-time fallback gets used, because the tail is where the load lands when everything is degraded.
So the fallback belongs inside the same evaluation as any other change: run the regression set against the secondary provider, score it, and accept it only if shipping it mid-incident does not make things worse. Then exercise it on purpose — an hour a month of real traffic through the secondary path, with the results compared. A fallback you have never run is a stranger with access to your customers.
What not to do
Three patterns show up repeatedly and all of them make the incident worse.
Retrying without a ceiling. Unbounded retries against a struggling endpoint are a self-inflicted denial of service, and they extend the incident: the provider recovers and your fleet hammers it back down.
Failing open on checks. When the model is unavailable, do not silently skip the validation step that decides whether an action is safe. That converts an availability problem into a correctness problem, and correctness problems are the ones customers remember.
Degrading silently. If the workflow switched to the secondary model, dropped the enrichment step, or skipped the summary, someone in the business needs to know. A flag on the output is enough. An output that looks normal but came from a materially different pipeline is worse than a visibly reduced one.
Run the drill
Once a quarter, take the primary endpoint away for an hour. Not on a slide — in staging with production-shaped traffic, or on a slice of live traffic behind a kill switch. Watch queue depth, error rate, and the number of tasks that blew their deadline. Then read the runbook the on-call person would actually follow and see whether it matches what you just watched happen.
The goal is not a workflow that never notices an outage. It is one whose throughput drops while its correctness holds, whose failures surface in minutes rather than days, and whose worst case is a delayed answer instead of a wrong one.
That is an operations problem, and no model release solves it for you. If your deployment is one endpoint away from stopping, it is the kind of work we do on our services page — usually in a few weeks, and mostly by deleting the assumptions the pilot was built on.
Want this running in your business?
Start with an automation audit — we map the highest-value workflows and show you what an agent can take on.
Book an Audit