Key Benefits
- Interoperability. A2A clients can interact with the A2A agent through a standardized protocol.
- Standardized Discovery. An Agent Card provides A2A clients with the A2A agent’s name, description, and skills.
- Flexible Interaction. The Endpoint supports single-turn messages, multi-turn conversations, long-running tasks, and streaming responses.
Restrictions
- A2A support varies between platforms. An A2A client that implements the protocol differently may not consume all parts of the Agent Card or all response types. Test the integration with each A2A client you plan to use.
- Push notifications, such as webhook delivery on task completion, aren’t supported. The Agent Card always advertises
capabilities.pushNotifications: false. - The
x-a2a-endpoint-keyheader name used for API Key Authentication isn’t configurable. - Inbound requests are rate-limited to 120 requests per 60 seconds per Endpoint. This limit isn’t configurable.
- Incoming file attachments (
FilePart) aren’t supported. The Endpoint editor doesn’t currently expose a File Storage connection for the A2A Server Endpoint, so attachments are dropped regardless of whether they’re sent by URI reference or as inline base64 content. - A Handover to Human Agent request in the Flow doesn’t produce a distinct task state. A human agent replies after the Flow’s execution pass ends. Because push notifications aren’t supported, that reply can’t reach the A2A client through this Endpoint.
Prerequisites
- A Cognigy.AI Flow that can respond to text messages, for example, with a Say Node or an AI Agent Node.
Generic Endpoint Settings
Specific Endpoint Settings
Agent Card Configuration
Agent Card Configuration
This section shows the Endpoint URL and configures the metadata that A2A clients receive upon discovering the A2A agent.
Authentication
Authentication
This section configures an optional authentication layer in addition to the mandatory URL token.
The URL token embedded in the Endpoint URL is always required and can’t be disabled.
A2A Skills
A2A Skills
This section lists the capabilities that the A2A agent advertises through the Agent Card’s
skills field. Skills provide descriptive metadata only and don’t restrict what the Flow can do.Click the plus icon to add a skill or the delete icon to remove one. If you don’t configure any skills, the Agent Card advertises a single default skill.
How to Set Up
Configure the A2A Server Endpoint for the Flow, then give its A2A Agent Base URL to the A2A client.Set Up the A2A Server Endpoint
Configure an A2A Server Endpoint
Configure an A2A Server Endpoint
- In the left-side menu of your Project, click Deploy > Endpoints.
- On the Endpoints page, click + New Endpoint.
- In the New Endpoint section:
- Select the A2A Server Endpoint type.
- Specify a unique name.
- Select the Flow that the Endpoint should expose.
- Save the changes.
- In Agent Card Configuration, specify the Agent Name and Agent Description. Save the changes.
- (Optional) In A2A Skills, add one or more skills that describe the A2A agent’s capabilities.
- In Authentication, select the Authentication Method:
- None — requires only the URL token. This option is selected by default.
- API Key — requires the URL token and a valid API key in the
x-a2a-endpoint-keyheader. To generate an API key, click + New Key under Endpoint API Keys. Share the key securely with the A2A client.
- Activate the Endpoint.
- Click A2A Agent Base URL to copy the URL.
Connect an A2A Client
Connect an External A2A Client
Connect an External A2A Client
The exact configuration depends on the A2A client library or framework. Most A2A clients handle Agent Card discovery and protocol details automatically.
-
Give the A2A client the A2A Agent Base URL copied from the Endpoint. Most A2A clients use this URL to discover the Agent Card. For a direct request, append
/.well-known/agent-card.json:Replace{token}with the token from the A2A Agent Base URL. TheA2A-Version: 1.0header returns the version 1.0 Agent Card. Omit the header to receive the version 0.3 Agent Card. -
Send a message with the
SendMessageJSON-RPC method:If the API Key authentication is configured, add:Agent Card discovery doesn’t require the API key, even when API Key authentication is configured for message requests. -
For long-running tasks, set
"configuration": { "returnImmediately": true }in the request. The Endpoint returns the task immediately. Poll its status withGetTaskusing the returned taskiduntil it reaches a terminal state. -
For streaming responses, use
SendStreamingMessageinstead ofSendMessage. The Endpoint returns the response as a Server-Sent Events (SSE) stream.
Use Cases
Multi-Agent Orchestration
Multi-Agent Orchestration
Add the A2A agent to a multi-agent system. An orchestrator can route relevant tasks to it and incorporate its responses into a larger workflow.
Cross-Platform Agent Collaboration
Cross-Platform Agent Collaboration
Let A2A clients on other platforms interact with the A2A agent to access specialized knowledge or execute existing business logic.
Cross-Organization Cognigy Collaboration
Cross-Organization Cognigy Collaboration
Let a Cognigy.AI Flow in one organization or Project interact with an A2A agent in another organization or Project. Use the A2A protocol instead of a proprietary integration. Copy the A2A Agent Base URL from the A2A Server Endpoint. Paste it into the A2A Agent Base URL field of an A2A Agent Node in the other environment.
Long-Running Task Delegation
Long-Running Task Delegation
Delegate a task that takes time to complete, for example, a task that calls a slow external API. The A2A client can poll for the result instead of keeping the connection open.
Agent as a Channel
Agent as a Channel
Let the A2A client contact the A2A agent on the customer’s behalf. The A2A Server Endpoint provides the machine-to-machine interface for accessing the A2A agent.
Reuse Without Exposure
Reuse Without Exposure
Let other teams delegate work to the A2A agent without giving them access to its implementation. The A2A client sees the Agent Card and receives the result, while the Flow’s internal logic, tools, and data remain inside Cognigy.AI.
Troubleshooting
A2A Compared to MCP
Use the MCP Server Endpoint to give an external application access to individual tools from a Cognigy.AI Flow. Use the A2A Server Endpoint to make a Cognigy.AI Flow available to A2A clients as an A2A agent.
More Information
- A2A Agent Tool. Call a remote A2A agent as a tool from within an AI Agent Node.
- MCP Server. Expose AI Agent tools through the Model Context Protocol.