Skip to main content

Connect an external A2A agent

An external A2A agent is an AI agent hosted by your organization or by a vendor that speaks the open A2A (Agent2Agent) protocol. When you register one, the Mesh assistant can find it, see what it can do, and send it a message during an investigation — for example, asking an agent in your ITSM or access-management system to act on a finding.

The agent's response is returned to the assistant for the current request.

This page covers the outbound direction: Mesh calling your agents. For the other direction, where your agents call Mesh, see Connect your agent to Mesh.

Nothing is connected by default. The assistant uses an agent only after an administrator registers it.

Review the agent before connecting it

Connect only an agent that your organization trusts. The assistant sends messages to the agent using the credentials you provide, and the agent's response can influence the assistant's answer. The message the assistant sends can include details from your investigation, such as identity and risk information. Treat it as data you are sharing with that agent and its operator. For how Mesh handles data in AI features, see AI features and data handling.

Before you begin​

Prepare the following:

  • A Mesh administrator account. The External agents page appears only when AI features are turned on for your tenant.
  • The agent's base URL.
  • The credentials the agent requires. See Authentication options.
  • The path to the agent's agent card, if the agent does not publish it at the standard path.

Authentication options​

Choose the scheme that your agent expects:

SchemeWhat Mesh sends
API keyYour key in an HTTP header. The header is X-API-Key unless you set another name
Bearer tokenYour token as a bearer credential
OAuth 2.0A token that Mesh gets from your token URL, using your client ID and client secret. By default Mesh uses the client credentials grant; you can use a refresh token instead. You can add a scope

Add an agent​

Open the External agents page from the dashboard:

  • In the Generative UI dashboard, select Settings, then External agents.
  • In the classic dashboard, select Settings, then Config Management, then External agents.

On the External agents page:

  1. Select Add external agent.
  2. Choose the A2A external agent from the list.
  3. Fill in the form. See What you enter.
  4. Select Add & connect.

Mesh does not require a connection test before you save an agent, so check the base URL, the agent card path and the credentials before you select Add & connect.

What you enter​

SettingRequiredWhat to enter
Agent nameYesA display name for the agent
Base URLYesThe agent's base URL
DescriptionNoWhat the agent does
Agent card pathNoWhere the agent publishes its agent card. The default is /.well-known/agent-card.json. Set it only if the agent uses a different path
Auth schemeYesapiKey, bearer or oauth2. The credential settings below depend on your choice
API KeyFor apiKeyThe key for the agent. You can also set the header name, which defaults to X-API-Key
Bearer TokenFor bearerThe token for the agent
Client ID and Client SecretFor oauth2The OAuth 2.0 client credentials
Token URLFor oauth2The OAuth 2.0 token endpoint
OAuth grant typeFor oauth2client_credentials (the default) or refresh_token
Refresh TokenFor the refresh_token grantThe OAuth 2.0 refresh token. Client ID, client secret and token URL are still required
OAuth scopeNoA scope to send when Mesh gets a token
SkillsNoThe skills or capabilities the agent provides
EnabledNoOn by default. Turn it off to register the agent without using it yet. The assistant can still see a disabled agent in its list, but cannot call it
TimeoutNoHow many seconds Mesh waits for the agent. The default is 30. Enter a value from 5 to 300

Credential fields are hidden as you type. Do not paste secrets into descriptions, screenshots, support tickets or chat messages.

Turn an agent on or off​

The agent list has a Status toggle for each agent. Turn it off to stop the assistant from using the agent, and turn it on again when the assistant should use it. Turning an agent off keeps its configuration.

The assistant cannot call an agent that is turned off, whether you turn it off here or clear Enabled in the form.

Edit an agent​

Open the agent's action menu in the list and select Edit to change its settings.

How the assistant uses your agents​

During an investigation, the assistant can:

  • List your agents. It sees each agent's name, description and skills.
  • Send a message to an agent. It sends the message and brings the agent's response back into the conversation.
Availability depends on your Mesh deployment

External agents work only when your Mesh deployment includes A2A support. Exact labels can depend on the version deployed in your environment, so verify the target environment before you rely on this workflow.

Next steps​