Back to Knowledge

Connecting third-party agents to SAP

SAP agents are not a closed set. Through the agent gateway, agents you built yourself or bought from a partner run alongside SAP's own, under one access and audit model. Here is how that works and what you have to set up.

The three kinds of agent in an SAP landscape

SAP describes its agent landscape as three categories of agent plus one central infrastructure component that connects them. Getting this distinction right is what makes the rest of the setup make sense.

Within that landscape, domains structure business areas, assistants provide role-based interaction, and agents execute workflows. The point of the gateway is that the second and third categories are managed and governed alongside SAP's own, through shared catalog and governance tools, rather than as a separate integration nobody owns.

What the agent gateway actually does

The agent gateway is the central access, governance and connectivity layer for agents and tools in the SAP Business AI platform. It abstracts the technical connectivity details so SAP-delivered and third-party agents and applications can interact across SAP and non-SAP systems.

Two properties matter more than the plumbing:

What you have to set up

SAP documents the integration as a sequence. In outline, onboarding a third-party agent means:

  1. Set up an agent gateway consumer system representing the agent you are onboarding.
  2. Configure access, choosing between the two authentication models below.
  3. Implement the integration on the agent side.
  4. Discover SAP agents through the agentic resource discovery endpoints, so your agent knows what it can call.

JWKS-based access

Your agent signs its own tokens and the gateway validates them against a published JSON Web Key Set. This fits when the agent already has an identity provider you trust and you would rather not issue it a second credential.

Client credentials-based access

The OAuth2 client credentials flow. Simpler to stand up, and usually the right first choice for an agent that has no existing identity story of its own.

How this relates to A2A

These are adjacent, not competing. A2A is the open protocol Joule uses to call an agent you expose as an A2A server, reached through a BTP destination, which is the path we walk through end to end in connecting any agent to SAP Joule with A2A. The agent gateway is the wider governance layer for cross-domain agent interaction: discovery, allow-listed invocation and audit across the whole landscape.

In practice, A2A is how a single agent gets called, and the gateway is how a fleet of them stays governed. Which you need first depends on whether your problem is connectivity or control.

Where this fits in your plan

Most landscapes end up mixed: SAP's standard agents where they are genuinely available, and custom agents for the gaps. We wrote up what SAP actually documents today in the SAP Autonomous Suite availability breakdown, which is the honest starting point for deciding what you still have to build.

Building the custom side is what we do: Joule capabilities in YAML where that fits, or custom agents in your own stack connected over A2A, grounded in your systems and your documents.

Frequently asked questions

What is the SAP agent gateway?

The central access, governance and connectivity layer for agents and tools in the SAP Business AI platform. It abstracts the technical connectivity so SAP-delivered and third-party agents can interact across SAP and non-SAP systems, and it records authentication, invocation and permission events in audit logs.

Can an agent we built ourselves call SAP agents?

Yes. SAP distinguishes SAP agents, which ship with the product and activate when their assistant is provisioned, from third-party, partner and custom agents built outside SAP core products. The gateway is how the second group is integrated and governed alongside the first.

How does a third-party agent authenticate?

SAP documents two options: JWKS-based access, where the gateway validates tokens your agent signs against a published key set, and client credentials-based access, the OAuth2 flow. Which fits depends on how your agent already issues identity.

Is access to SAP agents open once the gateway is set up?

No. Access is controlled through an explicit allow-list of permitted invocations, so a connected agent can only call what it has been granted. Nothing is reachable by default.

How is this different from connecting an agent over A2A?

A2A is the protocol Joule uses to call an agent you expose as an A2A server, reached through a BTP destination. The agent gateway is the broader governance layer for cross-domain agent interaction, including discovery of SAP agents and allow-listed invocation. They solve adjacent problems and can be used together.

Sources

Talk to us about custom agentsRead about the SAP MCP Gateway

Have a use case in mind?

Tell us what you’re trying to automate in SAP. We’ll tell you - honestly - whether an agent is the right tool, and how we’d start.

Give us a use case →