Enterprise copilots & search
Connect Salesforce Agentforce
Einstein / Agentforce via Model Builder. Point it at AgentKeyRoute so every request follows your governance profile and is recorded.
Get a key with the right protection
In the console, open Connect an app (opens in a new tab) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test.
Setup
- Install Salesforce Agentforce
Download and install it from your Salesforce org. Agentforce is part of your Salesforce org — no separate install. - Point it at the gateway
1. Setup → Einstein → Einstein Studio → Model Builder → Add Model. 2. Platform: OpenAI (the "Add External Model" flow accepts any OpenAI-compatible endpoint). 3. Endpoint: https://gateway.agentkeyroute.com/v1/chat/completions 4. API Key: <your API key> 5. Model: gpt-4.1 6. Connect, test with a prompt, then assign the model to a Prompt Template or an Agentforce agent.Replace
<your API key>with your AgentKeyRoute key.gpt-4.1is an example: use a model your key may use (GET /v1/modelslists them). - Check it works
In Salesforce Agentforce, run a prompt or agent that uses the configured model. The request appears in Requests (opens in a new tab) with the policy decision, the model that answered and what was redacted.
Good to know
- It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests.
- It uses the OpenAI-compatible API, so the base URL ends in
/v1. - If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one.
X-AIGov-Modelnames it. - Refused? See Why was a request blocked?