Integrating external AI agents

concept brazil Updated Sep 10, 2026 3 min read external-agent-protocols.md
Raw file servicenow.com

Integrate and configure external agents with the ServiceNow agentic AI system using Agent2Agent (A2A) protocol integration to use in agentic workflows created in the AI Agent Studio.

External agent discovery on the ServiceNow AI Platform

You can enable external AI agents on the AI Agent Studio via the Settings page. Navigate to AI Agent Studio > Settings > External AI agents > Discoverability.[Omitted image "external-agents-discoverability.png"] Alt text: Discover External AI agents to accessed by ServiceNow and third-parties.

  • Allow ServiceNow to access External AI agents: Turn on the toggle to enable external AI agents integration with the ServiceNow agentic AI system using the A2A protocol.
  • Allow third party to access ServiceNow AI agents: Turn on the toggle to enables integrating ServiceNow AI agents into external agentic AI systems.

When creating a new external AI agent in AI Agent Studio, you can connect your agent to the ServiceNow agentic AI system using the Agent2Agent (A2A) protocol integration. To do this, you must have a Connection & Credential alias record that connects to your agentic AI provider.

After connecting to the external AI agent, you can add details about its role and instructions to provide context for the AI Agent Orchestrator. Additional context helps differentiate your AI agent from other AI agents so that the AI Agent Orchestrator can decide about which agent to use.

Contextual data access for external agents on the ServiceNow AI Platform

Enable contextual data access for external agents to improve AI agent response during execution.

  • Short-term memory: Turn on the toggle to enable external AI agents remember your preferences or facts from the current interaction only.
  • Long-term memory: Turn on the toggle to enable external AI agents remember your preferences or facts from previous interaction.
  • Knowledge graph for external AI agent interactions: Turn on the toggle to enable external AI agents to use structured and unstructured data from different records across the ServiceNow AI Platform.

[Omitted image "a2a-contextual-data-access.png"] Alt text: Contextual data access for external agents to improve responses.

Agent2Agent protocol overview

Agent2Agent (A2A) is an open standard that enables AI agents across different platforms to communicate with each other. The standard relies on every AI agent having an Agent Card associated with it that provides basic information for providers like the ServiceNow AI Platform, Azure, and Google to use them.

Version 0.3 of A2A is supported.

An AI agent's Agent Card uses standardized JSON to help different providers understand its capabilities. The Agent Card is accessed by a specific type of endpoint from a provider's server. Execution plans are communicated through an execution endpoint so that both the provider's server and the ServiceNow AI Platform can track what the external AI agent is doing.

See Create an external AI agent with the Agent2Agent protocol for instructions for using this protocol to create an AI agent.

Configuring A2A authentication

A2A connections require authorization from the source platform to execute on the ServiceNow AI Platform. Authentication is established by creating two Connection & Credential Alias and Connection records, one with an Agent Card endpoint and another with an execution endpoint.

Custom Headers for External Agent Configuration

When configuring external agents, you can pass custom HTTP headers to be included in the API calls to external endpoints. In the External Agent Configuration [sn_aia_external_agent_configuration] table, use the custom headers column to specify headers in JSON format. These headers are applied to all HTTP requests made by that agent during offline execution, regardless of the connection type (OAuth, API Key, or other). The configured headers are sent alongside the agent's authentication credentials and are useful for passing additional metadata or requirements that your external API expects.

Note: Custom headers apply only to the Premium Chat experience.

Configuration Properties

The following properties configure different aspects of how your agents can interact with the ServiceNow AI Platform.

Name

Description

sn_aia.external_agents.enabled

Set to true to enable external agent features

sn_aia.external_agents.parallel_conversations.enabled

Enables or disables multiple simultaneous conversations per user

**Parent Topic:**[Create an external AI agent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/intelligent-experiences/create-external-aia.md)
Keywords a2a
Search documentation
Search document titles and file paths on the brazil branch