Inferensys

Prompt

Agent Disambiguation Request Prompt

A practical prompt playbook for using Agent Disambiguation Request Prompt in production AI workflows.
Developer doing prompt engineering on laptop, prompt variations visible on screen, casual coding session.
PROMPT PLAYBOOK

When to Use This Prompt

Define the job, reader, and constraints for the Agent Disambiguation Request Prompt.

This prompt is for an autonomous agent that has encountered ambiguous user intent and cannot safely proceed without clarification. The job-to-be-done is to generate a structured, minimal-back-and-forth request that a human reviewer or the end-user can quickly answer, unblocking the agent's workflow. The ideal user is an AI platform engineer or product manager integrating a human-in-the-loop clarification step into a multi-agent or copilot system. Required context includes the original user input, the agent's current task, the specific point of ambiguity, and a set of candidate interpretations the agent has already considered.

Do not use this prompt when the agent can resolve ambiguity through tool use, retrieval, or by asking a clarifying question directly to the end-user in a conversational interface without a structured handoff. This prompt is specifically for workflows where the clarification must be routed through a review queue, logged for audit, or handled by a human operator who is not the original user. It is also inappropriate when the ambiguity is trivial or when the cost of human review exceeds the risk of an incorrect autonomous action. In high-stakes domains like healthcare or finance, this prompt should be paired with an evidence package and a risk classification, and the human response must be captured as a structured decision record.

Before implementing, define the schema for the clarification request and the expected human response. The agent should not re-prompt the human with open-ended questions; it must present discrete, selectable interpretations or a specific missing piece of information. Wire the output into a review queue with a timeout: if no human responds within the SLA, the agent should either escalate, abort, or fall back to a safe default. Test this prompt against edge cases where the ambiguity is subtle, where candidate interpretations overlap, and where the human provides an incomplete or out-of-scope answer. The most common failure mode is the agent asking a question that is still ambiguous, triggering a second round-trip.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Agent Disambiguation Request Prompt works, where it fails, and what you must have in place before deploying it into a production agent loop.

01

Good Fit: Multi-Intent Queries

Use when: A user query maps to two or more valid but mutually exclusive actions, and the agent cannot safely choose without violating policy or producing a wrong result. Guardrail: The prompt must enumerate candidate interpretations explicitly so the human can select, not guess.

02

Bad Fit: Low-Confidence Single Intent

Avoid when: The agent has only one candidate interpretation but low confidence. This is a confidence-escalation problem, not a disambiguation problem. Guardrail: Route low-confidence single-intent cases to a confidence-based escalation prompt instead to avoid asking humans to confirm the obvious.

03

Required Input: Structured Intent Candidates

Risk: Asking a human to clarify an ambiguous request without showing the concrete options leads to open-ended back-and-forth. Guardrail: The prompt must receive a list of candidate intents with their predicted actions, not just a raw user query. Each candidate must include what the agent would do if that interpretation is correct.

04

Operational Risk: Clarification Loop Fatigue

Risk: If the disambiguation prompt fires too often, human reviewers become fatigued and start approving without reading, defeating the purpose. Guardrail: Track disambiguation request frequency per session and per agent. Set a threshold that triggers an agent redesign review if the rate exceeds a defined limit.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt template for agents that need to request human clarification when user intent is ambiguous.

This prompt template is designed for an agent that has encountered ambiguous user input and cannot proceed with confidence. Instead of guessing or failing silently, the agent must structure a precise clarification request that a human reviewer can act on without reading raw agent logs or replaying the conversation. The template uses square-bracket placeholders for all dynamic inputs, making it straightforward to wire into an orchestration harness.

text
You are an agent operating within a [WORKFLOW_NAME] workflow. Your task is to request human clarification when user intent is ambiguous.

## Context
User Request: [USER_REQUEST]
Agent Role: [AGENT_ROLE]
Session Context: [SESSION_CONTEXT]

## Ambiguity Detected
[AMBIGUITY_DESCRIPTION]

## Candidate Interpretations
For each interpretation below, provide the interpretation, the action the agent would take, and the consequences of being wrong.

1. Interpretation: [INTERPRETATION_1]
   Action if correct: [ACTION_1]
   Risk if incorrect: [RISK_1]

2. Interpretation: [INTERPRETATION_2]
   Action if correct: [ACTION_2]
   Risk if incorrect: [RISK_2]

[ADDITIONAL_INTERPRETATIONS]

## Clarification Needed
[SPECIFIC_QUESTION_TO_HUMAN]

## Output Format
Produce a JSON object with the following schema:
{
  "ambiguity_summary": "string (one-sentence summary of the ambiguity)",
  "candidate_interpretations": [
    {
      "interpretation": "string",
      "proposed_action": "string",
      "risk_if_wrong": "string",
      "confidence": number (0.0 to 1.0)
    }
  ],
  "clarification_question": "string (the specific question the human must answer)",
  "context_for_reviewer": "string (concise context so the reviewer doesn't need to replay the conversation)",
  "escalation_reason": "string (why the agent cannot resolve this autonomously)"
}

## Constraints
- Do not guess the user's intent. If confidence is below [CONFIDENCE_THRESHOLD], request clarification.
- Limit candidate interpretations to the [MAX_INTERPRETATIONS] most plausible options.
- The clarification question must be answerable with a single choice or short response.
- Include only information the human reviewer needs. Omit raw agent logs.
- If the ambiguity involves a [HIGH_RISK_DOMAIN] action, mark the request as priority.

To adapt this template, replace each square-bracket placeholder with values from your orchestration layer. The [CONFIDENCE_THRESHOLD] and [MAX_INTERPRETATIONS] parameters should be configurable per workflow. For high-risk domains such as finance or healthcare, set the threshold higher and reduce the max interpretations to avoid overwhelming the reviewer. Always validate that the agent's output conforms to the JSON schema before presenting it to a human. If the agent fails to produce valid JSON after [RETRY_LIMIT] attempts, escalate with a raw output and an error flag.

IMPLEMENTATION TABLE

Prompt Variables

Required and optional inputs for the Agent Disambiguation Request Prompt. Each placeholder must be populated before the prompt is assembled and sent. Validation notes describe how to check that the input is fit for purpose before the model call.

PlaceholderPurposeExampleValidation Notes

[AMBIGUOUS_USER_INPUT]

The original user message or request that the agent could not confidently interpret.

Create a report for Q3.

Must be a non-empty string. Check that the input is the raw user text, not a pre-processed or summarized version. If null or whitespace-only, abort and request valid input.

[AGENT_TASK_CONTEXT]

A brief description of what the agent was attempting to do when ambiguity was encountered.

Generating a quarterly sales performance report for the North America region.

Must be a string of 10-300 words. Validate that the context describes the agent's goal, not a rephrasing of the user input. If missing, the clarification request will lack necessary framing.

[CANDIDATE_INTERPRETATIONS]

A list of 2-5 distinct ways the agent interpreted the ambiguous input, each with a confidence score.

  1. Q3 fiscal year report (confidence: 0.45). 2. Q3 calendar year report (confidence: 0.40). 3. Third-quarter project milestone report (confidence: 0.15).

Must be a valid JSON array of objects with 'interpretation' (string) and 'confidence' (float 0.0-1.0) fields. Sum of confidences should be approximately 1.0. Reject if fewer than 2 interpretations or if all confidences are below 0.1.

[SPECIFIC_CLARIFICATION_QUESTION]

The single, precise question the human needs to answer to resolve the ambiguity.

Should this report cover fiscal Q3 (March-May) or calendar Q3 (July-September)?

Must be a single interrogative sentence ending with a question mark. Validate that the question directly addresses the ambiguity and can be answered with a short response, not another open-ended prompt. Reject compound questions.

[AGENT_IDENTITY]

A label identifying which agent or agent type is making the request, for traceability and routing.

sales-reporting-agent-v2

Must be a non-empty string matching the agent registry identifier. Validate against the active agent roster. If the agent identity is unknown, use 'unknown-agent' and flag for ops review.

[HANDOFF_TIMESTAMP]

ISO-8601 timestamp of when the disambiguation request was generated, for audit and SLA tracking.

2025-03-15T14:22:10Z

Must parse as a valid ISO-8601 datetime string. Validate that the timestamp is within the last 60 seconds of the current system time. If stale, regenerate the handoff to avoid presenting outdated context.

[PRIOR_CONTEXT_SUMMARY]

Optional summary of the conversation or task history leading up to the ambiguity, if available.

User previously requested monthly sales data for February 2025. Agent delivered that report successfully. User then asked for a Q3 report without specifying fiscal or calendar year.

If provided, must be a string under 500 words. Validate that the summary references prior turns or actions, not future predictions. Null is allowed if no prior context exists. If present, check that it does not contain the current ambiguous input to avoid circular references.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the disambiguation request into an agent loop with validation, retries, and human review.

The Agent Disambiguation Request Prompt is not a standalone chat message; it is a structured interrupt inside an agent execution loop. When the agent's intent classifier returns multiple candidate interpretations above a similarity threshold or below a confidence floor, the harness should pause the agent's tool-use phase, inject this prompt with the ambiguity payload, and route the output to a human review queue. The prompt itself is stateless—it receives the ambiguity description, candidate interpretations, and the specific clarification question as input variables. The harness owns all state, session context, and routing logic.

Wire the prompt into a decision node in your agent graph. The node receives an AmbiguityEvent object containing ambiguous_input, candidate_interpretations (list of objects with interpretation, confidence, and proposed_action), and missing_clarification (the specific question the agent needs answered). The harness populates the prompt's [AMBIGUITY_DESCRIPTION], [CANDIDATE_INTERPRETATIONS], and [CLARIFICATION_QUESTION] placeholders from this event. After generation, validate the output against a schema that requires clarification_request (the human-readable question), options (an array of suggested responses if applicable), and context_for_reviewer (a concise summary of why the agent is blocked). Reject and retry if the output is missing required fields, exceeds a maximum token length (e.g., 500 tokens to keep the review queue scannable), or fails to include the original ambiguous input for reference. Log every disambiguation event with the agent's trace ID, the candidate interpretations, and the generated request for later evaluation of whether the agent is escalating too frequently or with poor-quality questions.

For high-stakes domains—finance, healthcare, legal, or any workflow where a wrong interpretation has material consequences—add a human approval gate before the clarification request is sent to the end user. A second reviewer or a senior operator should confirm that the disambiguation question is clear, unbiased, and does not leak internal agent state or confidential context. The harness should also enforce a deduplication check: if the same ambiguity event ID has already been escalated, do not create a duplicate review task. Finally, instrument the loop with a timeout and fallback: if the human reviewer does not respond within a configured SLA (e.g., 30 minutes for operational workflows), the harness can either re-queue with elevated priority, escalate to a broader team, or—if the risk is low and a safe default exists—execute the highest-confidence interpretation with a logged override. Never let an agent silently guess when ambiguity is declared; the harness must enforce that the disambiguation path is the only path forward until resolved.

IMPLEMENTATION TABLE

Expected Output Contract

Validatable fields for the agent disambiguation request. Use this contract to parse, validate, and route the clarification payload before presenting it to a human reviewer.

Field or ElementType or FormatRequiredValidation Rule

disambiguation_id

string (UUID v4)

Must parse as valid UUID v4. Reject if missing or malformed.

original_user_query

string

Must be non-empty and match the exact user input that triggered the ambiguity. Compare against session log.

ambiguity_description

string

Must be 1-3 sentences explaining what is ambiguous and why. Reject if empty or exceeds 500 characters.

candidate_interpretations

array of objects

Must contain 2-5 objects, each with 'label' (string) and 'interpretation' (string). Reject if fewer than 2 candidates.

clarification_question

string

Must be a single, direct question that resolves the ambiguity. Reject if it contains multiple questions or exceeds 200 characters.

context_snippet

string

If present, must be a substring of the original conversation. Null allowed. Validate substring match.

agent_identity

string

Must match a known agent role from the active agent registry. Reject if agent identity is unrecognized.

requested_response_format

string (enum)

Must be one of ['single_choice', 'free_text', 'confirmation']. Reject if value is outside the enum.

PRACTICAL GUARDRAILS

Common Failure Modes

Agent disambiguation requests fail when the prompt is too vague for the human or too rigid for the agent. These failure modes break the clarification loop and increase time-to-resolution.

01

Over-Requesting Clarification

What to watch: The agent asks for clarification on every minor ambiguity, flooding the human with low-stakes questions. This erodes trust and creates review fatigue. Guardrail: Implement a materiality threshold. The prompt must instruct the agent to only escalate when the ambiguity changes the action, cost, or outcome. Test with a golden set of ambiguous inputs to measure the escalation rate.

02

Missing Candidate Interpretations

What to watch: The agent flags an ambiguity but fails to propose concrete candidate interpretations, forcing the human to reconstruct the problem space from scratch. Guardrail: The prompt template must require at least two distinct, plausible interpretations with the downstream consequence of each. Validate output by checking that the candidates array is populated and each entry has a non-empty rationale.

03

Leaking Internal Agent State

What to watch: The clarification request exposes raw agent reasoning, tool outputs, or internal memory that confuses the human reviewer. Guardrail: Use a strict output schema that separates the human-facing summary from internal debug_context. The harness must strip debug_context before displaying the request to the human.

04

Asking Compound Questions

What to watch: The agent bundles multiple independent ambiguities into a single clarification request, making it impossible for the human to answer with a simple choice. Guardrail: Instruct the agent to isolate a single decision point per request. If multiple ambiguities exist, it should prioritize the one that blocks the most downstream work. Validate that the output contains exactly one decision_required field.

05

Failing to Provide a Default Path

What to watch: The agent presents options but gives the human no indication of which path it would take if forced to choose, slowing down expert reviewers who just want to confirm or override. Guardrail: Require a recommended_action field with a clear rationale. The human can then approve with a single click or short reply. Test that the recommendation is present and logically consistent with the evidence.

06

Context Collapse in the Handoff

What to watch: The clarification request loses critical context from the original user intent, forcing the human to re-read the full conversation history to understand what's being asked. Guardrail: The prompt must include a self-contained original_goal and relevant_history summary in the handoff payload. The eval suite should verify that a human can answer the clarification question without accessing the raw transcript.

IMPLEMENTATION TABLE

Evaluation Rubric

Use this rubric to test the Agent Disambiguation Request Prompt before shipping. Each criterion targets a specific failure mode in ambiguity detection and clarification request quality.

CriterionPass StandardFailure SignalTest Method

Ambiguity Detection

Prompt correctly identifies when user intent is ambiguous and triggers a clarification request instead of guessing

Prompt proceeds with a single interpretation when multiple reasonable interpretations exist or fails to flag the ambiguity at all

Run 20 ambiguous inputs with known interpretation sets; measure trigger rate and false-negative rate

Candidate Interpretation Completeness

Clarification request lists all plausible interpretations of the ambiguous input without missing obvious candidates

Request omits a reasonable interpretation that a human reviewer would identify, forcing unnecessary follow-up rounds

Human review of 15 clarification requests; count missing interpretations per request

Disambiguation Question Precision

The specific question asked narrows the ambiguity to a single interpretation without introducing new ambiguity

Question is vague, compound, or could itself be interpreted multiple ways, requiring another clarification round

Blind review: can 3 reviewers independently select the same answer to the disambiguation question?

Context Preservation

Clarification request includes sufficient original context so the human reviewer does not need to re-read the full conversation

Request strips essential context, forcing the human to search conversation history or raw logs to understand the ambiguity

Present clarification requests to reviewers without original context; measure time-to-understand and error rate

Output Schema Compliance

Clarification request output matches the defined [OUTPUT_SCHEMA] exactly with all required fields populated

Output is missing required fields, uses wrong types, or nests data incorrectly, breaking downstream parsing

Schema validation check: parse output against [OUTPUT_SCHEMA]; count structural violations per 50 requests

Tone and Actionability

Request is neutral, professional, and makes the required human action obvious without demanding or pleading language

Request is overly apologetic, presumes a specific answer, or buries the required action in verbose explanation

Automated tone classifier check plus human review of 10 requests for action clarity score

Round-Trip Efficiency

Human response to the clarification request resolves the ambiguity in a single round without follow-up questions

Human provides the requested clarification but agent still cannot proceed, or human must ask clarifying questions back

End-to-end test: human answers 20 clarification requests; measure resolution rate after one response

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base prompt and a simple JSON schema for the clarification request. Use a single model call without retries. Accept the first well-formed output. Focus on getting the disambiguation structure right before adding guardrails.

code
You are an agent that has encountered ambiguous user intent.

User request: [USER_REQUEST]
Agent context: [AGENT_CONTEXT]

Identify the ambiguity, list candidate interpretations, and ask a single clarifying question.

Return JSON:
{
  "ambiguity_description": "...",
  "candidate_interpretations": ["...", "..."],
  "clarifying_question": "...",
  "information_needed": "..."
}

Watch for

  • Overly broad ambiguity detection that flags clear requests
  • Missing candidate interpretations when only one path is obvious
  • Clarifying questions that require the user to repeat information already provided
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.