Agentforce testing and governance

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

Banner for the GeekMidst service “Agentforce testing and governance”, covering What's included and How we work

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

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.

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