Skip to content

Connect an A2A agent

Open in ChatGPT Open in Claude

Once your A2A server agent is deployed and reachable, connect it to a Copilot in Agent Studio → A2A Agents. The Copilot then discovers your agent’s skills and delegates matching tasks to it automatically.

  • Your remote A2A server agent must run over HTTPS and be reachable.
  • It must serve an Agent Card at /.well-known/agent.json (or a custom URL).
  • You need the agent’s base URL and authentication credentials.
  • A Copilot can connect up to 20 A2A agents.

Path: Agent Studio → A2A Agents → Add Agent

FieldRequiredDescription
Display NameYesA friendly name for this agent (e.g. “Status Monitor Agent”). Shown in the Copilot’s tool list.
Base URLYesThe root URL where the remote A2A agent is hosted (e.g. https://my-agent.example.com).
Agent Card URLNoOverride the default card location. Leave blank to use <base-url>/.well-known/agent.json.
Protocol VersionYesCurrently A2A v0.3 (auto-selected).
Auth typeWhen to useFields
NoneAgent is open or network-restricted (no auth headers sent)
Bearer TokenAgent expects Authorization: Bearer <token>Token value
API KeyAgent expects X-API-Key: <key>Key value

After saving, click Fetch Agent Card to validate the connection and pull in your agent’s skills, then choose which skills to expose to the Copilot.

Toggle on to pass the current user’s identity to the remote agent via the X-Foldspace-User-Id header. You can also include a structured user-context data part:

Source fieldDefault keyDescription
User Emailuser_emailThe authenticated user’s email address
User IDuser_idThe user’s unique identifier
Subscription IDsubscription_idThe customer’s subscription identifier

Add static custom headers (for API versioning, routing, etc.) sent on every request to your agent.

SettingDefaultRangeDescription
Connect Timeout10s1–300sMax time to establish a connection
Request Timeout120s1–600sMax time to wait for a single HTTP response
Task Timeout300s1–900sMax total time for an A2A task to complete
ProblemSolution
”Failed to fetch agent card”Verify the Base URL is reachable, the Agent Card URL serves valid JSON, and your auth credentials are correct.
Agent shows but the Copilot doesn’t invoke itCheck that the agent is Enabled and has at least one Exposed skill.
Authentication errors at runtimeConfirm the token or API key hasn’t expired or been revoked.
Agent times out during executionIncrease the Task Timeout in Advanced settings (default 300s).