# When Should an Agent Ask a Clarifying Question?

> When an AI agent should stop and ask, when it should look things up or assume and say so, and how to stop it stalling, for your AI interview.

**In short:** An agent should ask a person only when a missing detail changes the outcome, the agent can't find it itself, and a wrong guess would be costly. Otherwise it looks the detail up or goes on with a stated assumption.

AI and LLM interview question Q193, Agents and tool use. Beginner, occasional (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/when-should-an-agent-ask-a-clarifying-question

## Say it in 30 seconds

An agent should ask only when three things are true. The missing detail changes the result, the agent can't find it by looking, and a wrong guess would cost real money or a sent message. Otherwise it looks the detail up, or goes on with a safe assumption and says so. When it does ask, I ask once, early, in one batch, before the long work starts.

## Say it in 2 minutes

Judgement matters more than how often the agent asks. A good claims handler checks the system first, and calls the customer only for what the customer alone knows. An AI agent should work the same way, and most gaps it can close by looking things up.

The test has three parts. Does the missing detail change the outcome? Can the agent find it with its tools? Would a wrong guess be costly or hard to undo? If the answers are yes, no and yes, the agent asks one clear question before any work starts. If the gap is cheap, it assumes a safe default and names that assumption in its summary.

The hard part is that models often guess rather than ask. Recent research found they often spot an ambiguous request when asked to judge it, yet still answer directly. So I don't rely on the prompt alone. I put the rule in code, with a list of required fields and a clear cost for each one.

An agent that waits forever is a failure too. Every question needs a deadline, a named owner and a safe default for when nobody answers. For a costly gap, the safe default is a stop.

## When should an agent ask a clarifying question, in plain words?

A clarifying question is when an AI agent stops to ask a person for a detail it needs before it goes on. Most of the time it should not ask. It should look the detail up, or make a safe assumption and say what it assumed.

Anthropic's guide to building agents, from December 2024, describes the pattern. The page notes that much of its tooling has since changed, but the pattern still holds. Once the task is clear, the agent works on its own, "potentially returning to the human for further information or judgement". It doesn't come back for every small thing.

Think of a new claims clerk at an insurer. She doesn't phone the customer for a policy number that sits in the system. She calls only for what the customer alone knows, such as how much was lost. Here is the AI version: a claims agent gets a new claim with no policy number and no amount. It finds the policy number in the customer record, so it looks it up. Only the customer knows the amount, so it asks. The channel has a safe default, so it assumes and says so.

- **Clarifying question:** A question an agent asks a person, because it can't find a detail itself.
- **Assumption:** A guess the agent makes and states, so a person can correct it.
- **Blocker:** A gap that stops the work until it is filled, such as a missing amount.
- **Human in the loop:** A person who checks or decides at set points during an agent's run.
- **Stopping condition:** A rule that ends or pauses a run, such as a maximum number of steps.

## When should it ask, and when should it assume?

Ask only when three things are true at once. The gap changes the outcome. The agent can't close it by looking, using its files, records or tools. And a wrong guess would be costly or hard to undo, such as a refund paid or an email sent.

> "Once the task is clear, agents plan and operate independently, potentially returning to the human for further information or judgement." (Anthropic, Building effective AI agents)

Otherwise, the agent looks first, then goes on with a stated assumption. Anthropic's guide says agents "can then pause for human feedback at checkpoints or when encountering blockers". So a pause is for a set checkpoint or a real blocker, not for every small gap.

*Diagram, Ask, look it up, or assume: A missing detail is checked first against the agent's own tools. Only a costly gap that can't be looked up gets a question. A cheap one gets a named default, so the work keeps moving.*
1. The agent hits a detail it needs before it can go on.
2. If it can fetch the detail itself, it does, and carries on.
3. If not, it weighs what a wrong guess would cost.
4. A costly gap gets one clear question, sent before any work.
5. A cheap gap gets a safe default, which it names in the summary.

## Why do models so often guess instead of asking?

Spotting an ambiguous request is one skill. Acting on it is another. A 2026 study found a clear gap between them, so I wouldn't rely on a prompt alone.

> "models often identify ambiguity when explicitly asked to judge it, yet in the QA setting they overwhelmingly default to direct answers." (Su and Cardie, arXiv 2605.25284 (2026))
>
> "Existing LLMs often respond by presupposing a single interpretation of such ambiguous requests, frustrating users who intended a different interpretation." (Zhang, Knox and Choi, arXiv 2410.13788 (ICLR 2025))

The 2026 study also found that retrieved context makes a model even less likely to ask. So a confident answer to a vague question should make you ask whether the model checked the gap, or only guessed it.

> **Tip:** Asked how you'd stop an agent guessing? Don't say "a stronger prompt". Name the required fields and the cost of each gap, and check them in code.

## How should an agent ask well?

Asking well is a skill too. A stream of small questions annoys people and wastes time. Ask early, in one batch, and make each question easy to answer.

*Diagram, Ask early, in one batch: Both runs hit the same gaps. The late run starts, is pulled back to answer a gap it found halfway, and may need to redo work built on a guess. The early run checks every gap first, asks once in one batch, and finishes.*
1. The late run starts before it knows what is missing.
2. Each pause pulls a person back in, and work built on a guess may need redoing.
3. The early run checks every gap before any work starts.
4. One batch of questions gets answered, then the run finishes.

1. **Check every gap first:** Scan the whole task before any work starts, so the agent asks once, not three times.
2. **Ask one clear question:** Give the options and a default, so the person can answer with a single word.
3. **Name each assumption:** When the agent assumes, it says so in the summary, so a person can correct it.
4. **Say what happens with no answer:** Set a deadline and a default for cheap gaps, or a stop for costly ones.

## What does a claims agent do with a missing field?

Here is a simplified gate for one claim, with no real model. Each gap gets one of three moves. The marked lines decide what happens, in code.

```python
# A simplified claims agent: for each gap, look it up, assume it, or ask.
CASE = {"customer": "C-220", "policy_id": None, "incident_date": "2026-11-20",
        "claim_amount": None, "channel": None}
RULES = {
    "policy_id": {"lookup": True, "cost_if_wrong": "high"},
    "claim_amount": {"lookup": False, "cost_if_wrong": "high"},
    "channel": {"lookup": False, "cost_if_wrong": "low", "default": "web"},
}

def decide(field, rule):
    if rule.get("lookup"):
        return "LOOK UP " + field + " in the customer record"
    if rule["cost_if_wrong"] == "low":
        return "ASSUME " + field + " = " + rule["default"] + ", and say so"
    return "ASK the customer for " + field + " before any work"

gaps = [f for f in RULES if not CASE.get(f)]
for field in gaps:
    print(decide(field, RULES[field]))
print("HOLD: file nothing until the customer answers" if any(
    not RULES[f].get("lookup") and RULES[f]["cost_if_wrong"] == "high"
    for f in gaps) else "ACT: file the claim")
```

Output:

```text
LOOK UP policy_id in the customer record
ASK the customer for claim_amount before any work
ASSUME channel = web, and say so
HOLD: file nothing until the customer answers
```

The policy ID is found by a lookup, so the agent doesn't bother the customer. The claim amount is costly and can't be looked up, so the agent asks and holds the filing. The channel is cheap, so it takes the default and says so. Nothing is filed until the amount comes back.

### How would you stop an unattended agent from waiting forever?

Say an overnight agent needs a customer's amount, and it also wants to delete a duplicate file. The Claude Agent SDK, the toolkit for running Claude as an agent in your own code, stops the run at each request. The SDK's own words: "Both trigger your canUseTool callback, which pauses execution until you return a response." The run waits until your code answers.

A question asks what to do. An approval asks whether a risky step may happen. The SDK keeps them apart: "Claude requests user input in two situations: when it needs permission to use a tool (like deleting files or running commands), and when it has clarifying questions (via the AskUserQuestion tool)." Treat them separately, so a file is never deleted on a guess.

Give each question a deadline and an owner. Say what happens on timeout: the safe default for a cheap gap, or a stop for a costly one. Anthropic's guide makes the same point: "it's also common to include stopping conditions (such as a maximum number of iterations) to maintain control."

> **Tip:** Good answer: a deadline, a named owner, a default for cheap gaps and a stop for costly ones. Weak answer: "It will just ask again tomorrow."

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] A plain definition: a clarifying question is a stop to get a detail the agent can't find itself.
- [ ] The three tests: does it change the outcome, can the agent look it up, and is a wrong guess costly?
- [ ] Look up first, assume with a stated default when cheap, and ask only when needed.
- [ ] All the gaps in one batch, sent early, each one easy to answer, never a stream of small ones.
- [ ] What happens with no answer: a deadline, a safe default or a stop, never a silent wait.
- [ ] Clarifying questions and approvals before risky actions are two separate things.

**Common traps**

- Trap: "An agent should always ask when it is unsure." Better: Constant asking stalls the work. Ask when a wrong guess is costly. Otherwise look it up or assume and say so.
- Trap: "The agent should never ask, so the user always gets a result." Better: Guessing on a costly gap sends a wrong refund or a wrong email. Ask when the stakes justify it.
- Trap: "Add ask if unsure to the system prompt and it is solved." Better: A prompt nudges the model. Put the required fields and the cost of each gap in code too.

## Can you pick the right move?

**Spot the right message:** A refund agent stops halfway. The order matches two possible refunds, and the amount is unclear. Which message should it send?

A. I've refunded $42.00 to be safe. Let me know if that's wrong.
B. Hi, a few things: the amount, the reason, the courier, the date and the warehouse?
C. Which amount should I refund for order 8812: $42.00 or $24.00? Reply with the number.
D. I'm not sure what you want, so I'll stop here. Tell me later.

**Answer:** C. It asks one clear question with the choices in it, and it waits before any money moves. The first option pays out on a guess, the second floods the customer, and the last stops with no question at all.

**Quick check:** A claims agent finds two customer records with the same name. Which step is right?

A. Pick the newer record and carry on, to keep the claim moving.
B. Match on policy ID and date of birth first, and ask only if both still match two records.
C. Stop the whole run and wait a week for a reply.
D. Send the claim to both customers so one of them answers.

**Answer:** B. A stronger key is a lookup the agent can make alone, so it tries that first. Only when that fails does a person need to choose. The other options guess on a claim, stall forever, or spam two people.

## Can you answer these from memory?

**Flash cards**

- **When should an agent ask?** When a missing detail changes the outcome, it can't look it up, and a wrong guess is costly.
- **What if the gap is cheap?** Assume a safe default and say the assumption in the summary.
- **What if it can look it up?** It looks it up first, and asks only if the lookup fails.
- **Is a good prompt enough?** No. A prompt nudges the model. Required fields and checks belong in code too.
- **How many questions?** All the gaps in one batch, sent early. Each question easy to answer, never a stream of small ones.
- **What if nobody answers?** A deadline and a safe default, or a stop. Never a silent wait.

## Likely follow-up questions

- Q172 When and how do you add a human in the loop? https://designervenkat.online/interview/ai/human-in-the-loop-for-ai-agents
- Q174 What are common agent failure modes? https://designervenkat.online/interview/ai/common-ai-agent-failure-modes
- Q190 How do you trace and debug an agent run? https://designervenkat.online/interview/ai/how-do-you-trace-and-debug-an-agent-run
- Q194 How do you design stop conditions? https://designervenkat.online/interview/ai/how-do-you-design-stop-conditions
- Q200 Build a ticket-triage agent that escalates to humans. https://designervenkat.online/interview/ai/build-a-ticket-triage-agent-that-escalates-to-humans
