Inferensys

Prompt

Agent Output Synthesis from Conflicting Sources Prompt Template

A practical prompt playbook for system designers who need a single coherent output from disagreeing agents. Produces a synthesized answer that preserves areas of agreement, explicitly notes contested points, and attributes claims to source agents.
Developer building agentic RAG system, retrieval pipeline diagram on laptop, technical workspace with notes.
PROMPT PLAYBOOK

When to Use This Prompt

Defines the precise conditions, required inputs, and failure modes for using the Agent Output Synthesis prompt to produce a single trustworthy output from multiple disagreeing agents.

This prompt is designed for system designers and orchestration engineers who must produce one coherent, trustworthy output from multiple specialized agents that have produced conflicting results. The core job-to-be-done is synthesis: you have already run a conflict detection step and now need a single response that preserves areas of agreement, explicitly surfaces contested points, and attributes every claim to its source agent. The ideal user is building a production multi-agent pipeline where downstream consumers—whether they are other agents, an API response, or a human reviewer—cannot act on raw disagreement. You should use this prompt when you have agent outputs, agent identifiers, and a shared evidence context ready to inject as [AGENT_OUTPUTS], [AGENT_IDS], and [SHARED_EVIDENCE].

Do not use this prompt when agents have not yet produced their individual outputs, when a single agent is authoritative by design, or when the disagreement is purely about formatting rather than substance. This prompt is also inappropriate for real-time arbitration where latency is critical and a simpler majority-vote or confidence-weighted selection would suffice. The prompt assumes that conflict detection has already identified a substantive disagreement; if you skip that step, the synthesis will attempt to reconcile outputs that may not actually conflict, wasting tokens and potentially introducing confusion. Before wiring this into your pipeline, confirm that you have a structured conflict report or at minimum a set of divergent agent outputs with clear identifiers. If your agents produce outputs in incompatible schemas, run the Agent Output Normalization Before Arbitration prompt first to align fields, units, and terminology.

The primary risk in synthesis is misrepresentation: the synthesizer may falsely claim agreement where disagreement exists, attribute a claim to the wrong agent, or introduce new information not present in any source output. To mitigate this, the prompt template includes explicit instructions to preserve disagreement, attribute every claim, and abstain when evidence is insufficient. In high-stakes domains such as healthcare, finance, or legal review, you must pair this prompt with a human review step and log the synthesis output alongside the original agent outputs for audit. The next section provides the copy-ready prompt template with placeholders you can adapt to your agent identities, output formats, and evidence context.

PRACTICAL GUARDRAILS

Use Case Fit

Where this prompt works, where it fails, and what you must provide before using it in a production agent pipeline.

01

Good Fit: Structured Disagreement

Use when: multiple agents produce outputs with clear, comparable claims that can be aligned against shared evidence. Guardrail: the prompt works best when agents share a common evidence base or source document set. Without shared grounding, synthesis becomes speculative.

02

Bad Fit: Incommensurable Outputs

Avoid when: agents produce outputs in fundamentally different formats, abstraction levels, or domain vocabularies that cannot be aligned without heavy normalization. Guardrail: run an output normalization step before synthesis. If normalization fails, escalate to human review rather than forcing a merge.

03

Required Inputs

Must provide: the conflicting agent outputs with source attribution, the shared evidence or context each agent used, and a clear output schema for the synthesized result. Guardrail: missing source attribution prevents claim tracing and makes hallucination detection impossible. Reject inputs without agent provenance.

04

Operational Risk: Agreement Misrepresentation

Risk: the synthesis prompt may overstate agreement by smoothing over genuine disagreements or presenting contested points as settled. Guardrail: require the output to explicitly label each claim as agreed, contested, or unsupported, with agent attribution. Validate this labeling in eval.

05

Operational Risk: Synthesis Hallucination

Risk: the model may introduce claims that no source agent made, especially when bridging gaps between conflicting positions. Guardrail: implement a post-synthesis fact-checking step that verifies every synthesized claim against the original agent outputs. Flag unsupported additions for removal.

06

Scale Limit: Many-Agent Conflicts

Avoid when: more than 4-5 agents produce conflicting outputs on the same question. Guardrail: pre-filter agents by confidence or relevance before synthesis. For large agent ensembles, use a vote-aggregation or arbitration step first, then synthesize only the top conflicting positions.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt for synthesizing a single coherent output from multiple conflicting agent responses, preserving agreements, flagging disputes, and attributing claims.

This template is the core instruction set for an LLM acting as a synthesis engine. It receives the original user query, the outputs from all participating agents, and a shared evidence payload. The prompt forces the model to produce a structured output that does not silently drop disagreements. Use it when you have two or more agent outputs that conflict on facts, structure, or conclusions and you need a single, auditable response for a downstream system or human reviewer.

text
You are an output synthesis engine. Your job is to produce a single, coherent response from multiple agent outputs that may conflict.

## INPUTS
- Original User Query: [USER_QUERY]
- Agent Outputs (with agent identifiers): [AGENT_OUTPUTS]
- Shared Evidence (source documents or data all agents had access to): [SHARED_EVIDENCE]

## OUTPUT SCHEMA
Return a valid JSON object with the following structure:
{
  "synthesized_answer": "string (the best coherent answer you can construct)",
  "areas_of_agreement": ["string (points all agents agree on)"],
  "contested_points": [
    {
      "point": "string (the specific claim or value in dispute)",
      "positions": {
        "[AGENT_ID]": "string (that agent's position)"
      },
      "evidence_alignment": "string (which position is best supported by shared evidence, or 'no clear support')",
      "synthesis_choice": "string (which position was used in the synthesized answer and why)"
    }
  ],
  "unresolved_differences": ["string (disagreements that could not be resolved and were excluded from the synthesized answer)"],
  "confidence": "high|medium|low (your confidence in the synthesized answer)",
  "escalation_recommended": true|false
}

## CONSTRAINTS
1. Never fabricate agreement. If agents disagree, record the disagreement in `contested_points`.
2. Attribute every position to its source agent using the agent identifiers provided in [AGENT_OUTPUTS].
3. Prefer positions supported by [SHARED_EVIDENCE]. If evidence is absent or ambiguous, state that explicitly.
4. If no synthesis is possible without misrepresenting an agent, set `synthesized_answer` to an explanation of the deadlock and set `escalation_recommended` to true.
5. Do not introduce new facts, data, or claims not present in [AGENT_OUTPUTS] or [SHARED_EVIDENCE].
6. If [RISK_LEVEL] is 'high', set `escalation_recommended` to true for any unresolved factual dispute.

## RISK LEVEL
[RISK_LEVEL]

Adapt this template by replacing the square-bracket placeholders with your application's runtime values. [AGENT_OUTPUTS] should be a structured object mapping agent identifiers to their full output strings. [SHARED_EVIDENCE] is the common ground truth all agents received—this is critical for evidence alignment checks. [RISK_LEVEL] should be set to 'high' for regulated, financial, clinical, or safety-critical workflows, which will force escalation on any unresolved factual dispute. Before deploying, validate that the output JSON conforms to the schema using a programmatic validator. Run eval checks for hallucinated agreement (where the model claims consensus that doesn't exist in the inputs) and misattribution (where a position is assigned to the wrong agent). For high-risk domains, route any output with escalation_recommended: true or confidence: low to a human review queue with the full synthesis payload.

IMPLEMENTATION TABLE

Prompt Variables

Variables required for the Agent Output Synthesis from Conflicting Sources prompt. Validate each before injection to prevent hallucination, misattribution, or agreement misrepresentation.

PlaceholderPurposeExampleValidation Notes

[AGENT_OUTPUTS]

Array of conflicting agent outputs with source attribution and confidence scores

[{"agent_id": "research_agent_v2", "output": "Market size is $45B...", "confidence": 0.85, "citations": ["source_12", "source_47"]}, {"agent_id": "market_analyst_v1", "output": "Market size is $52B...", "confidence": 0.78, "citations": ["source_12", "source_89"]}]

Schema check: each entry must have agent_id (string), output (string), confidence (float 0-1), citations (string[]). Reject if any agent_id is missing or confidence is null.

[SHARED_EVIDENCE]

Ground-truth evidence pool all agents had access to, keyed by source ID

[{"source_id": "source_12", "content": "According to the 2024 industry report...", "authority_score": 0.9}, {"source_id": "source_47", "content": "Q3 earnings showed...", "authority_score": 0.7}]

Schema check: each entry must have source_id (string), content (string), authority_score (float 0-1). Reject if any citation in [AGENT_OUTPUTS] references a source_id not present here.

[USER_QUERY]

Original user request that triggered the multi-agent workflow

What is the current market size for enterprise AI platforms and what factors are driving growth?

Null not allowed. Must be non-empty string. Log original query for traceability even if agents received modified versions.

[SYNTHESIS_CONSTRAINTS]

Rules for how the synthesis should handle disagreement, uncertainty, and attribution

{"max_contested_points": 5, "require_attribution": true, "uncertainty_threshold": 0.6, "escalate_on_irreconcilable": true, "output_format": "structured_report"}

Schema check: require_attribution must be boolean, uncertainty_threshold must be float 0-1, output_format must be enum [structured_report, summary, decision_memo]. Reject unknown output_format values.

[OUTPUT_SCHEMA]

Target schema for the synthesized output

{"sections": ["agreement_summary", "contested_points", "agent_positions", "evidence_alignment", "synthesized_answer", "uncertainty_notes"], "require_citation_map": true, "max_contested_point_length": 200}

Schema check: sections must be non-empty array of valid section names. require_citation_map must be boolean. Validate that synthesized output conforms to this schema before returning to caller.

[CONFIDENCE_CALIBRATION]

Historical calibration data per agent to adjust raw confidence scores

[{"agent_id": "research_agent_v2", "calibration_curve": "overconfident_by_0.12", "reliability_score": 0.82}, {"agent_id": "market_analyst_v1", "calibration_curve": "well_calibrated", "reliability_score": 0.91}]

Schema check: each entry must have agent_id matching [AGENT_OUTPUTS], calibration_curve (string), reliability_score (float 0-1). If missing, assume well_calibrated with reliability_score 0.5. Log assumption.

[ESCALATION_RULES]

Conditions that trigger human review instead of automated synthesis

{"max_confidence_gap": 0.4, "require_evidence_overlap": true, "min_agreeing_agents": 2, "escalate_on_factual_contradiction": true, "escalate_on_schema_mismatch": false}

Schema check: max_confidence_gap must be float 0-1, min_agreeing_agents must be integer >= 1. Boolean fields must be present. Reject if escalation conditions are internally contradictory.

[HALLUCINATION_CHECKS]

Rules for detecting fabricated agreements or misrepresented agent positions in the synthesis output

{"check_citation_accuracy": true, "check_agreement_fabrication": true, "check_agent_misrepresentation": true, "max_allowed_hallucination_risk": 0.05, "retry_on_failure": true, "max_retries": 2}

Schema check: max_allowed_hallucination_risk must be float 0-1, max_retries must be integer >= 0. If retry_on_failure is true, max_retries must be >= 1. Validate synthesis output against these checks before returning.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the synthesis prompt into an application or agent orchestration workflow with validation, retries, and audit logging.

The synthesis prompt is not a standalone artifact; it is a component inside a larger arbitration pipeline. The typical wiring pattern places this prompt after a conflict detection step and before a human review or escalation step. The application layer is responsible for collecting the conflicting agent outputs, normalizing them into the [AGENT_OUTPUTS] placeholder format, injecting the shared evidence context into [SHARED_EVIDENCE], and enforcing the [OUTPUT_SCHEMA] contract. Do not pass raw, unnormalized agent responses directly into this prompt—schema mismatches between agent outputs will cause the synthesizer to hallucinate structure rather than flag it.

Validation and retry loop: The synthesized output must be validated against the expected schema before it is accepted. At minimum, validate that every claim in the agreed_facts and contested_points arrays includes a non-empty source_agents list and that no agent is cited for a claim it did not make. If validation fails, retry the prompt once with the validation error appended to [CONSTRAINTS]. If the second attempt also fails, escalate to a human reviewer with the raw agent outputs and the failed synthesis attempts. For high-risk domains, add a hallucination detection check: extract all factual claims from the synthesis and verify each against [SHARED_EVIDENCE] using a separate fact-checking prompt. Claims not grounded in evidence should be removed or flagged before the synthesis reaches a downstream consumer.

Model choice and latency: This prompt benefits from models with strong reasoning and instruction-following capabilities. For production pipelines, prefer GPT-4o, Claude 3.5 Sonnet, or equivalent. Avoid smaller or faster models for arbitration tasks—the cost of a wrong synthesis (misrepresenting agent agreement, fabricating consensus) is far higher than the latency savings. If latency is critical, consider running the synthesis prompt in parallel with a lightweight agreement check that can short-circuit the pipeline when all agents produce identical outputs. Logging and audit: Every synthesis run should produce an audit record containing the input agent outputs, the shared evidence, the synthesized result, the validation outcome, and the retry count. This audit trail is essential for debugging misrepresentations and for governance reviews.

Integration with agent frameworks: When wiring this into LangGraph, CrewAI, or custom orchestrators, treat the synthesis step as a dedicated node with explicit input and output schemas. The node should receive a typed ConflictReport from the upstream conflict detector and emit a typed SynthesisResult. Downstream nodes should only consume the SynthesisResult, never the raw agent outputs, to prevent accidental bypass of the arbitration layer. If the synthesis node fails or escalates, the orchestrator must halt the pipeline—do not fall back to a single agent's output silently. That pattern creates the illusion of resolution while hiding unresolved conflicts from users.

IMPLEMENTATION TABLE

Expected Output Contract

Validate the synthesized output from the Agent Output Synthesis prompt. Each field must conform to the type, requirement, and validation rule specified. Use this contract to build post-processing checks, eval assertions, and retry triggers.

Field or ElementType or FormatRequiredValidation Rule

synthesized_answer

string

Must be non-empty. Must not be identical to any single agent's raw output. Parse check: length > 0 and not in [AGENT_OUTPUTS].

agreement_zones

array of objects

Each object must contain 'claim' (string), 'supporting_agents' (array of strings, min 2), and 'evidence_refs' (array of strings). Schema check: validate against JSON Schema. Empty array is a failure signal.

contested_points

array of objects

Each object must contain 'claim' (string), 'agent_positions' (array of objects with 'agent_id' and 'position' strings), and 'resolution' (string, one of: 'unresolved', 'evidence_favors', 'majority_favors', 'escalated'). Schema check required. Null allowed if no contested points.

attribution_map

array of objects

Each object must contain 'claim_fragment' (string), 'source_agent' (string matching an agent_id from input), and 'confidence' (number, 0.0-1.0). Every factual claim in 'synthesized_answer' must have at least one attribution entry. Citation check: cross-reference claims against map.

escalation_triggered

boolean

Must be true if any contested_point has resolution 'escalated' or if agreement_zones is empty. Consistency check: cross-validate against contested_points and agreement_zones.

synthesis_confidence

number

Value between 0.0 and 1.0. Must be <= the minimum confidence among all attributed claims. Confidence threshold: if < 0.6, trigger human review flag in harness.

hallucination_flags

array of objects

If present, each object must contain 'claim' (string), 'detection_reason' (string, one of: 'no_source_attribution', 'contradicts_evidence', 'fabricated_detail'), and 'severity' (string, one of: 'low', 'medium', 'high'). Null allowed. Retry condition: if any flag has severity 'high', do not return output to user.

irreconcilable_outputs

array of strings

List of agent_ids whose outputs could not be incorporated. Each string must match an input agent_id. Null allowed. Approval required: if not null, log for human review before finalizing synthesis.

PRACTICAL GUARDRAILS

Common Failure Modes

What breaks first when synthesizing agent outputs from conflicting sources and how to guard against it.

01

Hallucinated Agreement

What to watch: The synthesis prompt fabricates consensus where agents actually disagreed, smoothing over conflicts to produce a coherent but inaccurate summary. Guardrail: Require the output to explicitly list contested points with agent attribution before any synthesis. Validate that every claim in the final answer maps to at least one source agent's output.

02

Source Attribution Drift

What to watch: The synthesis incorrectly attributes claims to the wrong agent, creating a false audit trail that misleads downstream reviewers about which agent said what. Guardrail: Include a structured attribution schema in the output contract and run a post-synthesis verification pass that checks each attribution against the original agent outputs.

03

Majority-Confidence Collapse

What to watch: The synthesis overweights the majority position even when the dissenting agent has higher calibrated confidence or stronger evidence grounding. Guardrail: Require confidence-weighted synthesis with explicit handling of minority reports. Flag cases where a single high-confidence agent disagrees with multiple low-confidence agents for human review.

04

Evidence Grounding Loss

What to watch: The synthesis prompt produces a fluent answer that sounds authoritative but drops the evidence citations and source grounding present in the original agent outputs. Guardrail: Enforce citation preservation rules in the output schema. Run a fact-checking pass against the shared evidence store before accepting the synthesized output.

05

Schema Misalignment During Merge

What to watch: Agent outputs use incompatible schemas, field names, or data types, causing the synthesis to drop fields, coerce types incorrectly, or produce malformed merged output. Guardrail: Normalize all agent outputs to a common schema before synthesis. Validate the final output against the target schema and flag any field-level data loss.

06

Silent Escalation Bypass

What to watch: The synthesis prompt resolves conflicts that should have triggered escalation to a human reviewer, producing a confident but wrong answer for high-risk or irreconcilable disagreements. Guardrail: Define explicit escalation criteria based on conflict severity, risk level, and agreement threshold. Run a pre-synthesis escalation check before attempting resolution.

IMPLEMENTATION TABLE

Evaluation Rubric

Score each criterion on a pass/fail basis across a golden dataset of known agent disagreements. Use this rubric to gate the synthesis prompt before production deployment.

CriterionPass StandardFailure SignalTest Method

Agreement Preservation

All areas where source agents agree are present in the synthesized output without alteration

Agreed-upon fact is omitted, reworded into a contradiction, or attributed to only one agent

Diff agreed sections from source outputs against synthesized output; require exact match on key claims

Contested Point Documentation

Every point of disagreement is explicitly noted with the conflicting positions and their source agents

A disagreement present in source outputs is presented as settled fact or omitted entirely

Parse output for a dedicated 'Contested Points' section; verify count matches golden dataset disagreement count

Source Attribution Accuracy

Every claim in the output is attributed to the correct source agent(s) with no misattribution

Claim from Agent A is attributed to Agent B, or a synthesized claim is falsely attributed to a source agent

Extract all [AGENT_NAME] attribution tags; cross-reference against golden dataset agent-position mapping

Hallucination Absence

No new factual claims, data points, or evidence are introduced beyond what source agents provided

Output contains a statistic, quote, or factual assertion not present in any source agent output

Run a claim extraction script; flag any claim with zero overlap to source agent text via embedding similarity threshold

Agreement Misrepresentation Avoidance

Areas of partial or qualified agreement are not presented as full consensus

A hedged or conditional agreement is summarized as 'All agents agree' without qualification

Check consensus language against golden dataset agreement labels; flag false consensus when any agent included caveats

Uncertainty Calibration

Confidence language matches the degree of agent alignment; low-agreement zones use explicit uncertainty markers

High-certainty language used for claims where agents had low agreement or conflicting evidence

Scan output for certainty markers; compare against golden dataset agreement scores; fail if certainty exceeds agreement level

Structural Completeness

Output contains all required sections: synthesized answer, areas of agreement, contested points, agent attribution map

A required section is missing, empty, or contains only placeholder text

Validate output against [OUTPUT_SCHEMA]; fail if any required field is null, empty array, or missing

Escalation Trigger Accuracy

Output correctly escalates when no synthesis is possible without fabricating consensus

Irreconcilable conflict is synthesized into a false middle-ground answer instead of escalating

Check golden dataset escalation labels; fail if output provides a synthesized answer when escalation is the expected behavior

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Use the base prompt with a single frontier model acting as the synthesizer. Remove strict output schema requirements and focus on narrative coherence. Accept markdown or plain text output instead of enforcing JSON.

Prompt modification

  • Replace [OUTPUT_SCHEMA] with a loose instruction: "Produce a clear summary with sections for agreements, disagreements, and unresolved points."
  • Remove [CONFIDENCE_THRESHOLD] and [ESCALATION_POLICY] placeholders.
  • Collapse [AGENT_OUTPUTS] into a simple list of labeled text blocks.

Watch for

  • The synthesizer inventing agreement where agents actually disagreed.
  • Attribution errors where claims are assigned to the wrong source agent.
  • Missing contested points that were present in agent outputs but omitted from synthesis.
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.