Salesforce Agentforce
Add DPX settlement intelligence to Salesforce Agentforce agents via External Services (OpenAPI import) or Apex callouts.
Option A — External Services (recommended)
Section titled “Option A — External Services (recommended)”Salesforce External Services imports the DPX OpenAPI spec and auto-generates invocable Apex actions — no code required.
1. Register DPX as an External Service
Section titled “1. Register DPX as an External Service”- Setup → External Services → New External Service
- Name:
DPXProtocol - Named Credential → create new:
- URL:
https://api.untitledfinancial.com - Auth: No Authentication
- URL:
- Schema URL:
https://api.untitledfinancial.com/openapi.json - Save — Salesforce imports all endpoints as invocable actions
2. Use in Flow Builder
Section titled “2. Use in Flow Builder”- Flow Builder → your flow → New Action → External Service
- Select DPXProtocol → choose action (e.g.,
getSettlementQuote) - Map input variables from the flow record
- Store the output — use in email alert, screen, or decision node
3. Add to Agentforce
Section titled “3. Add to Agentforce”- Agent Studio → your agent → Actions → Add Action
- Select Flow → your DPX flow
- The agent can now call it from natural language: “Get a fee quote for this settlement”
Option B — Apex callout
Section titled “Option B — Apex callout”For direct integration in Apex triggers, batch jobs, or custom controllers:
public class DPXClient {
public static Map<String, Object> getOracleStatus() { HttpRequest req = new HttpRequest(); req.setEndpoint('https://stability.untitledfinancial.com/reliability'); req.setMethod('GET'); req.setHeader('Accept', 'application/json'); return (Map<String, Object>) JSON.deserializeUntyped( new Http().send(req).getBody() ); }
public static Map<String, Object> getQuote( Decimal amountUsd, Boolean hasFx, Decimal esgScore) { HttpRequest req = new HttpRequest(); req.setEndpoint( 'https://stability.untitledfinancial.com/quote' + '?amountUsd=' + amountUsd + '&hasFx=' + hasFx + '&esgScore=' + esgScore ); req.setMethod('GET'); req.setHeader('Accept', 'application/json'); return (Map<String, Object>) JSON.deserializeUntyped( new Http().send(req).getBody() ); }}Add all DPX domains to Setup → Remote Site Settings:
api.untitledfinancial.comstability.untitledfinancial.comesg.untitledfinancial.com
Agentforce system instruction
Section titled “Agentforce system instruction”You have access to DPX Protocol actions for treasury settlement intelligence.
When a user asks about settlement pricing or conditions:1. Run DPX Oracle Check — report the stability status2. If a counterparty wallet is known, run DPX ESG Score3. Run DPX Settlement Quote with amount and ESG score4. Summarise: oracle status, ESG standing, fee breakdown, net amountFull setup guide and Apex samples: github.com/untitledfinancial/dpx-integrations/tree/main/salesforce