Objective: A distributor calling in a Schedule II product return today either stalls a CSR in a system that can't see the SAP order or return-processing logic, or lets a controlled-substance return through without validating the requester against a governed golden record. This plan wires a Salesforce/Agentforce front end to SAP-side return processing through MuleSoft's Agent Fabric and Agent Broker, with an AWS Bedrock agent handling SAP-side logic and Informatica MDM gating every controlled-substance return against the golden record before it is accepted — so a controlled-substance return follows the same validated path every time, regardless of which system actually holds the order. Prerequisites Anypoint Platform org with API Manager, Agent Fabric enabled, and a non-production deployment target. Salesforce org with Agentforce and Agent Script, plus API Catalog access to import external actions. AWS account with Bedrock agent access and permission to front it with a Lambda function. Informatica MDM (or your golden-record source) reachable via API or MCP for distributor/product validation. DEA registration and reverse-distribution agreement details for the entity handling Schedule II returns. Secrets Manager or secure properties configured for every system credential — Salesforce, SAP, Bedrock, and MDM. Named owner on each side (Salesforce, integration, SAP/Bedrock, MDM) — this build crosses four systems, and it stalls on access far more than on code. Choose your path Broker-mediated (this plan) — Choose this when SAP-side return logic lives behind an agent that doesn't speak your orchestration protocol natively (here, AWS Bedrock, which isn't A2A-compliant) and Agentforce has no direct line to your Agent Broker. A wrapper and a bridge sit on either side of the broker so both ends look native to it. Direct API integration — Choose this when SAP's return process is already exposed as a System/Process API and no cross-platform agent hand-off is involved. Skip the broker wrapper and the A2A bridge entirely and call SAP directly from a Process API behind the Salesforce flow. Architecture 1. Salesforce data model and Agentforce agent Model the return as three linked objects: Return_Request__c (the CSR-initiated case), Return_Order__c (the SAP-side order/return once created), and Distributor__c (the calling entity, carrying its DEA registration). Build the agent in Agent Script as a bounded actor: it can create a return request, check status, and invoke the broker action — it does not write directly to SAP or the golden record. Flag the request as controlled-substance at intake (schedule, NDC, lot) so every downstream step knows to route through the MDM gate rather than deciding that later. Send_Returns_Message_Flow owns the outbound call to the Experience API and the inbound status callback — keep this flow thin; the decision logic lives in the broker and the agents behind it, not in Salesforce automation. 2. Broker Wrapper — Experience API Agentforce cannot call the Agent Broker directly or over A2A, so this Mule app is the seam: an Experience API that exposes the broker as a plain REST action, imported into Salesforce through API Catalog as an agent action. Translate the Salesforce action payload into the broker's task/routing contract on the way in, and translate the broker's response back into a shape the agent and the flow can consume on the way out — Salesforce never has to know the broker exists. Keep this API a pure translation layer, not a decision point — the controlled-substance decision belongs downstream, at the golden-record check. 3. Agent Broker configuration Register both sides with the Agent Broker: the Bedrock agent (behind the bridge) as an A2A-compliant agent it can route tasks to, and the Experience API as the caller it accepts requests from. Define the routing policy for this use case — a returns task from the Experience API routes to the Bedrock SAP-returns agent, and a controlled-substance flag on the task triggers the MCP call to the Informatica MDM System API before the task is allowed to proceed. Configure the broker to fail closed: any task it can't route, or any golden-record check that comes back unresolved, holds rather than passing through. Log every routed task at the broker — caller, target agent, protocol, and outcome — so a single trace covers hand-offs across all four systems. 4. Bedrock-to-A2A bridge — Process API The Bedrock agent is not A2A-compliant, so this Process API wraps it so the broker can invoke it exactly like any other A2A agent. The bridge is a pure protocol adapter: accept the broker's A2A task, invoke Bedrock's agent-runtime API, and return the result in the shape the broker expects. Bedrock's own reasoning and tool use stay opaque to the broker on purpose — the bridge is a contract boundary, not a place to inspect or override Bedrock's logic. Version the bridge's contract independently of Bedrock's agent version, so a Bedrock-side prompt or tool change doesn't silently change what the broker thinks it's talking to. 5. SAP return processing — System API The Bedrock agent reaches SAP-side return logic through a Lambda function calling a SAP Returns System API. Stand this up as a sandbox during build so the demo and early testing don't depend on a live SAP connection; cut over to the real SAP API in Phase 3 without changing the bridge or the agent above it. Model the System API on SAP's actual return/order interface so the contract carries through cutover unchanged — only the backing implementation moves from sandbox to live SAP. 6. Informatica MDM golden-record validation — System API Because this is modeled as a Schedule II controlled-substance return, the broker calls an Informatica MDM golden-record System API over MCP before the return is allowed to proceed — validating the distributor and product against the governed record, not against whatever the CSR typed in. Stand this up as a sandbox System API matching Informatica's schema during build, and repoint it to the live MDM instance for cutover. Fail closed: if the golden-record check can't be reached or returns no match, the return holds for manual review rather than proceeding on an unvalidated identity. 7. Security, privacy, and GxP compliance Validate the integration under GAMP 5 — requirements, design, IQ/OQ/PQ evidence, and a traceability matrix retained for inspection. Meet 21 CFR Part 11 and EU Annex 11 for electronic records and signatures on every step that touches the return record. Preserve ALCOA+ data integrity — attributable, legible, contemporaneous, original, and accurate — with an audit trail no operator can edit, across all four systems the return crosses. Schedule II returns fall under DEA reverse-distribution rules (21 CFR Part 1317) — carry chain-of-custody and, where applicable, CSOS/Form 222 documentation with the return record, not just the shipment. Encrypt regulated data in transit and at rest across the Salesforce–broker–Bedrock–SAP–MDM path, and keep production payload visibility to validated support roles only. Treat a mapping or routing-policy change on this flow as a controlled change under change management, never as a hotfix — a silent change to the golden-record contract is exactly the failure mode this build exists to prevent. Sample payload — controlled-substance return request { "returnRequestId": "RR-2026-0041823", "distributorId": "DIST-MCK-00291", "product": { "ndc": "00069-1085-01", "lotNumber": "L2026-0447", "schedule": "CII" }, "reason": "damaged_in_transit", "quantity": 12, "goldenRecordCheck": { "status": "pending", "mdmService": "informatica-mdm-golden-record", "requestedAt": "2026-08-19T15:02:41Z" }, "broker": { "wrapperTaskId": "TASK-8841", "routedAgent": "bedrock-sap-returns", "protocol": "a2a" } } Testing and validation Submit a non-controlled return and confirm it completes without the MDM golden-record check firing — only Schedule II (and above, if scoped) routes through the gate. Submit a Schedule II return for a distributor absent from the golden record and confirm the return holds for manual review rather than proceeding. Kill the MDM sandbox mid-request and confirm the broker fails closed rather than treating a timeout as a pass. Confirm the Agentforce agent can invoke the Experience API as a plain REST action with no A2A awareness on the Salesforce side. Confirm the Bedrock bridge round-trips a task end to end — broker task in, Bedrock agent-runtime call, SAP return created (or the sandbox equivalent), status back through the bridge to the broker. Confirm the broker's routing policy correctly triggers the MCP golden-record call for controlled-substance tasks and skips it for everything else. Reconstruct one full return end to end from Salesforce case creation to SAP order status using only the broker's task log and the audit trail, with no gaps at a system boundary. Phased rollout Phase 1 — Connect Build the Experience API and register it with the Agent Broker; import it into Salesforce via API Catalog as an agent action. Build the Bedrock A2A bridge Process API and the SAP/MDM sandbox System APIs; configure broker routing and prove one return end to end in simulation. Phase 2 — Map and validate Repoint the MDM System API to a real Informatica MDM instance (or a representative test tenant) and validate match behavior against real golden records. Repoint the SAP System API to a SAP test environment and validate the return order actually posts and status flows back. Phase 3 — Production Cut over to the production Agent Fabric broker, live SAP, and live Informatica MDM. Hand golden-record hold rates, broker routing latency, and DEA documentation completeness to operations with named owners. Success metrics Controlled-substance return cycle time reduced against the manual/phone baseline. 100% of Schedule II returns validated against the golden record before processing, with zero exceptions bypassing the gate. Broker hand-off failure rate (Salesforce→broker→Bedrock→SAP) trending to zero after Phase 2. Full audit reconstruction possible for every return, across all four systems, from the broker log and audit trail alone. Troubleshooting Agentforce action fails silently — Likely cause: the Experience API isn't registered correctly in API Catalog, so the agent has no action to call. Fix: re-import the API spec and confirm the action appears in the agent's tool list. Broker can't route the task — Likely cause: the Bedrock agent or the Experience API caller was never registered with the Agent Broker, or the routing policy doesn't match on the returns task type. Fix: confirm both registrations and re-check the policy match condition against the actual task payload. Bedrock task never completes — Likely cause: the bridge is treating Bedrock's agent-runtime response as synchronous when it's actually async. Fix: poll or subscribe to the Bedrock run status rather than blocking on the initial call. Golden-record check always misses — Likely cause: the MDM sandbox System API schema drifted from the real Informatica contract during build. Fix: validate the schema against Informatica's actual golden-record model before Phase 2 cutover, not after. Return proceeds despite a golden-record miss — Likely cause: the broker's routing policy treated a non-200 or timeout as a pass rather than failing closed. Fix: make "no confirmed match" and "unreachable" both resolve to hold-for-review, explicitly, in the routing policy. Deliverable: A working, demoable path from a Salesforce-side controlled-substance return request through the Agent Fabric broker to SAP-side return processing on AWS Bedrock, gated by an Informatica MDM golden-record check. The Mule build delivers: the Agent Broker configuration itself (agent registration, routing policy, and the controlled-substance MCP gate); an Experience API wrapping the broker as a plain REST action for Agentforce; a Process API bridging the non-A2A-compliant Bedrock agent into the broker as a standard A2A agent; and two System APIs — SAP Returns and Informatica MDM golden-record — built against sandbox implementations during build so the same broker configuration, Experience API, and Process API carry through unchanged to a live cutover.