Skip to content
    Back to BlogAgentic AI

    A2A Protocol: How AI Agents Discover and Talk to Each Other

    Digisailor Team 13 min read794 words

    MCP connects agents to data and tools. A2A connects agents to each other. If MCP is the USB-C of AI, then A2A is the internet protocol -- it lets independently built agents discover, communicate, and collaborate without prior coordination.

    Why Agents Need to Talk

    In a mature manufacturing deployment, agents are built by different teams, run on different infrastructure, and use different frameworks. The maintenance agent might be built with CrewAI by the reliability engineering team. The quality agent might use Google ADK, built by the quality department. The supply chain agent might be a vendor-provided solution.

    These agents need to coordinate:

    • The maintenance agent needs to tell the scheduling agent about upcoming downtime
    • The quality agent needs to ask the maintenance agent about recent equipment changes
    • The supply chain agent needs to inform the scheduling agent about material delays

    Without a standard protocol, each pair of agents needs custom integration. A2A eliminates this.

    A2A Architecture

    Agent Cards

    Every A2A-compatible agent publishes an Agent Card -- a machine-readable description of:

    • Identity -- Name, description, version
    • Capabilities -- What tasks the agent can perform
    • Input/Output schemas -- What data the agent expects and returns
    • Authentication -- How to authenticate when communicating
    • Endpoint -- Where to send requests

    Agent Cards are published at a well-known URL, enabling automatic discovery.

    Task Lifecycle

    A2A defines a standard task lifecycle:

    1. Discovery -- Agent A finds Agent B's capabilities via its Agent Card
    2. Request -- Agent A sends a task request with context and parameters
    3. Processing -- Agent B processes the request, potentially streaming updates
    4. Response -- Agent B returns results, artifacts, or status updates
    5. Follow-up -- Agents can continue the conversation for multi-turn interactions

    Message Format

    A2A messages contain:

    • Parts -- Text, structured data, files, or references to external resources
    • Context -- Shared context that both agents can access
    • Artifacts -- Output files, reports, or data generated during task processing

    A2A in Manufacturing: Practical Scenarios

    Scenario 1: Coordinated Maintenance

    The vibration monitoring agent detects anomaly on Pump 7:

    1. Vibration Agent publishes finding via A2A to the Maintenance Agent
    2. Maintenance Agent queries its knowledge base for Pump 7 history
    3. Maintenance Agent sends A2A request to Parts Agent: "Is bearing SKF-7014 in stock?"
    4. Parts Agent responds: "2 units available in warehouse B, bin 14-C"
    5. Maintenance Agent sends A2A request to Scheduling Agent: "Need 2-hour window for Pump 7 repair"
    6. Scheduling Agent responds: "Window available Saturday 06:00-08:00, re-sequencing production"
    7. Maintenance Agent creates work order with all coordinated details

    Scenario 2: Cross-Plant Quality Alert

    Quality Agent at Plant A detects a defect pattern in incoming raw material:

    1. Plant A Quality Agent sends A2A alert to Plant B Quality Agent
    2. Plant B Quality Agent checks if the same material batch was received
    3. Plant B Quality Agent triggers enhanced inspection on affected batches
    4. Both agents send A2A notification to Supply Chain Agent
    5. Supply Chain Agent contacts supplier system for root cause investigation

    Scenario 3: Vendor Agent Integration

    A CNC machine vendor provides a diagnostic agent with their equipment:

    1. Vendor Agent publishes Agent Card with diagnostic capabilities
    2. Factory Maintenance Agent discovers vendor agent via A2A
    3. When a complex fault occurs, Maintenance Agent delegates diagnosis to Vendor Agent
    4. Vendor Agent analyzes machine data using proprietary knowledge
    5. Vendor Agent returns diagnosis and recommended repair procedure

    A2A vs Direct API Integration

    • Discoverability -- A2A agents self-describe; APIs require documentation reading
    • Flexibility -- A2A supports natural language tasks; APIs require exact parameter formatting
    • Negotiation -- A2A agents can negotiate task parameters; APIs are fixed contracts
    • Evolution -- A2A agents can update capabilities without breaking consumers; API changes require version management

    Security Considerations

    A2A includes built-in security mechanisms:

    • Authentication -- OAuth 2.0, API keys, or mutual TLS
    • Authorization -- Capability-based access control
    • Audit -- Complete logging of all inter-agent communications
    • Encryption -- TLS for all communications
    • Rate limiting -- Protection against agent flooding

    For manufacturing, this means you can allow vendor agents to communicate with your factory agents while maintaining strict control over what data they can access and what actions they can perform.

    Getting Started with A2A

    1. Start internal -- Deploy A2A between your own agents before opening to external agents
    2. Define boundaries -- Clearly specify what each agent can and cannot do via Agent Cards
    3. Implement gradually -- Begin with read-only interactions before enabling cross-agent actions
    4. Monitor everything -- Log all A2A communications for debugging and compliance
    5. Establish governance -- Create policies for which agents can communicate with which others

    Frequently Asked Questions

    Ready to transform your factory?

    Talk to our team about implementing these solutions.

    Get in Touch