Not all interactions between agents require Agent2Agent (A2A). The main architectural challenge is to identify which collaborations should become interoperable contracts and which should remain as internal calls or specific APIs.
Recently, in discussions with IT professionals, I have repeatedly heard the same idea: if an integration involves AI agents, it must always use A2A!
However, when we look deeper into the system architecture and the requirements of each case, that idea leads to a more useful question: what does A2A actually add to this specific interaction? Coordinating specialists within the same application is not the same as exposing a capability so that independent agent systems can use it.
This article comes from those discussions. My goal is neither to push for A2A in every situation nor to diminish its value, but rather to offer a practical framework to identify when it brings real advantages and when an internal interface or a custom API is enough.
"The presence of multiple agents does not, by itself, justify adopting A2A for all their interactions."
Before deciding how to connect our agents, it is helpful to understand how independent they need to be, who will consume them, and how they will evolve over time.
To make this decision clearer, we will use a common scenario as a reference: a specialist agent focused on document analysis. Although its core functions remain identical across all three scenarios, its integration with the overall architecture changes significantly.
Embedded specialist model
Scenario 1: The supervisor agent and the specialist agent that analyzes documents are part of the same application. Both run inside the same process, share their state, and are updated together.
In this case, communication between the main agent and the specialist is handled through an internal interface: the supervisor hands over the document and receives a structured result, without introducing any network communication.

The consumer interacts with the specialist through a local interface, without introducing network communication.
If we do not need to use the specialist outside this application, what real benefit would justify exposing it through a network interface? Does it make sense to use A2A?
An independent service with its own API
Scenario 2: We deploy the document analyzer as an independent service, for example, to assign dedicated computing resources to it or to allow another team to maintain it. Its consumers are known, and they require well-defined operations, such as sending a document and retrieving its analysis.
Under this approach, building a custom HTTP API usually meets these needs effectively. This option allows us to design inputs, results, and tracking mechanisms required for the operation with high precision.

The analyzer is deployed independently and exposes a specific API for its consumers.
If the consumers are known and operations are clearly defined, keeping a dedicated API may be the most reasonable decision.
Cross-domain agent interoperability
Scenario 3: The specialized agent needs to be offered as a reusable capability for independent agent systems. Besides sharing the service, we want its consumers to use a common model to discover its capabilities, delegate work to it, and follow up on results, instead of relying on custom rules for each integration.
This is precisely where adopting A2A makes sense: not simply because of the number of agents, but because of the need to establish a shared collaboration contract between systems from different domains.

The document analyzer is offered to different systems through a shared A2A contract.
That common contract does not replace specific service agreements. Consumers still need to know which documents the analyzer supports, what information each analysis includes, and what requirements the result must meet to be valid.
Establishing integration boundaries
To select the right architecture based on the level of independence and the consumer profile, we can use the following decision matrix:
| Integration model | Key scenarios | Interaction agreement |
|---|---|---|
Internal call | The specialist operates within the same process and lifecycle of the application. | Local interface or internal module without network. |
Specific API | Independent deployment or dedicated resource allocation is required for known consumers. | Custom HTTP/gRPC endpoints with well-defined operations. |
A2A protocol | The goal is to share a collaboration model among independent agent systems. | Shared agentic contract (Agent Card, tasks, messages, and results). |
The comparison does not pit A2A directly against HTTP as a transport layer, but rather compares a standard interaction contract with a service-specific contract.
Value delivered by the A2A contract in this interaction
Adopting the A2A protocol defines a common framework for agents to collaborate and exchange information. The examples below use A2A v1.0 and show individual protocol objects rather than complete JSON-RPC exchanges. In our document analyzer example, that interaction is organized around four main elements:
- Agent Card: Describes the specialist agent, its skills, supported interfaces, input/output modes, and authentication requirements. This is the discovery function documented in A2A (Agent Discovery).
For simplicity, the Agent Card example omits authentication and authorization details. In a production implementation, access to the agent and the documents it processes must be protected using appropriate security mechanisms.
{
"name": "Document Analyzer",
"description": "Specialist in analyzing documents and extracting structured information for contract review and vendor evaluation systems.",
"version": "1.0.0",
"supportedInterfaces": [
{
"url": "https://analyzer.example.com/a2a",
"protocolBinding": "JSONRPC",
"protocolVersion": "1.0"
}
],
"capabilities": {
"streaming": true,
"pushNotifications": false
},
"defaultInputModes": [
"application/pdf",
"text/plain"
],
"defaultOutputModes": [
"application/json"
],
"skills": [
{
"id": "analyze-document",
"name": "Document Analysis",
"description": "Extracts relevant information from the document and identifies clauses, obligations, and risks based on the specified objective.",
"tags": [
"documents",
"contracts",
"vendors"
],
"examples": [
"Identify the obligations and renewal clauses of this contract.",
"Extract the service commitments and payment terms from this vendor document."
]
}
]
}- Request message: Contains the initial work request sent by the consumer, including the document (or its URL reference), required parameters, and execution context.
{
"message": {
"messageId": "msg-analysis-001",
"role": "ROLE_USER",
"parts": [
{
"text": "Analyze this contract and identify the obligations, payment terms, and renewal clauses."
},
{
"url": "https://documents.example.com/contract-001.pdf",
"filename": "contract-001.pdf",
"mediaType": "application/pdf"
}
]
},
"configuration": {
"returnImmediately": true,
"acceptedOutputModes": [
"application/json"
]
}
}- Task and tracking: Allows the specialist to manage asynchronous jobs, report progress, and request clarification from the consumer if missing or unclear data is found.
{
"id": "task-analysis-001",
"contextId": "ctx-contract-001",
"status": {
"state": "TASK_STATE_WORKING"
}
}- Result: Delivers the analysis in a structured format according to the agreed schema, allowing the consumer to process and use the information directly.
{
"id": "task-analysis-001",
"contextId": "ctx-contract-001",
"status": {
"state": "TASK_STATE_COMPLETED"
},
"artifacts": [
{
"artifactId": "result-001",
"parts": [
{
"data": {
"paymentTermDays": 30,
"automaticRenewal": true
}
}
]
}
]
}In short, A2A does not replace the service data definition, but standardizes how work is discovered, requested, and tracked.
Practical example: dual-system sharing of the document analyzer
Let us look at how to apply this framework to a practical situation where two teams need to use the same specialist agent.
The analyzer is initially used in a contract review application. A second team wants to integrate it into a vendor evaluation system. Both need to consume the same core capability, but they maintain independent consumer systems and deployment lifecycles.
To decide how to share the service, we set three main requirements:
- Describe available analysis options in an accessible way for consumers.
- Track jobs that do not finish immediately, maintaining a queryable ID and status.
- Receive structured results that both systems can validate easily.
Normalized interaction flow
The interaction follows a structured sequence: consulting the Agent Card, submitting the analysis request, handling progress updates or requests for clarification through polling or streaming, completing the task with results, and performing local payload validation.
Decision for this case
For this illustrative scenario, we propose exposing the analyzer through A2A because we want both systems to share a collaboration model, not just a document processing endpoint. A custom API would also be a valid alternative; choosing A2A is justified if it allows reusing the interaction contract across consumers and reducing custom rules that each team would otherwise have to build.
This decision still respects service-specific agreements: supported document types, analysis schemas, access conditions, and acceptance criteria for results.
To verify whether this choice adds value in practice, we suggest adding the second consumer without changing the core analysis logic, completing a request that requires additional details, and ensuring both systems can validate results consistently. If each integration still requires extensive custom adaptations, we should review which part of the contract is truly being reused and whether the benefits outweigh the overhead.
Conclusion
These three scenarios do not have to be mutually exclusive options. A single architecture can combine local specialists, custom APIs, and interoperable protocols like A2A depending on the level of collaboration needed, keeping simplicity as the primary guiding rule.
Technical references of the A2A protocol
For more details on the official A2A specifications, please refer to the following resources:
Share
Author

Rafael Granados
Vice President and Field CTO, ChoreoLabs



