A2A Protocol – Enabling AI agents to communicate
Whilst historically AI has largely been utilised for single purpose functions, there are now opportunities for companies to deploy a range of AI agents to jointly carry out more advanced functions.
As different AI systems can utilise varying architecture and technology, there is a requirement for consistent protocols which enable agents to effectively communicate and work together.
Google has launched the A2A (Agent2Agent) protocol which enables distinct AI agents to effectively communicate and co-operate. It is a key innovation within the evolving ‘agentic’ AI space.
What Is the A2A Protocol is a publicly available protocol which enables different AI agents to communicate with each other.
In this way, agents can ‘speak’ a common language. Individual agents can specialise and then share information as necessary.
An e-commerce company could for example deploy agents to respond to customers, check stock levels and collate delivery information. If a customer wishes to enquire about an order, these agents can then work together.
Hence, the A2A protocol encourages the development of more integrated, adaptable AI, which can combine distinct specialisms to effectively carry out functions.
Why Is Agent communication becoming key?
Whilst companies are continuing to explore the use of AI for automation, it can cause issues if different AI agents are unable to communicate well with each other.
Good inter-agent communication assists in overcoming this challenge.
Benefits of good agent communication can include:
Enhanced co-operation – agents can combine specialisms to successfully undertake joint functions.
Adaptable technology – different agents can be constructed using various technologies and architectures.
Streamlined integration – agents can utilise a unified protocol for communication and therefore minimising the need for bespoke integration.
Adaptation – organisations can add new agents as their business needs evolve.
Specialisation – agents can concentrate on defined functions and so do not all need to undertake the same functions.
Communication is therefore an integral element within current AI.
How Does the A2A Protocol function?
It is helpful to consider the communication process between two agents.
1. Identification
Agents must first recognise each other and ascertain what functionality each can offer. Within the A2A protocol this is achieved via an Agent Card, which summarises an agent’s identity, functionality and communication parameters.
This then enables agents to recognise if another agent is appropriate for a given function.
2. Assignment of function
Having recognised a relevant agent, an agent can then assign it with a function. Information along with relevant background is provided.
For instance, a customer service agent could instruct an order agent to provide up-to-date delivery information.
3. Function execution and information sharing
An agent can execute the function, drawing upon its own technologies and functionality. It can then relay information and continue functioning.
Sometimes an agent may need to engage in more than one exchange to successfully execute a function.
4. Delivery of outcome
On completion of a function, an agent can deliver an outcome. Further, function status information can be conveyed so that involved systems can recognise if a function is being undertaken, has been successfully carried out or has failed.
Such a method facilitates effective co-ordination of agents within extensive AI environments.
Key aspects of A2A communication
There are a number of key elements within the A2A protocol which facilitate agent communication:
Agent Cards – identifying an agent, alongside its functionality and the forms of communication it can utilise.
Function status – functions can be attributed statuses so that systems can recognise how they are progressing and what their outcomes are.
Formulated information sharing – structured data can be utilised to convey relevant background information between agents.
Non-synchronous communication – as not all functions are instant, agents can relay interim information during function execution.
Various media type support – the protocol can accommodate different media, for example text and data. This will depend on how it is implemented.
Together, these underpin the development of integrated multi-agent AI systems.
A2A Protocol and MCP – What Is the difference?
Both the A2A protocol and the Model Context Protocol (MCP) are commonly referenced as they both relate to contemporary AI. However, they serve differing functions.
Whereas the MCP protocol defines a universal protocol for AI systems to communicate with external technology, data and assets, the A2A protocol relates specifically to inter-agent communication. Agents can recognise and request the aid of other agents and co-ordinate functions.
Whilst the MCP protocol enables AI systems to communicate with technology and context, the A2A protocol facilitates agent communication. Both can be utilised within wider AI systems.
Real-world applications
Inter-connected agents can be applied within a variety of industries.
E-commerce
Agents can combine to effectively address customer needs by covering functions such as customer service, stock control, payments and delivery.
Healthcare administration
Agents may be deployed for functions such as appointments, record-keeping and administration, with suitable data confidentiality and professional supervision in place.
Education
Agents can be utilised by educational systems for functions including study guidance, information seeking and administration.
Banking and Finance
Agents can be employed for functions such as document handling, customer service and internal administration, again with due regard for regulatory and data security rules.
Business
Companies can integrate agents for functions such as business intelligence, investigation and project and administration management.
These examples highlight the value of agents working together. However, the specific impact will depend on an array of factors, including system design, data and security arrangements and human supervision.
Considerations for businesses
Although the concept of inter-agent communication is highly beneficial, it is not universally applicable to resolve all automation related issues.
Firstly, robust data security procedures are essential. Companies must define mechanisms for verifying identities and setting permissions so that agents only engage with permitted data and services.
Secondly, agents may not always provide fully accurate or correctly interpreted information and may not successfully execute functions. As such, companies should put in place processes for observing agent functioning, assessment, error management and human verification for key functions.
In addition, data confidentiality, technology compatibility and costs should all be evaluated prior to extensive deployment of multi-agent systems.
Developing skills for future AI
Whilst detailed comprehension of models is key, as AI continues to evolve further, individuals wishing to develop advanced AI applications will also benefit from gaining knowledge of areas such as APIs, large language models, prompt design, retrieval augmented generation and agents.
Students and professionals can gain insights into these core agent concepts by studying the A2A protocol, including agents recognition, communication, function allocation and inter-agent co-operation.
The National Institute of Generative AI (NIGAPE) also offers educational provision on generative AI and new technologies. Investigation of these areas can therefore support the enhancement of understanding of the design and application of contemporary AI.
Conclusion
Whilst high-performing models will continue to be a key area of artificial intelligence, the coming era is likely also to emphasise the value of inter-linked systems. Such systems can effectively share information and co-ordinate specialisms to successfully execute advanced functions.
By defining a universal protocol for inter-agent communication, the A2A ecosystem contributes to furthering a more integrated environment. Awareness of this technology can thus help AI professionals to effectively prepare for the more interconnected nature of future AI applications.