What Should an AI Agent Do When It Doesn't Know?
Written by: Manya Singh
Published On: Nov 30, 2026
12 mins

Most AI systems aren't built to recognize uncertainty. They're built to produce an answer, confident-sounding or not, because that's what a language model does by default when it's asked a question. The real risk in deploying an AI agent was never that it would eventually run into something it doesn't know. Every system, human or AI, has limits. The real risk is a system that doesn't know that it doesn't know, and answers anyway.
This piece is about that exact moment: what should actually happen when an AI agent hits the edge of what it can reliably handle, and why so many systems get it wrong in one direction or the other.
Confident hallucination: The system generates a plausible-sounding answer to a question it has no real basis to answer. This is the most dangerous failure mode because it's invisible in the moment. The customer has no way to tell a confidently wrong answer from a correct one until the consequences show up later.
Silent avoidance: The system deflects, changes the subject, or gives a vague non-answer without ever acknowledging it couldn't actually help. The customer walks away thinking they got an answer when they didn't, which is arguably worse than getting no answer at all.
Over-escalation: The system routes everything even slightly uncertain straight to a human, which defeats the purpose of automation and buries support teams in low-value handoffs that a slightly more capable system could have handled on its own.
All three failures come from the same root cause: the system was never given a real way to measure its own confidence, so it defaults to either bluffing through or giving up entirely, with nothing in between.

An AI agent needs a genuine confidence signal, not just a best-guess output dressed up to sound certain. That signal should trigger one of a small number of deliberate responses, chosen based on what kind of uncertainty is actually present:
- Ask a clarifying question when the uncertainty is about what the customer meant, not what the answer is.
- Retrieve more context when the uncertainty is about missing information the system could reasonably find, a policy document, an account record, a previous conversation.
- Escalate when the uncertainty is about something outside the system's authority entirely, not just outside its current knowledge.
The difference between these three responses matters enormously. Treating every uncertain moment as an escalation wastes the system's actual capability. Treating every uncertain moment as a clarifying question when the real problem is missing context just frustrates the customer with more questions instead of an answer.

It helps to separate three distinct kinds of uncertainty, because conflating them is a big part of why this is hard to get right in practice.
- Uncertainty about facts: Does the system actually have the right information to answer this, or is it working from an incomplete or outdated source?
- Uncertainty about intent: Does the system understand what the customer is actually asking, or is the question itself ambiguous enough that any answer would be a guess about what they meant?
- Uncertainty about authority: Is this a question the system is even allowed to answer, regardless of whether it knows the answer? A system might be entirely confident about a fact, a medication interaction, a loan rate, a coverage detail, and still be the wrong one to deliver that answer if the topic requires a licensed professional's judgment.
A system that only measures one of these three, usually just factual confidence, will still fail on the other two. Getting this right means building separate detection for each kind of uncertainty, not one generic confidence score that tries to cover all three at once.
Recognizing uncertainty is only half the job. The other half is making sure whatever happens next actually carries forward what the system already figured out, instead of dropping the customer back to square one.
This is the same principle behind treating human handoff as a feature rather than a failure, it should happen, and it should happen well. A clarifying question that ignores what the customer already said, or a human handoff that starts with "can you tell me what's going on," both waste everything the system already learned in the conversation. The handoff is where most of the value of good uncertainty detection either gets preserved or gets thrown away.
Both failure directions carry a real, measurable cost, and they're not symmetric.
A hallucinated or silently avoided answer erodes trust fast, and it doesn't come back easily. Gartner's survey of 3,566 customers found that only 27 percent would try a chatbot again after a negative experience. That's not a close number. A single bad interaction overwhelmingly ends the relationship between that customer and automated support going forward, which makes every confidently wrong answer a much bigger loss than it looks like in the moment.
Over-escalation carries its own cost, a quieter one that shows up in the business case rather than in customer sentiment. Gartner's research into why agentic AI projects fail found that over 40 percent are expected to be canceled by the end of 2027, driven by escalating costs, unclear business value, and inadequate risk controls, notably not by the underlying model being incapable. A system that escalates everything it's even slightly unsure about generates exactly this outcome: rising cost, unclear value, because the automation never actually automates anything that matters.
Gartner's broader research on customer expectations reinforces why the handoff path matters so much either way: a large majority of customers say it's essential to have an option to reach a human when a business uses AI. The goal was never to eliminate escalation. It was to make sure escalation happens for the right reasons, not as a default response to any uncertainty at all.
This is where the difference between a system that handles uncertainty well and one that doesn't becomes obvious in practice, and it's worth being specific about what that actually looks like.
Nugget's agents don't treat uncertainty as a single failure state. They distinguish between the three types described above, a factual gap, an unclear intent, or a question outside the agent's authority, and route to the right response instead of defaulting to the same action every time. A factual gap triggers a retrieval step against the actual account, policy, or order data before the agent ever considers escalating. An unclear intent triggers a real clarifying question grounded in what the customer already said, not a generic "can you rephrase that." And a genuine authority boundary, anything touching a clinical decision, a coverage determination, or a dosage question, triggers an immediate handoff, because that line is a design decision, not a confidence threshold that occasionally gets crossed.
The handoff itself is where Nugget's approach is most deliberately built out. When an agent escalates, the human agent doesn't start from a blank ticket. They receive a full context summary: what the customer asked, what the agent already checked, what it found, why it couldn't resolve the issue on its own, and what's still outstanding. That summary means a human agent can pick up a conversation in the middle and sound like they were there from the start, instead of asking the customer to explain everything again from the beginning. This is the entire point of building uncertainty-handling well in the first place. An agent that knows when to hand off is only half the win. An agent that hands off with everything the human actually needs is the other half, and it's the half most systems skip.

Everything above covers what happens when an AI agent doesn't know the right answer. There's a second, completely different kind of "doesn't know" that has nothing to do with knowledge at all: what happens when the primary model fails to respond in the first place.
This is where AI fallback becomes a separate, essential piece of the system, distinct from confidence thresholds or escalation logic. A primary model fails for reasons that have nothing to do with the question being asked: a provider fails, an API key expires, rate limits get hit during a traffic spike, or a single llm call times out. If an AI platform depends on one model and one provider with no fallback models in place, every one of those failures becomes a single point of failure for the entire system, and the default response in a poorly built system is to return null or simply break, leaving the user with nothing.
A well-built AI system treats this as a routing problem, not a crisis. When the primary model fails, a proper fallback chain should automatically switch the request to a backup model, ideally across different providers rather than just a second model from the same provider, so a single provider's outage doesn't still take the whole system down. This is the same logic that protects against catastrophic failures in any other piece of critical software: never rely on one model, one provider, or one path when a fallback exists.

What good fallback behavior actually looks like:
- Retry logic with a defined time window: A failed request gets a bounded number of retry attempts before failing over, not an infinite loop that burns cost and adds latency for no benefit.
- A circuit breaker: If a provider keeps failing within a short time window, the system should stop sending it traffic entirely for a cooldown period rather than repeatedly hitting a provider that's clearly down.
- A real fallback chain across available providers: Not just one backup model waiting in reserve, but a prioritized list of fallback models across multiple providers, so the system degrades gracefully even if more than one provider has an issue at the same time.
- Visibility into every attempt: Every primary model failure, every fallback trigger, and every retry should be visible in a single dashboard, not buried in logs nobody checks until a customer complains.
This matters just as much for AI agents handling customer conversations as it does for any other llm powered applications an enterprise or a startup runs, a company running AI applications at scale needs a real answer here, not a workaround created in a hurry after the first outage, whether the task is answering a support message or routing a request between humans and a same model used across every channel. A customer asking a question doesn't care whether the agent "didn't know" the answer or whether the model behind it simply failed to respond, from their side, both look like the system didn't help them, and both are an example of a failure the business needs to fix. The difference matters enormously on the engineering side, though: one is a reasoning and escalation problem, and the other is an AI fallback and reliability problem, and a serious AI platform needs real llm fallback patterns and fallback mechanisms for both, not just one.
A few more fallback patterns worth calling out directly, since they come up constantly in practice: not every AI model needs the same fallback chain, a low-stakes task can default to a free or cheaper model as its backup, while a task touching money or compliance should route only to AI models that meet the same quality bar as the primary. Testing fallback behavior deliberately, not just hoping it works when a real outage hits, is the only way to know whether tool calls, API access, and prompt handling all degrade gracefully together rather than independently. Model failures that happen one at a time are easy to miss until they're logged in one place, which is exactly why key takeaways from any serious AI fallback setup always include a single, shared view of every attempt, every error, and every status code, not scattered logs nobody checks until a customer complains.

Calibrating confidence thresholds is genuinely hard without enough real usage data to know where they should sit for a given business, which means the first few weeks of any deployment involve real tuning, not a one-time setup. There's also a constant risk of drifting too far in either direction as thresholds get adjusted, a system tuned to reduce escalations can quietly become overconfident, while a system tuned to reduce hallucinations can quietly become overcautious. And a single blanket threshold rarely works across every query type, a billing question and a medical question should never share the same bar for what counts as "confident enough."
The best AI agents aren't the ones that always have an answer. They're the ones that know the difference between a question they can resolve, a question they need to clarify, and a question that belongs with a human, and that hand off cleanly enough that the customer never has to start over.
Isn't it simpler to just have an AI agent escalate whenever it's unsure?
How does an AI agent actually know when it doesn't know something?
What happens to the information an AI agent already gathered when it hands off to a human?
TL;DR
Most AI systems aren't built to recognize their own uncertainty, which leads to confident hallucination, silent avoidance, or over-escalation.
Uncertainty isn't one thing. Facts, intent, and authority are three separate problems that need three separate responses.
Gartner found only 27% of customers would try a chatbot again after a bad experience, making a confidently wrong answer far more expensive than it looks.
Gartner also found over 40% of agentic AI projects are expected to be canceled by 2027, driven by cost and unclear value, not by incapable models.
The handoff matters as much as the detection. An agent that recognizes uncertainty but hands off without context has only done half the job.
Nugget routes each type of uncertainty differently and hands off with a full context summary, so a human agent never starts from a blank ticket.




