Every agent that works with SAP needs a home: the place where its code runs, where its instructions live and whose bill it lands on. As of November 2026 there are four sensible homes:
Joule Studio, SAP's own agent builder, running on a runtime SAP manages.
Your own agent on SAP BTP, built with code in your BTP account.
A hyperscaler's agent platform, such as AWS, Microsoft or Google.
Another vendor's platform, such as the agents inside your CRM or service desk.
A fifth option, a bot that clicks through SAP screens like a person, still turns up in proposals. It fails the first check below.
The decision has two parts. First, three gates that rule a home out whatever it costs: does it reach SAP by a path SAP endorses, does SAP see each person's own user, and is every piece it needs generally available today? Then, among the homes left, five criteria: cost, where the data sits, where the users work, who supports it, and how complex the work is.
The short rule: put the agent next to most of its data and its users, unless a gate says no. For most agents that mainly read SAP, that means Joule Studio or BTP. An agent whose data and users live elsewhere can live elsewhere, provided it calls SAP the endorsed way, as the person.
Calder Pumpworks, the course's fictional pump maker, has three agents in its plans. Each would be cheap to prototype anywhere. The placement decision is what it costs to run, to support and to defend in an audit for the next three years.
The invoice triage agent helps accounts payable clerks clear blocked supplier invoices. Almost everything it reads is in SAP, and the clerks work in SAP.
The order exceptions agent explains blocked sales orders. The customer service clerks who ask live in the CRM, but the orders, credit and deliveries are in SAP.
The supply watch agent goes through MRP exceptions each morning and drafts purchase order date changes for buyers. It runs many steps with conditions and retries.
Three things go wrong when the home is chosen by habit ("we're an Azure shop") instead of by the agent:
Contract risk. SAP's API policy, published in April 2026, bars AI systems that plan sequences of SAP API calls, except through SAP-endorsed architectures, and bars getting around SAP's controls through proxies or gateways (SAP API Policy). A home that reaches SAP another way is a renewal conversation waiting to happen.
Audit risk. An agent that calls SAP as one shared technical user gives every person that user's access, and SAP's log can't say who asked.
Cost and support risk. Each home has its own meter and its own support desk. An agent split across three vendors has three bills and three places to look when it fails at 7 a.m. on closing day.
The value of deciding well is boring and real: the agent runs where it is cheapest to keep right, and the decision is written down so the next agent doesn't restart the argument.
As read on 25 November 2026, SAP's own pages describe two homes inside SAP and doors for the rest:
Joule Studio. Low-code or pro-code agents deployed to an SAP-managed runtime (SAP Architecture Center). SAP meters customer-built agents in AI Units per agent step; at present they generally fall in the Basic band of 0.005 AI Units a step (SAP Learning). For select customers, running custom agents on that runtime is free through December 2026 (SAP News, 27 October 2026). The pricing topic covers the meter in detail.
Custom agents on SAP BTP. Your own code in a customer-managed BTP subaccount, built with the SAP Cloud SDK for AI and connected to Joule over agent-to-agent (A2A) calls (SAP Architecture Center). SAP's guide suggests low-code when speed and SAP tooling come first, and code for complex, multi-step or conditional work.
Doors for other platforms. Inbound A2A through SAP's Agent Gateway reached general availability in October 2026 (SAP Architecture Center news); the MCP Gateway in SAP Integration Suite exposes released APIs as tools (see the MCP gateway topic).
Governance across all homes. SAP names SAP AI Agent Hub and SAP Cloud Identity Services as the layer that spans them (SAP Architecture Center).
SAP's own policy overview answers the platform question: customers can use any third-party AI platform, provided it connects through an endorsed architecture. The endorsed list includes low-code agents with Joule Studio, pro-code agents on SAP BTP, and A2A through the Agent Gateway (SAP overview deck).
Apply the gates in order. A home that fails one is out.
Gate
The question
A typical failure
G1 Route
Does the home reach SAP through released APIs on an SAP-endorsed path?
A bot driving Fiori screens; a custom RFC module; ODP-RFC extraction
G2 Identity
When the agent acts for a person, does SAP see that person's own user?
One API key for everyone, as in a quick pilot
G3 Status
Is every piece the agent needs generally available today, not "planned"?
A design that relies on outbound A2A from Joule, which SAP lists as future direction
Then score the homes that are left:
Criterion
Favors Joule Studio
Favors custom on BTP
Favors a hyperscaler
Favors another vendor's platform
Cost
Few steps per run
A steady fixed load
Many short runs on usage pricing
The vendor licence is already paid
Data gravity
Mostly SAP data
Mostly SAP data
Mostly non-SAP data
Mostly that vendor's data
Channel
Users in SAP
Users in SAP
Users in that hyperscaler's tools
Users in that application
Support
SAP runs the runtime
Your team runs it
Your team runs it
The vendor runs it
Workflow fit
Simple, standard steps
Complex, coded logic
Complex, coded logic
Simple steps in that app
Applied to Calder with the course's numbers: the invoice triage agent lands in Joule Studio by a clear margin. The order exceptions agent also lands in Joule Studio, called from the CRM over A2A, so the clerks never leave the CRM. The supply watch agent lands on BTP, but only just ahead of Joule Studio; that close call is itself the finding, and the deep layer shows what would tip it.
"We're an Azure (or AWS, or Google) shop, so every agent lives there." A company standard is a good default for non-SAP agents. An agent that mostly reads SAP carries SAP data across a cloud boundary on every call.
"Joule Studio is always cheapest." It is often cheap per run, but complex agents need many steps, and cost grows with steps. Count them.
"If the vendor ships an SAP connector, the path is endorsed." SAP's policy names architectures, not products. A connector proves a technical link; ask whether that path counts as endorsed for agents.
"The decision is permanent." Statuses, prices and volumes change. Write the decision with the conditions that would reopen it.
"A screen bot avoids the API question." Driving screens is not a published API, so it fails the first gate for an agent that plans SAP actions.
Pick one answer for each question. The explanation appears after you choose.
1Calder's AP clerks work in SAP and the invoice agent reads almost only SAP data. Which home does the topic's rule point to first?
Answer: C. The rule is to put the agent next to most of its data and its users unless a gate says no. Here both sit in SAP, so an SAP home comes first; a company cloud standard doesn't change where the data is.
2Why are the gates checked before cost or any other criterion?
Answer: D. A home that reaches SAP outside an endorsed path, hides the person behind a technical user, or depends on something not yet available can't be defended, so scoring it wastes time. Cost only ranks homes that are allowed.
3A proposal reaches SAP through a bot that clicks through Fiori screens. What does the topic say about it?
Answer: C. SAP's policy bars AI systems that plan SAP actions except through endorsed architectures, and screens are not a published API. Changing no SAP code doesn't make the path endorsed.
4Calder's customer service clerks work in the CRM, but the order data is in SAP. What placement did the course's numbers favor?
Answer: A. The agent stays next to the SAP data and the clerks stay in the CRM, which calls it over inbound A2A, generally available since October 2026. The shared key fails the identity gate.
5A vendor sells a certified SAP connector for its agent platform. What should you still ask?
Answer: B. SAP's policy names architectures, not products. A connector proves a technical link; whether an agent may plan calls through it depends on the path being endorsed.
6Which question best tests the cost side of a placement decision?
Answer: D. Each home bills on its own meter, and agent costs grow with runs and steps. Asking for the cost at double volume shows how the decision holds as use grows.
7The supply watch agent landed on BTP only just ahead of Joule Studio. What does the topic treat that close call as?
Answer: B. A close call means small changes in price, steps or skills could flip the answer. Writing down what would reopen the decision is part of the decision.
An agent's home is a choice of who carries which risk. Joule Studio means SAP carries the runtime and you carry the per-step meter. BTP means you carry the runtime and gain full control of the code. A hyperscaler or another vendor's platform means that vendor carries its runtime, and you carry every hop back into SAP: the route, the identity and a second bill.
So treat placement as two different questions, in this order:
Is this home allowed for this agent? Three gates: route, identity, status. They are yes or no, and they don't trade off against money.
Of the allowed homes, which is cheapest to keep right? Five criteria with weights you set once for the company: cost, data gravity, channel, support and workflow fit.
Keep a third idea in view: where the agent lives and where it is used can differ. A CRM can host the conversation while the agent lives in SAP and is called over A2A. Most good placements for SAP-heavy agents look like that.
flowchart LR
subgraph SAPside[SAP side]
JS[Joule Studio<br/>SAP-managed runtime]
BTP[Custom agent<br/>on your BTP subaccount]
AGW[Agent Gateway<br/>inbound A2A]
MCPG[MCP Gateway<br/>Integration Suite]
S4[(S/4HANA CP10<br/>released APIs)]
end
HS[Hyperscaler agent<br/>AWS, Microsoft, Google] -->|A2A, user token| AGW
HS -->|MCP tools, user token| MCPG
TP[Other vendor's agent<br/>CRM, service desk] -->|A2A or MCP| AGW
AGW --> JS
JS --> S4
BTP -->|A2A to Joule| JS
BTP --> S4
MCPG --> S4
BOT[Screen bot] -.->|screens: fails G1| S4
As read on 25 November 2026:
Joule Studio agents deploy to an SAP-managed runtime on SAP AI Core (SAP Architecture Center golden path). SAP's policy overview lists low-code agents with Joule Studio among its endorsed reference architectures (SAP overview deck).
Custom agents on BTP use the SAP Cloud SDK for AI as the main SDK, with a framework such as LangGraph or Google ADK, on Cloud Foundry or Kyma, and reach models through the generative AI hub. They connect to Joule over A2A as "bring your own agent", with a 60-second window for a synchronous answer (golden path). Pro-code agents on SAP BTP are also on SAP's endorsed list.
Hyperscaler agents reach SAP from outside. SAP's pages show them as A2A clients of the Agent Gateway (SAP Architecture Center); the Gemini Enterprise pattern, for example, has a proxy agent exchange the user's token at SAP Cloud Identity Services and relay A2A calls, so SAP enforces the real user's authorizations (SAP Architecture Center). Hyperscalers also ship their own SAP tooling: AWS made its AWS for SAP MCP Server generally available on Bedrock AgentCore on 1 May 2026, built on SAP OData for S/4HANA and ECC (AWS). The Google topic maps Google's routes into SAP, including why a screen route comes last.
Another vendor's agents reach SAP the same two ways: A2A to an SAP agent, or MCP tools through the gateway. The Agentforce, ServiceNow and Workday topic works through who approves what.
Inbound A2A needs a user token to invoke an agent, and the agent runs within that user's permissions (SAP Architecture Center news). That is the design SAP expects. An agent that reaches SAP with one API key or a shared technical user breaks it for everyone: each person gets the technical user's access, and the log can't name who asked. No amount of saved cost buys that back, so it is a gate. The Microsoft topic shows the difference in a lab: the same question, through a key and through a user token, gets two different answers.
The API policy's section 2.2.2 bars API use by AI systems that "plan, select, or execute sequences of API calls" except through SAP-endorsed architectures. Section 1.2 bars non-published APIs, and section 3 bars getting around SAP's controls through intermediary services, custom code, proxies or gateways (SAP API Policy). The policy names no products. So a hyperscaler's own SAP tool is not automatically endorsed or barred: ask SAP whether your specific path counts. The API policy page covers the contract questions; SAP's overview says there are "no automatic blocks or penalty models", which makes it a renewal risk rather than an outage risk.
AI Units per agent step; Basic 0.005, Standard 0.01, Advanced 0.025 (SAP Learning)
Runs times steps
Custom on BTP
Your SAP BTP services for runtime and SAP AI Core
Fixed services plus model use
Hyperscaler (AgentCore)
0.1276 USD per vCPU-hour, 0.0169 USD per GB-hour, 0.005 USD per 1,000 gateway calls (AWS)
Seconds of runtime and calls
Another vendor
That vendor's agent licence
Users, conversations or credits
Model tokens sit on top of every row and cost roughly the same wherever the agent runs, so the lab leaves them out. The SAP-side gateway that outside homes need is a cost too, and the lab adds a course share for it.
#Build it yourself: a placement check for three Calder agents
You will run a small script that checks Calder's three agents against five homes. It applies the three gates, scores the homes that pass, prints one table per agent and writes a decision record for each. Nothing connects to any service; every number is either a list price read for this topic or a labeled course value.
In VS Code, right-click the unit15 folder, choose New File, name it agent_placement.py, paste the code below and save.
"""Unit 15: where should an agent live? A placement check for Calder's agents.
Each agent is checked against five possible homes:
joule-studio SAP-managed Joule Studio runtime (low-code or pro-code)
btp-custom your own agent on a customer-managed SAP BTP subaccount
hyperscaler an agent platform at a hyperscaler (AWS AgentCore as the example)
third-party the agent platform inside another business application (the CRM)
screen-bot a bot that drives SAP screens like a person (shown to be refused)
Three gates come first. A home that fails one is out, whatever it costs:
G1 route the home reaches SAP through an SAP-endorsed path on released APIs
G2 identity an agent that acts for a person carries that person's own SAP user
G3 status every path the agent needs is generally available today
Homes that pass are scored 1 to 5 on five criteria (cost, data gravity, channel,
support, workflow fit) with the weights below. The highest total wins; on a tie
the SAP-managed home wins.
All agents, homes, costs, weights and scores are course values. Real meters and
statuses are named in comments with where they come from. Model tokens are left
out: they cost about the same in every home.
Built-in modules only. No randomness: every run prints the same result.
"""
import argparse
import json
from pathlib import Path
TODAY = "2026-11-25"
OUT = Path(__file__).parent / "placement"
WEIGHTS = {"cost": 0.20, "data": 0.25, "channel": 0.20, "support": 0.20, "workflow": 0.15}
# Course price for one SAP AI Unit. SAP sells AI Units by contract and the pages
# read for this topic show no unit price, so this number is made up. Replace it
# with the price in your own order form.
COURSE_USD_PER_AI_UNIT = 8.00
# Calder's agents. Runs, steps and data shares are course values.
AGENTS = [
{
"id": "AGT_INV_TRIAGE", "job": "triage blocked supplier invoices",
"users": "AP accountants", "works_in": "sap", "acts_for_user": True,
"sap_data_share": 0.95, "workflow": "simple", "needs": [],
"runs_per_month": 300, "steps_per_run": 6, "seconds_per_run": 20,
},
{
"id": "AGT_ORDER_EXC", "job": "explain and route blocked sales orders",
"users": "customer service clerks", "works_in": "crm", "acts_for_user": True,
"sap_data_share": 0.80, "workflow": "simple", "needs": ["inbound-a2a"],
"runs_per_month": 600, "steps_per_run": 5, "seconds_per_run": 15,
},
{
"id": "AGT_SUPPLY_WATCH", "job": "watch MRP exceptions and draft PO date changes",
"users": "planners and buyers", "works_in": "sap", "acts_for_user": True,
"sap_data_share": 0.90, "workflow": "complex", "needs": [],
"runs_per_month": 440, "steps_per_run": 14, "seconds_per_run": 90,
},
]
# The homes. "route", "identity" and "status" feed the gates; the rest feeds
# the scores. Statuses are as SAP and the vendors stated them on the dates in
# the topic's sources.
HOMES = {
"joule-studio": {
"side": "sap", "route": "endorsed", # SAP reference architecture: low-code agents with Joule Studio
"identity": "named-user", "managed_by": "sap", "pro_code": False,
"channels": ["sap"],
"status": {"inbound-a2a": "GA"}, # inbound A2A through the Agent Gateway, GA October 2026
"meter": "AI Units per agent step",
},
"btp-custom": {
"side": "sap", "route": "endorsed", # SAP reference architecture: pro-code agents on SAP BTP
"identity": "named-user", "managed_by": "customer", "pro_code": True,
"channels": ["sap"],
"status": {"inbound-a2a": "GA"},
"meter": "SAP BTP services under your BTP contract",
"course_fixed_usd": 250.00, # course value: runtime and services for one agent
},
"hyperscaler": {
"side": "outside", "route": "endorsed", # A2A to the Agent Gateway or tools through the MCP Gateway
"identity": "technical-user", # Calder's first lab design: one API key (see Exercise)
"managed_by": "customer", "pro_code": True,
"channels": ["teams"],
"status": {"inbound-a2a": "GA"},
"meter": "vCPU-hours, GB-hours and gateway calls (AgentCore)",
# AgentCore list prices as read on 2026-11-25 (region not stated on the page)
"usd_per_vcpu_hour": 0.1276, "usd_per_gb_hour": 0.0169, "usd_per_1000_gateway_calls": 0.005,
"vcpu": 1, "gb": 2,
"course_fixed_usd": 150.00, # course value: SAP-side gateway share and monitoring
},
"third-party": {
"side": "outside", "route": "endorsed", # tools through the MCP Gateway
"identity": "named-user", "managed_by": "vendor", "pro_code": False,
"channels": ["crm"],
"status": {"inbound-a2a": "GA"},
"meter": "the vendor's own agent licence",
"course_usd_per_run": 0.40, # course value; no vendor price was read for this topic
"course_fixed_usd": 150.00, # course value: SAP-side gateway share
},
"screen-bot": {
"side": "outside", "route": "screens", # drives Fiori screens: not a published API
"identity": "technical-user", "managed_by": "customer", "pro_code": True,
"channels": ["sap"], "status": {}, "meter": "bot licence",
"course_fixed_usd": 100.00,
},
}
def monthly_cost(agent, home_id):
"""Course monthly cost of one agent in one home, without model tokens."""
h, runs = HOMES[home_id], agent["runs_per_month"]
if home_id == "joule-studio":
# SAP Learning: customer-built agents are mostly Basic, 0.005 AI Units per step.
units = runs * agent["steps_per_run"] * 0.005
return round(units * COURSE_USD_PER_AI_UNIT, 2), f"{units:.2f} AI Units"
if home_id == "hyperscaler":
hours = runs * agent["seconds_per_run"] / 3600
compute = hours * (h["vcpu"] * h["usd_per_vcpu_hour"] + h["gb"] * h["usd_per_gb_hour"])
calls = runs * agent["steps_per_run"] / 1000 * h["usd_per_1000_gateway_calls"]
return round(compute + calls + h["course_fixed_usd"], 2), f"{hours:.1f} runtime hours"
if home_id == "third-party":
return round(runs * h["course_usd_per_run"] + h["course_fixed_usd"], 2), f"{runs} runs"
return round(h["course_fixed_usd"], 2), "fixed"
def gates(agent, home_id):
h = HOMES[home_id]
if h["route"] != "endorsed":
return "G1", "reaches SAP through screens, not a published API on an endorsed path"
if agent["acts_for_user"] and h["identity"] != "named-user":
return "G2", "SAP would see one technical user instead of each person"
for need in agent["needs"]:
if h["status"].get(need) != "GA":
return "G3", f"{need} is not generally available in this home"
return None, ""
def scores(agent, home_id, cheapest):
h = HOMES[home_id]
cost, _ = monthly_cost(agent, home_id)
s = {"cost": round(1 + 4 * cheapest / cost, 1) if cost else 5.0}
share = agent["sap_data_share"]
s["data"] = round(1 + 4 * (share if h["side"] == "sap" else 1 - share), 1)
if agent["works_in"] in h["channels"]:
s["channel"] = 5.0
elif "inbound-a2a" in agent["needs"] and h["status"].get("inbound-a2a") == "GA":
s["channel"] = 4.0 # users stay in their app; it calls this agent over A2A
else:
s["channel"] = 2.0 # users must switch to another app
s["support"] = {"sap": 5.0, "vendor": 4.0, "customer": 3.0}[h["managed_by"]]
if agent["workflow"] == "complex":
s["workflow"] = 5.0 if h["pro_code"] else 2.0
else:
s["workflow"] = 5.0 if not h["pro_code"] else 4.0
s["total"] = round(sum(WEIGHTS[k] * s[k] for k in WEIGHTS), 2)
return s
def place(agent):
rows, passed = [], []
for home_id in HOMES:
gate, why = gates(agent, home_id)
cost, meter = monthly_cost(agent, home_id)
row = {"home": home_id, "cost_usd": cost, "meter": meter, "gate": gate, "why": why}
rows.append(row)
if not gate:
passed.append(row)
cheapest = min(r["cost_usd"] for r in passed)
for r in passed:
r["scores"] = scores(agent, r["home"], cheapest)
order = sorted(passed, key=lambda r: (-r["scores"]["total"], HOMES[r["home"]]["managed_by"] != "sap"))
return rows, order
def print_agent(agent, rows, order):
print(f"\n{agent['id']}: {agent['job']} ({agent['users']}, work in {agent['works_in'].upper()})")
print(f" {'home':13} {'USD/month':>10} {'gate':4} {'cost':>4} {'data':>4} {'chan':>4} {'supp':>4} {'flow':>4} {'total':>5}")
for r in rows:
if r["gate"]:
print(f" {r['home']:13} {r['cost_usd']:>10.2f} {r['gate']:4} out: {r['why']}")
else:
s = r["scores"]
print(f" {r['home']:13} {r['cost_usd']:>10.2f} pass {s['cost']:>4} {s['data']:>4} {s['channel']:>4}"
f" {s['support']:>4} {s['workflow']:>4} {s['total']:>5}")
win, second = order[0], order[1]
gap = round(win["scores"]["total"] - second["scores"]["total"], 2)
print(f" -> lives in {win['home']} ({win['meter']}); runner-up {second['home']}, {gap} behind")
def adr(agent, rows, order):
win, second = order[0], order[1]
out = [f"## ADR {agent['id']}: where the agent lives ({TODAY})", "",
f"**Context.** {agent['id']} will {agent['job']} for {agent['users']}, who work in "
f"{agent['works_in'].upper()}. About {int(agent['sap_data_share'] * 100)}% of what it reads is SAP data; "
f"its workflow is {agent['workflow']}.", "",
"**Options.** " + "; ".join(
f"{r['home']} ({'out at ' + r['gate'] if r['gate'] else str(r['scores']['total'])})" for r in rows) + ".", "",
f"**Decision.** The agent lives in {win['home']}, billed in {HOMES[win['home']]['meter']}. "
f"Runner-up: {second['home']}.", "",
"**Consequences.** Re-check this decision when a gate changes status, when monthly runs "
"double, or when the users move to another application.", ""]
return "\n".join(out)
def main():
ap = argparse.ArgumentParser(description="Where should each Calder agent live? (course values)")
ap.add_argument("--agent", help="check one agent only, such as AGT_ORDER_EXC")
ap.add_argument("--json", action="store_true", help="also write the full result as JSON")
args = ap.parse_args()
OUT.mkdir(exist_ok=True)
agents = [a for a in AGENTS if not args.agent or a["id"] == args.agent]
if not agents:
raise SystemExit(f"No agent {args.agent}. Known: {', '.join(a['id'] for a in AGENTS)}")
print(f"Agent placement check, {TODAY} (course values; model tokens left out)")
decisions, everything = [], {}
for agent in agents:
rows, order = place(agent)
print_agent(agent, rows, order)
decisions.append(adr(agent, rows, order))
everything[agent["id"]] = rows
(OUT / "placement_decisions.md").write_text("# Agent placement decisions\n\n" + "\n".join(decisions), encoding="utf-8")
print(f"\nWrote {OUT / 'placement_decisions.md'}")
if args.json:
(OUT / "placement.json").write_text(json.dumps(everything, indent=2), encoding="utf-8")
print(f"Wrote {OUT / 'placement.json'}")
if __name__ == "__main__":
main()
You should see this (the last line shows your own folder):
Agent placement check, 2026-11-25 (course values; model tokens left out)
AGT_INV_TRIAGE: triage blocked supplier invoices (AP accountants, work in SAP)
home USD/month gate cost data chan supp flow total
joule-studio 72.00 pass 5.0 4.8 5.0 5.0 5.0 4.95
btp-custom 250.00 pass 2.2 4.8 5.0 3.0 4.0 3.84
hyperscaler 150.28 G2 out: SAP would see one technical user instead of each person
third-party 270.00 pass 2.1 1.2 2.0 4.0 5.0 2.67
screen-bot 100.00 G1 out: reaches SAP through screens, not a published API on an endorsed path
-> lives in joule-studio (9.00 AI Units); runner-up btp-custom, 1.11 behind
AGT_ORDER_EXC: explain and route blocked sales orders (customer service clerks, work in CRM)
home USD/month gate cost data chan supp flow total
joule-studio 120.00 pass 5.0 4.2 4.0 5.0 5.0 4.6
btp-custom 250.00 pass 2.9 4.2 4.0 3.0 4.0 3.63
hyperscaler 150.42 G2 out: SAP would see one technical user instead of each person
third-party 390.00 pass 2.2 1.8 5.0 4.0 5.0 3.44
screen-bot 100.00 G1 out: reaches SAP through screens, not a published API on an endorsed path
-> lives in joule-studio (15.00 AI Units); runner-up btp-custom, 0.97 behind
AGT_SUPPLY_WATCH: watch MRP exceptions and draft PO date changes (planners and buyers, work in SAP)
home USD/month gate cost data chan supp flow total
joule-studio 246.40 pass 5.0 4.6 5.0 5.0 2.0 4.45
btp-custom 250.00 pass 4.9 4.6 5.0 3.0 5.0 4.48
hyperscaler 151.81 G2 out: SAP would see one technical user instead of each person
third-party 326.00 pass 4.0 1.4 2.0 4.0 2.0 2.65
screen-bot 100.00 G1 out: reaches SAP through screens, not a published API on an endorsed path
-> lives in btp-custom (fixed); runner-up joule-studio, 0.03 behind
Wrote /Users/you/orchestrate-course/unit15/placement/placement_decisions.md
Read each table from left to right. G1 and G2 rows are out before any score; the total column ranks the rest.
What the output says:
Two homes are out for every agent. The screen bot fails G1. The hyperscaler home fails G2 because Calder's first design used one API key, as in the Microsoft topic's key mode. The hyperscaler is not ruled out as a home; that design is. The exercise fixes it.
AGT_INV_TRIAGE goes to Joule Studio with a clear lead (4.95 against 3.84): SAP data, SAP users, simple steps, low step count.
AGT_ORDER_EXC also goes to Joule Studio. Its channel score is 4, not 5: the clerks stay in the CRM, which calls the agent over inbound A2A. The CRM-hosted option scores 5 on channel but loses on data gravity and cost.
AGT_SUPPLY_WATCH goes to BTP by 0.03. Joule Studio is cheaper per month only just (246.40 against 250.00 USD) and wins on support, but scores 2 on workflow fit for a complex, many-step job.
#Step 4: Look at one agent and the decision record
Run the check for one agent and keep the full result as JSON:
Open unit15/placement/placement_decisions.md. Each agent has a short record:
## ADR AGT_SUPPLY_WATCH: where the agent lives (2026-11-25)
**Context.** AGT_SUPPLY_WATCH will watch MRP exceptions and draft PO date changes for planners and buyers, who work in SAP. About 90% of what it reads is SAP data; its workflow is complex.
**Options.** joule-studio (4.45); btp-custom (4.48); hyperscaler (out at G2); third-party (2.65); screen-bot (out at G1).
**Decision.** The agent lives in btp-custom, billed in SAP BTP services under your BTP contract. Runner-up: joule-studio.
**Consequences.** Re-check this decision when a gate changes status, when monthly runs double, or when the users move to another application.
Try one what-if. Change COURSE_USD_PER_AI_UNIT from 8.00 to 6.00, save and run the one-agent command again. Joule Studio's monthly cost for the supply watch agent drops to 184.80 USD and it overtakes BTP. Set the value back to 8.00 before you go on.
That flip is the point of a close call: the decision depends on a price you must take from your own contract, so the record should say so.
Pro-code on SAP BTP. SAP Cloud SDK for AI, any of several agent frameworks, Cloud Foundry or Kyma, models through the generative AI hub, registration with Joule over A2A (golden path). Choosing an agent SDK compares frameworks.
Doors for outside homes. Inbound A2A through the Agent Gateway, GA in October 2026, with an access list per agent; outbound A2A and outbound MCP are listed as future direction with no date (SAP Architecture Center news). The MCP Gateway in Integration Suite for tools.
Governance. SAP AI Agent Hub and SAP Cloud Identity Services across homes (SAP Architecture Center); SAP's October release adds an SAP Enterprise AI Gateway for usage tracking and auditing (SAP News).
Licensing. AI Units for Joule Studio agents; BTP services for custom agents; Integration Suite for the gateways outside homes use. None of the SAP pages read gives a price per AI Unit or a price for runtime after the free period.
Where it sits. Calder's CP10 runs on S/4HANA Cloud Private Edition; SAP BTP hosts Integration Suite with the MCP Gateway; the Agent Gateway and Joule sit on SAP's side; the CRM runs in its vendor's cloud. The diagram in How it works shows the four homes and their doors. The agents are new consumers beside the interfaces I01-I12 from the integration platform design, not replacements for them.
Non-functional requirements.
Requirement
Typical target
What breaks if it's missed
Identity
Every SAP call as the person, through SAP Cloud Identity Services
Shared access, an audit trail that can't name who asked
Route
Released APIs on an endorsed path only
Policy breach at renewal; brittle custom code in SAP
Latency
A chat answer within a few seconds; a synchronous A2A answer within 60 seconds
Users go back to SAP; Joule drops the call
Data residency
Data stays in the regions the company has agreed
A privacy finding for every cross-cloud call
Cost
Each agent's meter tracked monthly, with an alert at double the forecast
A per-step bill nobody owns
Operability
One named team on call per agent
Three vendors pointing at each other during an incident
Integration and identity. The user signs in once through the company's identity provider, trusted by SAP Cloud Identity Services. An outside agent exchanges that user's token for one the Agent Gateway or MCP Gateway accepts, and SAP runs the call within that user's roles. An SAP-side agent gets the user from Joule. Every draft the agent prepares waits in SAP for the owning role, as in agent permissions and SAP authorizations.
The decision to record.
Context: Calder plans three agents. Customer service works in the CRM; AP and planning work in SAP. Calder has a small Python team and a Private Edition system.
Options: A, all three in Joule Studio. B, all three on the company's hyperscaler. C, each placed by the gates and criteria.
Decision: C. Invoice triage and order exceptions in Joule Studio, the second called from the CRM over A2A; supply watch on BTP.
Consequences: two homes to run instead of one; AI Units budgeted for two agents; the supply watch decision reopens if the AI Unit price, the step count or the team's skills change; the hyperscaler stays available for non-SAP agents once user tokens replace the pilot key.
What a design review will ask.
For each agent, which path does it take into SAP, and where does SAP list that path as endorsed?
Show the SAP log line for a test call. Does it name the person?
Which statuses does the design depend on, and what is the fallback if one slips?
What does each agent cost per month at double the forecast volume, and on whose budget?
Who is on call for each agent, and who retests after an SAP or model change?
Authorizations. Whatever the home, SAP roles decide reads and drafts wait for the owning role. An agent's own permissions should never exceed the person's.
Evaluation. Test the placed agent in its home with users from at least two roles; a test from a developer's account proves nothing about identity.
Cost. Count steps, not only runs: a Joule Studio agent that loops costs more per run. Set budget alerts on each home's meter, and add the gateway share outside homes need.
Operations. Register every agent and its home in SAP AI Agent Hub or your inventory, with an owner and a review date.
Clean core. No home justifies custom code in S/4HANA to serve an agent. Released APIs through a gateway, or an SAP agent over A2A; see the integration platform and clean core.
Exit. Keep prompts, tools and tests in your own repository so an agent can move homes when a gate or price changes.
Fix the hyperscaler's identity, add a fourth Calder agent, and see a placement land outside SAP.
Open unit15/agent_placement.py.
In HOMES, change the hyperscaler's "identity": "technical-user" to "identity": "named-user". This stands for user tokens exchanged at SAP Cloud Identity Services, the pattern from the Microsoft topic's user mode.
Add a fourth agent to AGENTS, after AGT_SUPPLY_WATCH: "id": "AGT_SERVICE_KB", "job": "answer technicians from manuals and repair history", "users": "field technicians", "works_in": "teams", "acts_for_user": True, "sap_data_share": 0.30, "workflow": "complex", "needs": [], "runs_per_month": 900, "steps_per_run": 8, "seconds_per_run": 40 (course values: manuals sit in the company's document store, repair history in SAP).
Run python unit15/agent_placement.py.
In unit15/README.md, write two sentences: why AGT_SERVICE_KB lands outside SAP, and why the supply watch agent's totals moved although you didn't touch its profile. Reuse your notes from the Microsoft and Agentforce topics on whose identity SAP sees.
Done when the run shows no G2 rows, AGT_SERVICE_KB ends with -> lives in hyperscaler (10.0 runtime hours); runner-up btp-custom, 1.32 behind, and your README explains both points. Keep the record: the capstone's architecture pack reuses it.
Pick one answer for each question. The explanation appears after you choose.
1In the lab, why is the hyperscaler home out for every agent before any score?
Answer: A. G2 asks whether SAP sees each person's own user. The pilot design used one key, so SAP would see a technical user. SAP's pages show hyperscalers as A2A clients, so the home itself isn't barred; the exercise fixes the design.
2How does the script score cost, and what follows from it?
Answer: D. The cost score is 1 + 4 × cheapest / cost among the homes that passed. When the exercise lets the hyperscaler pass, it becomes the cheapest, so other homes' cost scores fall even though their own costs didn't change.
3The supply watch agent picks BTP by 0.03 over Joule Studio. Lowering the course AI Unit price to 6.00 flips it. What should the decision record do?
Answer: B. A close call depends on inputs you must take from your own contract. Recording which input would flip the decision keeps it honest and tells the next reviewer when to look again.
4A team plans a Joule Studio agent that will call a CRM vendor's agent over A2A to update a case. What is the problem as of November 2026?
Answer: C. SAP's October 2026 news makes inbound A2A generally available and lists outbound A2A and outbound MCP as future direction with no date. Depending on it fails G3; reverse the direction or wait.
5Why does the topic treat a route through a hyperscaler's own SAP MCP server as a question to ask SAP rather than a clear yes?
Answer: D. Section 2.2.2 allows agent-planned API calls only through SAP-endorsed architectures, without naming products. Whether a specific vendor's server counts is for SAP to confirm, which is why the route is a gate you verify.
6Calder's clerks stay in the CRM while the order exceptions agent lives in Joule Studio. What does the script's channel score of 4 reflect?
Answer: C. Channel scores 5 when the home is where the users work, and 4 when their app can call the agent over GA inbound A2A. That is the topic's point that where an agent lives and where it is used can differ.
7Which production habit keeps a placement decision reversible?
Answer: C. Statuses, prices and volumes change, and a gate may open or close. Agents whose prompts, tools and tests live in your repository can move homes without being rebuilt from memory.
Understanding the Commercial Model (SAP Learning, Introducing Joule)— Opened 2026-11-25. No page date. Hybrid model of per-user packages and AI Units, bought annually from a central pool; Joule Base needs no AI Units, Joule Premium does, including agent actions; agent usage measured in steps; consumption rates Basic 0.005, Standard 0.01, Advanced 0.025 AI Units per step; customer-built agents generally Basic at present
SAP Empowers AI Developers to Build What Matters and Turn Intent into Autonomous Execution (SAP News, 27 October 2026)— Opened 2026-11-25. For select customers, deploying and running custom agents on the SAP-managed Joule Studio runtime free through December 2026; design-time tooling free under fair-use limits; third-party agents invoke Joule Agents through a governed agent gateway; visibility into agent behavior, model usage and spend; new SAP Enterprise AI Gateway for usage tracking and auditing
Build AI Agents on SAP BTP (SAP Architecture Center, AI golden path, updated 2026-10-26)— Opened 2026-11-25. Low-code Joule Studio agents on a managed runtime on SAP AI Core; pro-code with SAP Cloud SDK for AI and frameworks such as LangGraph or Google ADK, runtime Cloud Foundry or Kyma, models through the generative AI hub; low-code when speed and SAP tooling come first, pro-code for complex, multi-step or conditional workflows; pro-code connects to Joule over A2A (bring your own agent) with a 60-second synchronous window; says the Agent Gateway is not yet generally available
Agentic AI & AI Agents on SAP Business AI Platform (SAP Architecture Center, updated 2026-10-26)— Opened 2026-11-25. Two build paths: Joule Studio on the SAP-managed runtime, and custom agents on a customer-managed BTP subaccount with SAP Cloud SDK for AI, connected to Joule over A2A; SAP AI Agent Hub (by SAP LeanIX) and SAP Cloud Identity Services as the governance layer; hyperscaler platforms appear as external A2A clients
A2A agent gateway interoperability (SAP Architecture Center news, 27 October 2026)— Opened 2026-11-25. October 2026 general availability of inbound A2A interoperability through the Agent Gateway; discovery, A2A and governed access with a customer-controlled access list per agent; invoking an agent needs a user token and runs within the user's permissions; outbound A2A and outbound MCP listed as future direction without a date
SAP API Policy v.4.2026a (SAP Help Portal, PDF)— Opened 2026-11-25. 1.2 non-published APIs must not be accessed unless the documentation permits or SAP authorizes; 2.2.2 bars API use by (semi-) autonomous or generative AI systems that plan, select or execute sequences of API calls except through SAP-endorsed architectures; 3 bars circumventing API controls through intermediary services, custom code, proxies or gateways
SAP API Policy overview (SAP slide deck for SAP user groups, 2026)— Opened 2026-11-25. Policy published 27 April 2026; endorsed reference architectures include low-code AI agents with Joule Studio and pro-code AI agents on SAP BTP, and AI agent integration through A2A (Agent Gateway); FAQ: customers can use any third-party AI platform connected through an endorsed architecture; no automatic blocks or penalty models; customer-namespace code permitted but not to circumvent controls
Amazon Bedrock AgentCore pricing (AWS, page updated 2026-11-17)— Opened 2026-11-25. Runtime 0.1276 USD per vCPU-hour and 0.0169 USD per GB-hour, billed per second; Gateway 0.005 USD per 1,000 invocations; region not stated on the page; observability billed through CloudWatch