Integrations/Salesforce AgentForce
Live

GuardEntry × Salesforce AgentForce

Integrate GuardEntry with Salesforce AgentForce so every agent action is evaluated against your compliance policy before it executes. Setup takes about 5 minutes.

Prerequisites

  • Salesforce org with AgentForce enabled (Spring '25 or later)
  • A GuardEntry API key — get one free at guardentry.ai/connect
1

Create a Named Credential

Named Credentials store your API key securely and keep it out of flows.

  1. 1. In Salesforce, go to Setup → search Named Credentials → click New
  2. 2. Fill in:
FieldValue
LabelGuardEntry
NameGuardEntry
URLhttps://app.guardentry.ai
Certificateleave blank
Auth ProtocolNo Authentication

3. Under Custom Headers, click Add and set:

Header NameHeader Value
AuthorizationBearer fgrc_k1_your_key_here

4. Click Save

2

Register GuardEntry as an External Service

External Services turns the GuardEntry OpenAPI spec into callable AgentForce actions automatically.

  1. 1. Go to Setup → search External Services → click New External Service
  2. 2. Fill in:
FieldValue
External Service NameGuardEntry
Service SchemaURL
URLhttps://app.guardentry.ai/api/v1/openapi.json
Named CredentialGuardEntry (select from dropdown)

3. Click Save & Next

4. Salesforce parses the spec and shows available operations. Confirm evaluateAgentAction is listed, then click NextFinish

3

Import the pre-built Agent Action

Download and import the pre-built Agent Action so you don't have to configure it manually.

  1. 1. In Salesforce, go to SetupCustom Metadata Types → find Agent ActionsManage RecordsImport
  2. 2. Upload GuardEntry_EvaluateBeforeActing.xml and click Deploy

Or create it manually:

  1. 1. Go to SetupAgent ActionsNew
  2. 2. Set Action Type to External Service
  3. 3. Select GuardEntry → evaluateAgentAction
  4. 4. Name it GuardEntry: Evaluate Before Acting
  5. 5. Map inputs: subjectContent → planned action text, subjectType → hardcode tool_argument
4

Add to your AgentForce Agent

  1. 1. Open AgentForce Builder and select your agent
  2. 2. In the Actions panel, click Add Action
  3. 3. Search for GuardEntry: Evaluate Before Acting and select it
  4. 4. Drag it to the first position in the action list (it must run before any other action)
  5. 5. Configure the On Block behavior:
    • • If decision = block → add a Decision element that stops the flow and returns the reasoning to the user
    • • If decision = allow → continue to the next action
  6. 6. Click SaveActivate

How decisions work

DecisionWhat it meansRecommended action
allowPolicy permits this actionProceed
blockPolicy violation — action blockedStop, show reasoning to user
require_approvalNeeds human reviewPause flow, notify approver
uncertainNot enough signal to decideProceed (logged for review)

All decisions are logged in your GuardEntry dashboard Audit Log.

Troubleshooting

⚠️External Service import fails — Check that your Named Credential URL is exactly https://app.guardentry.ai (no trailing slash) and the Authorization header value starts with Bearer .
⚠️evaluateAgentAction not listed — Salesforce may have cached the spec. Delete and re-import the External Service, or wait 5 minutes.
⚠️All decisions return allow — Your policy may be in Observability Mode. Check your dashboard — the 👁 observe badge means violations are logged but not blocked. Switch to enforcement when ready.