Overview
The A2A Agent enables the integration of external agents that implement the Agent-to-Agent (A2A) protocol as native agents within the Evo AI platform. Using the ADK base agent, these external agents can be used anywhere in the system as if they were local agents. This functionality is fundamental for creating hybrid ecosystems, where externally developed or hosted agents in other systems can seamlessly participate in complex workflows alongside native platform agents.Based on A2A Protocol: Implementation following the Agent-to-Agent protocol developed by Google for agent interoperability.
Key Features
Transparent Integration
External agents function as natives in workflows and sub-agents
Standard Protocol
Uses A2A protocol for standardized and interoperable communication
ADK Base Agent
Implemented on top of the ADK base agent for maximum compatibility
Total Flexibility
Agents can be on any infrastructure or technology
When to Use A2A Agent
Ideal Scenarios
Ideal Scenarios
✅ Use A2A Agent when:
- External agents: Integrating agents developed outside the platform
- Legacy systems: Connecting existing systems via A2A protocol
- External specialization: Using specialized third-party agents
- Distributed infrastructure: Agents in different clouds or datacenters
- Specific technologies: Agents in Python, Node.js, or other languages
- Python data analysis agent hosted externally
- Legacy recommendation system exposed via A2A
- Specialized image processing agent
- Third-party translation service
- Document validation agent in specific infrastructure
When NOT to use
When NOT to use
❌ Avoid A2A Agent when:
- Simple agents: Functionality can be implemented natively
- Critical latency: Network communication adds overhead
- Sensitive data: Requires local processing for security
- Total control: Need complete control over execution
- Initial development: Better to start with native agents
Creating an A2A Agent
Step by Step on the Platform
1. Start creation
1. Start creation
- On the Evo AI main screen, click “New Agent”
- In the “Type” field, select “A2A Agent”
- You’ll see specific fields for A2A configuration

2. Configure basic information
2. Configure basic information
Name: A2A agent name on the platformDescription: Summary of external agent capabilitiesGoal: Agent’s objective and responsibilities
3. Configure A2A connection
3. Configure A2A connection
Endpoint URL: URL of the external agent implementing A2AAgent ID: Agent identifier in the external systemAuthentication: Authentication methodAPI Key/Token: Credentials for authentication

4. Define agent interface
4. Define agent interface
Instructions: How to use the A2A agent in the platform context
5. Advanced configurations
5. Advanced configurations
Timeout: Time limit for calls to external agentRetry Policy: Retry policy in case of failureHealth Check: External agent health verificationCircuit Breaker: Protection against cascading failures

Practical Examples
1. Python Data Analysis Agent
Agent Configuration
Agent Configuration
Scenario: Integrate external Python data analysis systemPlatform configuration:Basic Information:
- Name:
python_data_analyzer
- Description:
Python agent for advanced data analysis and ML
- Goal:
Provide insights through statistical analysis and machine learning
- Endpoint:
https://analytics.company.com/api/v1/a2a/data-analyzer
- Agent ID:
data-analyzer-prod
- Auth Method:
API Key
- API Key:
da_prod_key_abc123...
- Timeout:
600 seconds
(analysis can be time-consuming) - Retry Policy:
Retry with Backoff
- Health Check:
Enabled
(/health
endpoint)
2. Legacy Recommendation System
Agent Configuration
Agent Configuration
Scenario: Integrate existing recommendation system via A2APlatform configuration:Basic Information:
- Name:
legacy_recommender
- Description:
Legacy recommendation system integrated via A2A
- Goal:
Provide personalized recommendations based on history
- Endpoint:
https://recommender.legacy-system.com/a2a
- Agent ID:
recommender-v1
- Auth Method:
Bearer Token
- Token:
Bearer eyJhbGciOiJIUzI1NiIs...
3. Image Processing Agent
Agent Configuration
Agent Configuration
Scenario: Integrate specialized image processing servicePlatform configuration:Basic Information:
- Name:
image_processor
- Description:
Agent specialized in image analysis and processing
- Goal:
Extract information, detect objects and process images
- Endpoint:
https://vision-api.imageservice.com/a2a
- Agent ID:
vision-processor
- Auth Method:
Custom Headers
- Headers:
X-API-Key: img_key_xyz789...
Workflow Integration
Using A2A Agents in Sub-Agents
In Sequential Agents
In Sequential Agents
Example: Product Analysis Pipeline
In Parallel Agents
In Parallel Agents
Example: Complete User Analysis
In Loop Agents
In Loop Agents
Example: Campaign Optimization
Monitoring and Debugging
Tracking A2A Agents
Monitoring Dashboard
Monitoring Dashboard
Specific metrics for A2A Agents:
- Network latency: Communication time with external agent
- Success rate: Percentage of successful calls
- Health status: External agent health status
- Circuit breaker: Circuit breaker state
- Retry attempts: Number of attempts per call
Problem Debugging
Problem Debugging
Common issues with A2A Agents:1. Connection Timeout2. Authentication Failures3. Active Circuit Breaker4. Incompatible Data Format
Advanced Configurations
Performance Optimization
Latency Reduction
Latency Reduction
Strategies to optimize performance:Connection Pooling:Intelligent Caching:Compression:
Resilience and Reliability
Resilience and Reliability
Configurations for maximum robustness:Circuit Breaker Settings:Retry Configuration:Health Check:
Security
Security
Security configurations:Authentication:Data Protection:Access Control:
Output Key - State Sharing
Output Key - State Sharing
Output Key
field in the interface:The Output Key allows the A2A Agent to save the external agent’s response to a specific variable in the shared state, making it available to other agents or subsequent processes.How it works:- Configure the
Output Key
field with a descriptive name - The external agent’s response will be automatically saved to that variable
- Other agents can access it using placeholders
{{output_key_name}}
- Works in workflows, loops, and multi-agent systems
- Use snake_case:
external_system_response
,validated_data
- Be specific:
sentiment_analysis_api
instead ofanalysis
- Document expected external response format
- Consider error handling in state
- Use names that identify external origin
Best Practices
Integration Design
Integration Design
Principles for effective integration:
- Idempotency: Operations should be safe for retry
- Appropriate timeouts: Balance between performance and reliability
- Error handling: Handle failures gracefully
- Monitoring: Constantly monitor health and performance
- Documentation: Clearly document interface and limitations
A2A Protocol
A2A Protocol
Correct protocol implementation:
- JSON-RPC 2.0: Follow specification rigorously
- Message IDs: Use unique UUIDs for tracking
- Error codes: Implement standardized error codes
- Streaming: Support SSE for long operations
- Context: Maintain context between calls when necessary
Operation and Maintenance
Operation and Maintenance
Ensuring stable operation:
- Health checks: Implement health endpoints
- Logging: Log all interactions
- Metrics: Collect performance metrics
- Alerting: Configure alerts for issues
- Versioning: Manage API versions carefully
Common Use Cases
Legacy Systems
Gradual Modernization:
- Integration of existing systems
- Incremental migration to new architecture
- Preservation of previous investments
External Specialization
Specialized Agents:
- Advanced data analysis
- Image/video processing
- Specialized machine learning
Distributed Infrastructure
Multi-Cloud/Hybrid:
- Agents in different clouds
- Edge computing
- Compliance and data residency
Third Parties
Third-Party Services:
- Partner APIs
- Specialized SaaS services
- Vendor integrations
Next Steps
A2A Protocol
Understand the Agent-to-Agent protocol in detail
LLM Agent
Learn about native intelligent agents
Configurations
Explore advanced agent configurations
Workflow Agents
Use A2A Agents in complex workflows
The A2A Agent is essential for creating hybrid ecosystems and integrating external agents. Use it to leverage existing systems and external specialization while maintaining the flexibility of the Evo AI platform.