Use this prompt when an agent generates multiple candidate answers, classifications, extractions, or action plans and must hand off to a human for final selection. This is common in high-stakes workflows where the agent can narrow the field but should not unilaterally decide: compliance reviews, medical coding, contract clause selection, fraud disposition, or content moderation. The prompt structures the handoff so the human sees ranked options, understands why each is plausible, and can choose with full context. The core job-to-be-done is transforming raw agent output into a decision-ready brief that reduces cognitive load on the reviewer while preserving the evidence they need to exercise judgment.
Prompt
Handoff Prompt with Confidence Score and Alternatives

When to Use This Prompt
Defines the job-to-be-done, ideal user, required context, and boundaries for the Handoff Prompt with Confidence Score and Alternatives.
Do not use this prompt when the agent has a single high-confidence output with no meaningful alternatives, when the decision is low-risk and can be automated, or when the human needs raw agent traces rather than a structured decision brief. This prompt is also inappropriate when the alternatives are trivially similar or when the confidence differential between the top candidate and the next-best is so large that presenting alternatives adds noise rather than value. In those cases, a simpler handoff with a single recommendation and a confidence threshold gate is more appropriate. The prompt assumes the agent has already produced multiple candidates with associated scores; it does not generate the candidates themselves.
Before deploying this prompt, ensure your upstream agent produces at least two distinct outputs with per-candidate confidence scores and a brief rationale for each. The human reviewer should receive enough context to choose without replaying the agent's entire reasoning trace. Wire the output into a review queue or approval UI, and log which candidate was selected for downstream evaluation and model improvement. Avoid using this prompt as a substitute for improving agent accuracy when the root cause is poor retrieval, insufficient context, or a model that is not fit for the task.
Use Case Fit
Where the Handoff Prompt with Confidence Score and Alternatives works well, where it breaks, and what you must provide before wiring it into a production agent harness.
Good Fit: Multi-Candidate Agent Outputs
Use when: the agent produces several plausible outputs (summaries, translations, extracted records) and the human must pick the best one. Guardrail: always include a confidence score per candidate and a brief differentiator so the reviewer can compare without re-running the agent.
Bad Fit: Binary or Deterministic Decisions
Avoid when: the agent output is a single deterministic result with no meaningful alternatives. Adding fake alternatives to satisfy the prompt format creates noise and erodes reviewer trust. Guardrail: gate the handoff template behind a candidate-count check; skip the alternatives block when only one output exists.
Required Inputs
What you must provide: the original task context, the list of candidate outputs, a calibrated confidence score per candidate (0.0–1.0), and the key differentiator for each alternative. Guardrail: validate that every confidence score is a float, every candidate has a differentiator, and the recommendation field references an existing candidate ID.
Operational Risk: Confidence Inflation
What to watch: agents may assign high confidence to low-quality outputs, especially when the model is overconfident on out-of-distribution inputs. Guardrail: calibrate confidence with a held-out eval set, log confidence-vs-accuracy over time, and flag handoffs where all candidates score above 0.9 for human spot-check.
Operational Risk: Reviewer Overload
What to watch: presenting too many candidates or overly verbose differentiators causes decision fatigue and slows the review queue. Guardrail: cap candidates at 3–5, limit differentiators to one sentence each, and measure median time-to-decision in the review harness.
Harness Integration Point
Where it wires in: after the agent generates candidates and before the human review UI renders. Guardrail: the harness must validate the handoff payload against a strict schema, attach a unique handoff ID, and log the human selection for future confidence calibration and agent improvement loops.
Copy-Ready Prompt Template
A paste-ready handoff prompt that presents top candidates, confidence scores, and a recommendation for human selection.
This prompt is designed to be injected into your agent's handoff instruction block after it has already generated multiple candidate outputs and assigned a confidence score to each. It structures the final message to a human reviewer so they can make an informed selection without reading raw agent logs. The template assumes the upstream agent has access to a list of candidates, their scores, and the key differentiators between them.
textYou are handing off a decision to a human reviewer. Your goal is to present the top candidates clearly so the reviewer can select the best option with minimal effort. ## Candidates Here are the candidates you generated, ranked by confidence score: [CANDIDATE_LIST] ## Confidence Scores Confidence scores range from 0.0 (no confidence) to 1.0 (certain). Scores are based on [CONFIDENCE_CRITERIA]. [CONFIDENCE_BREAKDOWN] ## Key Differentiators These are the most important differences between the top candidates: [DIFFERENTIATORS] ## Recommendation Based on the evidence and confidence scores, the recommended candidate is [RECOMMENDED_CANDIDATE_ID] because [RECOMMENDATION_RATIONALE]. ## Handoff Instructions Present the following to the human reviewer in this exact structure: ### Summary A one-sentence summary of the task and what decision is needed. ### Top Candidates For each candidate in the top [TOP_N] (do not exceed [MAX_CANDIDATES]): - **Candidate ID**: [ID] - **Output**: [CANDIDATE_OUTPUT] - **Confidence**: [SCORE] — [BRIEF_CONFIDENCE_EXPLANATION] - **Key Strengths**: [STRENGTHS] - **Key Risks**: [RISKS] ### Recommendation State the recommended candidate, the primary reason, and any caveats the reviewer should consider. ### Decision Request Ask the reviewer: "Which candidate should we proceed with?" Include a note that they can request more details on any candidate. ## Constraints - Do not present more than [MAX_CANDIDATES] candidates. - If the top candidate's confidence is below [ESCALATION_THRESHOLD], add a warning: "All candidates have low confidence. Consider requesting additional information or manual resolution." - If two candidates have confidence scores within [TIE_DELTA] of each other, flag them as a near-tie and explain the trade-off. - Never fabricate confidence scores. If a score is unavailable, mark it as "Not scored" and explain why. - If [RISK_LEVEL] is "high", append: "This decision has high-risk implications. Reviewer must confirm understanding of consequences before selecting."
To adapt this template, replace each square-bracket placeholder with values from your agent's upstream context. [CANDIDATE_LIST] should be populated from the agent's generation step, [CONFIDENCE_CRITERIA] should describe how scores were computed (e.g., source agreement, retrieval score, model self-assessment), and [ESCALATION_THRESHOLD] should match your system's risk tolerance. For high-stakes domains, set [RISK_LEVEL] to "high" and ensure the human reviewer's selection is logged with a timestamp and reviewer identity for audit trails. Before deploying, test this prompt with at least three candidate sets where the top score is above threshold, below threshold, and in a near-tie to verify the branching logic works correctly.
Prompt Variables
Inputs required to assemble a reliable handoff prompt with confidence scores and ranked alternatives. Validate each variable before constructing the final prompt to prevent malformed handoffs.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[AGENT_ROLE] | Describes the agent's specialization and scope of authority for context in the handoff | Legal Contract Review Agent v2 | Must match a registered agent role in the orchestration system; reject if null or generic |
[TASK_DESCRIPTION] | The original task the agent was assigned, providing context for the human reviewer | Review Section 4.2 of the attached MSA for indemnification risks | Must be non-empty and under 500 tokens; truncate with warning if exceeded |
[CANDIDATE_OUTPUTS] | Array of candidate outputs the agent produced, each with a confidence score and rationale | [{"id":"c1","output":"...","confidence":0.87,"rationale":"..."}] | Must be a valid JSON array with 2-5 candidates; each must have id, output, confidence (0-1 float), and rationale fields |
[CONFIDENCE_THRESHOLD] | Minimum confidence score that triggers automatic acceptance; below this, all candidates are presented for human review | 0.85 | Must be a float between 0 and 1; if null, default to 0.80; reject values below 0.50 as too permissive |
[KEY_DIFFERENTIATORS] | Array of dimensions along which candidates differ, helping the human compare options | ["Risk interpretation","Liability exposure","Recommended action"] | Must be a non-empty array of strings; each string under 100 chars; reject if identical across all candidates |
[EVIDENCE_SOURCES] | Sources the agent used to produce candidates, with excerpts and retrieval metadata for traceability | [{"source_id":"doc-42","excerpt":"...","page":12}] | Must be a valid JSON array; each entry requires source_id and excerpt; reject if empty when confidence below 0.90 |
[RECOMMENDATION] | The agent's recommended candidate and justification, distinct from raw confidence ranking | Candidate c1 recommended due to lower risk exposure and stronger precedent alignment | Must reference a valid candidate id from CANDIDATE_OUTPUTS; reject if recommendation contradicts confidence ordering without explanation |
[ESCALATION_REASON] | Categorised reason for handoff: low confidence, policy trigger, capability gap, or ambiguity | low_confidence | Must be one of enum: low_confidence, policy_trigger, capability_gap, ambiguity, human_required; reject unrecognised values |
Implementation Harness Notes
How to wire the handoff prompt into an agent workflow with validation, retry, and human review routing.
This prompt is designed to sit at the boundary between an autonomous agent and a human review queue. The agent calls it after generating multiple candidate outputs with varying confidence scores. The harness must validate the structured output, enforce the confidence schema, and route the payload to the correct review interface. Do not treat this as a one-shot generation step; it is a contract between the agent's internal reasoning and the human's decision surface.
Validation and retry logic. Parse the model output against a strict JSON schema that requires candidates (array, min 1, max 5), each with id, summary, confidence (0.0–1.0 float), key_differentiators (array of strings), and risks (array of strings). Also require a top-level recommendation object with selected_id, rationale, and uncertainty_notes. If parsing fails, retry once with the raw output and a repair instruction appended to the prompt. If the second attempt fails, log the failure and route to a human with the raw output attached as unstructured context. If confidence scores are missing or out of range, flag the payload for review with a validation_warning field injected into the handoff record.
Routing and human review integration. After validation, check the top candidate's confidence score against a configurable threshold (default 0.85). If confidence is below threshold, route to a human review queue with the full candidate list and recommendation. If confidence is above threshold, you may auto-accept the recommendation, but always log the decision with the full payload, timestamp, agent ID, and session context for auditability. For high-risk domains, require human approval regardless of confidence. The harness should expose a webhook or API endpoint that the review interface can call to return the human's selection, which the agent then uses as the final output for downstream steps.
Model choice and latency considerations. This prompt benefits from models with strong instruction-following and structured output capabilities. Use a model that supports JSON mode or function calling to reduce parsing failures. If latency is critical, consider a smaller, fine-tuned model for the handoff formatting step while keeping the candidate generation on a more capable model. Cache the system prompt prefix to reduce per-request token costs. Monitor the rate of validation failures and human escalations as key observability signals—rising rates indicate either model drift, input distribution shift, or threshold misconfiguration.
Expected Output Contract
Schema contract for the handoff payload returned by the agent. Every field must be validated before the handoff is presented to a human reviewer.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
handoff_id | string (UUID v4) | Must parse as valid UUID v4. Reject if missing or malformed. | |
task_summary | string (1-3 sentences) | Length between 50 and 500 characters. Must not contain raw log lines or internal agent state. | |
primary_recommendation | object | Must contain 'option_id', 'label', and 'rationale' keys. 'option_id' must match one entry in the alternatives array. | |
alternatives | array of objects | Array length 2-5. Each object must have 'option_id' (string), 'label' (string), 'confidence' (float 0.0-1.0), 'key_differentiators' (array of strings, min 1), and 'risk_summary' (string). | |
confidence_scores | object | Must contain 'model_confidence' (float 0.0-1.0) and 'evidence_strength' (enum: strong | moderate | weak | insufficient). Reject if evidence_strength is 'insufficient' and model_confidence > 0.6. | |
evidence_citations | array of objects | Each object must have 'source_id' (string), 'excerpt' (string, max 500 chars), and 'relevance' (float 0.0-1.0). At least one citation required per alternative referenced in primary_recommendation. | |
pending_decisions | array of strings | Each string must be a complete question ending with '?'. Array length 1-5. Reject if empty when confidence < 0.85. | |
escalation_triggered | boolean | Must be true if any alternative confidence < 0.5 or evidence_strength is 'weak' or 'insufficient'. Log mismatch as warning. | |
agent_trace_id | string | Must match the agent's execution trace identifier. Used for audit correlation. Reject if format does not match [AGENT_ID]-[TIMESTAMP]-[SHORT_UUID] pattern. |
Common Failure Modes
Handoff prompts with confidence scores and alternatives fail in predictable ways. These cards cover the most common failure modes and the guardrails that catch them before a human reviewer sees a broken handoff.
Confidence Scores Are Uncalibrated
What to watch: The model assigns high confidence (0.9+) to incorrect alternatives or low confidence (0.3) to the correct one. Raw model probabilities are not calibrated probabilities. Guardrail: Require the prompt to produce an evidence count and a contradiction check per alternative. Log confidence scores against human selections over time and recalibrate thresholds or switch to a rubric-based score if drift exceeds 15%.
Alternatives Are Near-Duplicates
What to watch: The model lists three alternatives that are semantically identical with minor wording differences, forcing the human to parse meaningless distinctions. Guardrail: Add a constraint requiring each alternative to differ on at least one named dimension (e.g., cost, risk, timeline, assumption). Validate output with a pairwise similarity check using embeddings; flag sets where any pair exceeds a cosine similarity threshold.
Recommendation Leans on Hidden Bias
What to watch: The recommended alternative consistently favors the first option, the safest option, or the option that requires the least human effort—regardless of the actual trade-offs. Guardrail: Randomize alternative ordering in the prompt and include an explicit instruction to justify the recommendation with at least one weakness and one strength per alternative. Run eval across shuffled-order test cases to detect position bias.
Missing Key Differentiators
What to watch: The handoff presents alternatives but omits the one dimension the human actually needs to decide—such as cost, regulatory risk, or implementation effort—because the prompt didn't specify which dimensions matter. Guardrail: Define a required differentiator schema in the prompt with mandatory fields per domain. Validate that every alternative includes a value for each required field. If a field is unknown, require an explicit null with a reason rather than silent omission.
Confidence Inflated by Missing Evidence
What to watch: The model reports high confidence because it only considered evidence that supports the alternatives and ignored contradictory or missing evidence. Guardrail: Add a required evidence_gaps field to the output schema listing what information was not available. If the gap list is empty but the evidence count is low, flag the handoff for human review with a warning that confidence may be overstated.
Handoff Overwhelms the Reviewer
What to watch: The prompt produces an exhaustive dump of every alternative, sub-alternative, confidence breakdown, and evidence snippet—turning a decision aid into a reading assignment. Guardrail: Cap the number of alternatives at 3–5 with a summary-first structure: one-line recommendation, key trade-off table, then expandable detail. Validate output length against a token budget and truncate with a truncated flag if exceeded, rather than silently cutting content.
Evaluation Rubric
Criteria for testing the quality of a handoff prompt that presents multiple candidates with confidence scores and alternatives before shipping to production.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Confidence score calibration | All candidates include a numeric confidence score between 0.0 and 1.0; scores are monotonically ordered from highest to lowest | Missing confidence score on any candidate; scores outside 0-1 range; highest-confidence candidate not listed first | Parse output JSON; assert all candidates have |
Candidate count compliance | Output contains exactly [CANDIDATE_COUNT] candidates unless fewer viable alternatives exist, in which case a | More candidates than requested without explanation; fewer candidates than available without truncated flag; empty candidates array | Count candidates array length; if length < [CANDIDATE_COUNT], assert |
Differentiator clarity | Each candidate includes a | Differentiator is identical across candidates; differentiator is generic placeholder text; differentiator field missing or null | Extract all |
Recommendation grounding | The | Recommended index out of bounds; rationale is circular or self-referential; recommendation contradicts confidence ordering without explanation | Assert |
Evidence traceability | Every factual claim in candidate descriptions is backed by a | Claim in description has no source reference; source reference points to non-existent document ID; hallucinated statistics or quotes | Extract all claims from candidate descriptions; cross-reference each claim against |
Output schema validity | Output matches the declared [OUTPUT_SCHEMA] exactly: all required fields present, no extra fields, correct types | Missing required field; extra undeclared field; type mismatch on any field; null where non-nullable | Validate output against JSON Schema using a schema validator; assert zero validation errors |
Uncertainty disclosure | When confidence is below [CONFIDENCE_THRESHOLD], the candidate includes an | Low-confidence candidate lacks uncertainty note; uncertainty note is boilerplate without specific reference to the candidate's weak points | For any candidate where confidence < [CONFIDENCE_THRESHOLD], assert |
Human actionability | Output includes an | Action prompt is missing; action prompt is vague; action prompt asks human to redo agent work instead of selecting among candidates | Assert |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Use the base prompt with a single model call and minimal post-processing. Replace [CONFIDENCE_SCHEMA] with a simple 0.0–1.0 float. Skip structured output enforcement; accept natural-language confidence justifications. Run 10–20 test cases manually and spot-check whether the top candidate matches human intuition.
Watch for
- Confidence scores that are always 0.9+ because the model defaults to overconfidence
- Alternatives that are near-duplicates rather than meaningfully different options
- Missing rationale for why one candidate is recommended over others

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us