ServicesSalesforce consultingArchitectureImplementationOrg health checkDevelopmentIntegrations and APIsData migrationTesting and QAManaged supportSpecialist supportMarketing Cloud auditDeliverability
SolutionsMarketing Cloud EngagementMarketing Cloud NextSalesforce + BrazeAccount EngagementData Cloud (Data 360)Identity resolutionInsights and segmentsAgentforce and AIMCP integrationsSales and Service CloudReal-time personalisationIntegration solutionsEnterprise AI integrationBy industry
ArchitectureSalesforce CRMData 360Salesforce + BrazeAgentforceCustomer 360API-led integrationEvent-drivenMCP host, client and serverIdentity and consentMCP securityData governanceCI/CD and releasesOur public MCP server
ResourcesEngineering journalDecision guidesSolution blueprintsSalesforce productsProjects and achievementsSales ROI calculatorWhere we workChecklists and templatesPlanning toolsReadiness assessmentGlossaryAbout GeekMidstOur approachOur expertiseContact
CompanyAbout GeekMidstOur approachDelivery methodologyTrust and evidenceProjectsAchievementsBook a consultationContactWhere we workSecurity and data
Book a Consultation

Agentforce testing and governance

Test scenarios, guardrails, human handoff, monitoring and change control for Agentforce agents, using the tools and statuses Salesforce publishes.

Tester reads questions from index cards into a headset while a colleague scores each reply on a printed grid

An agent that passed a demo can still fail in production. It might answer outside its scope, miss an escalation or drift after a prompt change. Our Agentforce testing and governance service gives you repeatable tests, clear guardrails, a safe handoff to people and a routine for monitoring and changing agents after launch.

For the testing techniques themselves, read Agentforce agent testing and guardrails. To build agents, see Agentforce and AI automation.

What's included

AreaWhat we set upSalesforce tooling and status
Test designScenario sets for normal requests, edge cases, refusals and escalationsAgentforce Builder, where Salesforce says agents are built, tested and monitored
ScoringCustom measures of answer qualityCustom Scorers: API GA, UI Beta
Prompt testingBatch tests of prompt templatesPrompt Builder batch prompt testing: Beta
VoiceTests for voice conversationsVoice and Conversation Testing: Beta; Voice Observability: GA
ExperimentsA/B tests between agent versionsA/B Experimentation for agents: Beta
GuardrailsScope, data masking, toxicity checks and permissionsEinstein Trust Layer
MonitoringHealth dashboards and conversation reviewAgent Health Monitoring: GA; Agentforce Observability
OptimisationRegular review of failing conversationsAgent Optimizer: GA announced for October 2026
Workflow where an incoming request reaches an AI assistant step that drafts a response, a person approves it, and every step is written to an audit trail

How we work

  1. 01

    Discovery

    Review each agent's purpose, topics, actions, data access and current test coverage.

  2. 02

    Design

    Write test scenarios and pass criteria, define guardrails and escalation rules, and agree owners.

  3. 03

    Build

    Set up test sets, scorers, monitoring and the review routine, and document the release process.

  4. 04

    Test

    Run the full test set, fix gaps, and re-run before any change goes live.

  5. 05

    Launch

    Release in stages, with monitoring and a clear rollback path.

  6. 06

    Support

    Review conversations and scores regularly, update tests as topics change, and report to owners.

Human handoff

Agent Script, used by the new Agentforce Builder, includes an escalate instruction, so handoff can be designed into the agent's logic rather than added later. We define when an agent must hand over, what context passes to the person, and how that is tested. For a worked service example, see the service agent with human handoff.

Governance

Good governance is mostly ownership and routine. Each agent needs a named owner, an approval step for changes, a test run before every release and a regular review of conversations. Lifecycle Center (formerly DevOps Center) adds governance for agent-generated code, which Salesforce describes as GA. Observability Center in Salesforce Guardian is in Beta. Our responsible AI page explains how we approach this work.

Prerequisites and licences

You need Agentforce enabled in your org and users with the Manage AI Agents permission to work in Agentforce Studio. Some monitoring and security tools are separate add-ons, so we confirm what your licences include.

Common mistakes

  • Testing only the happy path.
  • Changing prompts or topics in production without re-running tests.
  • No owner after launch, so nobody reads the conversations.

Workflow diagram

Explore how the pieces fit together. Select a step to read what happens there.

Workflow

Human approval and escalation for AI actions

Open full size
Human approval and escalation for AI actionsAn action proposed by an AI agent is checked for confidence and risk. Low-risk, confident actions run automatically; others go to a human reviewer, who approves them or escalates or declines them. Every outcome is written to an audit trail.Human approval and escalation for AI actionsAgentforcePolicy checkHuman reviewerEscalationAudit trailYesNoYesNoAction proposed: Reply or record change. The agent prepares an action but does not run it yet. The proposal includes the inputs and the evidence the agent used.Action proposedReply or recordchangeCheck risk: Confidence, impact, data. Rules look at the action type, the amount or impact, the data involved and how certain the agent is. Business owners, not developers alone, set the thresholds.Check riskConfidence, impact,dataSafe to auto-run?. Only low-risk, reversible actions with high confidence should run without a person. Start with more reviews and relax them as evidence builds.Safe to auto-run?Auto-approved: Rule used is logged. The action is cleared to run without a person. Log which rule allowed it, so auto-approvals can be sampled and the rule tightened if needed.Auto-approvedRule used is loggedHuman review: Draft, evidence, context. The reviewer sees the proposed action, the reasons and the source data in one place, so a decision takes seconds rather than a fresh investigation.Human reviewDraft, evidence,contextReviewer approves?. The reviewer approves, edits and approves, or does not approve. Their choices are useful test cases for improving the agent.Reviewerapproves?Action runs: Result shown to the user. The approved action runs with defined permissions, and the user sees the outcome.Action runsResult shown to theuserEscalate, decline: Specialist decides, reason kept. Unclear or high-impact cases go to a specialist or team lead; clear refusals are declined with a reason the user can understand.Escalate, declineSpecialist decides,reason keptAudit trail: Who, what, when. Every outcome is logged with the proposal, the decision, who made it and when. Regular review of the log shows where rules or the agent need changing.Audit trailWho, what, whenStartProcess stepDecisionPerson or teamSystem or platformEnd or outcomeOriginal GeekMidst explanatory diagram, not an official Salesforce reference.

Select any step in the diagram, or use Step through, to see what happens at that point and why.

Text version: every step in order
  1. Action proposed AgentforceReply or record change

    The agent prepares an action but does not run it yet. The proposal includes the inputs and the evidence the agent used.

    Next: Check risk

  2. Check risk Policy checkConfidence, impact, data

    Rules look at the action type, the amount or impact, the data involved and how certain the agent is. Business owners, not developers alone, set the thresholds.

    Next: Safe to auto-run?

  3. Safe to auto-run? Policy check

    Only low-risk, reversible actions with high confidence should run without a person. Start with more reviews and relax them as evidence builds.

    Next: Yes: Auto-approved; No: Human review

  4. Auto-approved AgentforceRule used is logged

    The action is cleared to run without a person. Log which rule allowed it, so auto-approvals can be sampled and the rule tightened if needed.

    Next: Action runs

  5. Human review Human reviewerDraft, evidence, context

    The reviewer sees the proposed action, the reasons and the source data in one place, so a decision takes seconds rather than a fresh investigation.

    Next: Reviewer approves?

  6. Action runs AgentforceResult shown to the user

    The approved action runs with defined permissions, and the user sees the outcome.

    Next: Audit trail

  7. Reviewer approves? Human reviewer

    The reviewer approves, edits and approves, or does not approve. Their choices are useful test cases for improving the agent.

    Next: Yes: Action runs; No: Escalate, decline

  8. Audit trail Audit trailWho, what, when

    Every outcome is logged with the proposal, the decision, who made it and when. Regular review of the log shows where rules or the agent need changing.

    End of the flow.

  9. Escalate, decline EscalationSpecialist decides, reason kept

    Unclear or high-impact cases go to a specialist or team lead; clear refusals are declined with a reason the user can understand.

    Next: Audit trail

An action proposed by an AI agent is checked for confidence and risk. Low-risk, confident actions run automatically; others go to a human reviewer, who approves them or escalates or declines them. Every outcome is written to an audit trail. Original GeekMidst explanatory diagram; not an official Salesforce reference architecture.

Questions we hear

Can we test agents before customers see them?
Yes. We run scenario tests in Agentforce Builder and a sandbox before release, and again after every change.
How many test scenarios do we need?
Enough to cover every topic, action and escalation path, including requests the agent should refuse. We size the set during design.
Should we rely on Beta testing features?
Use them where they help, but don't make them your only safeguard. Beta features can change before GA.
Who should own an agent after launch?
Usually the business owner of the process, supported by an admin who manages changes and tests.

Make your agents testable

Tell us which agents you run or plan to launch. We'll suggest a test and governance setup that fits.

Book a consultation →

Next step: Agentforce Testing and Governance

  1. We read it A practitioner reads your message and replies by email.
  2. Short call We confirm goals, constraints and what success looks like.
  3. Written scope You get a scope and estimate before any work starts.

Tell us what you are trying to fix.

Share your Salesforce setup, goals and constraints. A practitioner reads every message and replies with questions, first thoughts or an honest view of whether you need outside help at all.

Talk to a Salesforce Expert
Book a Consultation