Agentforce Testing Center and Cross System Workflow Validation

Isometric wooden workbench with a relay track of three hand-off posts, a baton lost at a steep chute, a silent bell, green pegs, a red pin and a logbook

TL;DR: Agentforce Testing Center is Salesforce's tool for batch testing Agentforce agents against expected topics, actions and responses. It scores what the agent says and which action it picks. A passing test does not prove that Flow side effects, permissions or external API calls wrote the correct record. Score the promise, the tool response and the authoritative record separately. For phone agents, ContextQA, the autonomous quality engineer, offers Ship Voice, which runs Policy, Grounding, Conversational State and Outcome models alongside the agent on every call.

Salesforce teams use Testing Center to run conversation level tests and custom evaluations before release. QA leads still need to know what happens after the agent replies. Did the Flow fire? Did permissions hold? Do the external API and the CRM record agree? This guide shows how to score each layer separately.

Quick answers

What does Testing Center actually check for Agentforce agents, and where does its coverage stop? It tests at the conversation and agent level. You run test utterances against an agent and check topic classification, action selection and response quality. It does not, by itself, show that a triggered Flow wrote the correct record or that a downstream API got the right payload. Add assertions that read back the authoritative record.

How do I validate Flow side effects and permissions when an Agentforce action runs? Run each scenario under a dedicated test user for every role that matters. After the agent responds, query the saved records through an authorized API. Check exact field values, relationships and ownership, and confirm that no protected record changed on a denied action. A success message in the transcript is not evidence. The record state is.

Should conversation scores and business outcome checks be combined into one pass rate? No. Score the promise, the action response and the persisted record as separate assertions, and treat a wrong record or an unauthorized action as a hard fail. If you average them, a fluent answer can hide a wrong booking. Separate scores also show managers whether prompts, integration logic or permissions are blocking the release.

Testing Center vs Ship Voice: What Is the Short Answer?

Testing Center is Salesforce's built in tool for batch testing Agentforce agents in a sandbox. It checks whether each test utterance reaches the expected topic, actions and response, so use it for conversation level regression inside your org. If the agent also takes phone calls or writes to external APIs and internal apps, check the stored record too.

To set it up, open Testing Center in Setup, choose an agent, and upload a CSV of utterances or generate test cases from its topics and actions. If the agent's metadata lives in source control, run the same tests from CI with sf agent generate test-spec, sf agent test create and sf agent test run, as the Salesforce Agentforce DX testing guide describes.

The gap shows up after the action fires. A Flow (Salesforce's automation engine) triggered by that action can update related records, call an external API, or fail because the running user lacks a permission. A matching topic and action does not prove the stored record is correct.

How Do Testing Center and Ship Voice Compare?

Testing Center checks whether an Agentforce agent picks the right topic, calls the expected actions and gives an acceptable response, using batches of test cases inside Salesforce. Ship Voice covers a different layer. It builds voice agents for phone calls and runs Policy, Grounding, Conversational State and Outcome models alongside the agent on every call.

Teams on Salesforce DX can run the same test specs from the command line, per the Agentforce DX developer guide. Before planning coverage, list the gaps you assert separately: Flow side effects, permission denied paths and records written to external APIs.

OptionBest forPricing modelNotable tradeoff
Agentforce Testing CenterTopic and action regression for Agentforce agentsConfirm terms with your Salesforce account teamFocused on agent behavior inside the org
Ship VoicePhone agents where the outcome must match the recordDemo or free signupBuilt for voice calls, not general Salesforce UI regression
Custom eval harnessNarrow, team specific rubricsEngineering timeYou build and maintain the verifiers yourself

Use Testing Center to check what your agent decides, and add an outcome check whenever a spoken promise has to match an authoritative record.

Close-up of a woman's hands typing on a laptop at a table with a printed brochure and smartphone nearby

When Should You Choose Agentforce Testing Center?

Choose Testing Center when you are testing the agent's reasoning inside Salesforce: whether an utterance lands on the right topic, triggers the expected action and gets an acceptable response. It is Salesforce's own batch testing tool and runs against a sandbox org, which makes it the natural starting point.

It works best in these situations:

  • Topic and action regression. Write utterances with the expected topic, action and outcome into a test spec, and run them after every change to a topic instruction or action. Because sf agent test run works from the CLI, a CI job can block a deploy when results drop.
  • Conversation level guardrails. Add off scope and adversarial utterances, then assert that the agent declines, deflects or escalates. Einstein Trust Layer settings such as data masking are configured at the org level, so check the audit records as well as the test verdicts.
  • Salesforce native release paths. If changes already move through sandboxes and metadata deploys, Testing Center fits that existing path without new tooling.
  • Agent scoped work. It fits when the agent's job starts and ends in Salesforce, with no phone channel, external API or internal app downstream.

Add a second layer when a test has to follow the action into Flow side effects, permission boundaries and the record that actually persisted.

When Should You Choose Ship Voice?

Choose Ship Voice when your agent talks to customers on the phone and its work ends in a record outside the agent's own test harness. Ship Voice keeps the recording, transcript and outcome of every call, and runs Policy, Grounding, Conversational State and Outcome models alongside the agent.

  • Phone is the channel. Ship Voice builds the voice agent itself. You describe it in plain language, connect knowledge and tool actions, and assign a new or existing number for inbound and outbound calls. Every call keeps its recording, transcript and outcome.
  • The outcome lives in another system. You need proof that a Flow, external API or internal app wrote the right values, not only that the agent said it would.
  • Commitments are often tentative. Callers correct dates and change their minds, so the final state of the conversation matters more than the first answer.
  • Policy must hold mid call. The Ship Voice page says its models can act within the same conversational turn.

If you already gate Agentforce releases in CI, keep sf agent test run in the pipeline. Confirm Testing Center editions and licensing with your Salesforce account team, since that question is separate from outcome verification.

Black and white photo of a laptop, a smartphone, and an open lined notebook with a pen on a dark desk

How Do You Move Between Them?

Keep Testing Center for conversation level checks inside Salesforce and add outcome verification wherever a call reaches past the agent. Start by exporting your existing utterances and expected actions. Then score three separate results: what the agent promised out loud, what the tool returned, and what the authoritative record holds.

  1. Inventory current tests. Export your utterances with their expected topic, action and response, and tag each one by whether it changes a record. Read only cases can stay where they are.
  2. Write the transaction contract. For each case that changes a record, list the final corrected values, the confirmation rule and the exact fields the record must hold. The booking outcome guide shows how to set atomic pass and fail criteria.
  3. Score three layers separately. Assert the spoken confirmation, the tool call arguments and the saved Salesforce, external API or internal app record as independent pass or fail results. Never average a wrong date into a passing score.
  4. Cover Flow side effects and permissions. Confirm that record triggered Flows fired once and created no duplicates, and that a restricted role cannot make a protected update. Identify the record by a correlation identifier, not "the most recent entry."
  5. Rerun on every change. After any prompt, model or Flow edit, repeat representative synthetic scenarios across several runs and report the result of each action.
When a voice agent's spoken promise, its tool response and the Salesforce record disagree, book a demo or start free with Ship Voice and see the Policy, Grounding, Conversational State and Outcome models run on every call before release.

Where Does ContextQA Fit?

ContextQA fits beside Salesforce's agent testing tools when the agent talks to customers by phone. Testing Center covers topics, actions and responses in a sandbox. Ship Voice, ContextQA's builder for AI voice agents, runs four models on every live call, alongside the agent.

If you run an Agentforce Service agent grounded in Agentforce Data Library, keep Testing Center for batch checks on topics and actions. According to the Ship Voice page, four models run on every call:

  • Policy stops a promise that policy does not allow.
  • Grounding flags a claim the connected sources do not support, the same question you would ask of Data Library answers.
  • Conversational State logs a caller's "maybe Friday" as tentative, not as agreed.
  • Outcome checks the system of record, such as the booking system, before a call is marked resolved.

The Ship Voice page describes tool actions such as updating a record. It does not list a native Salesforce connector. Treat Salesforce Flow side effect and permission checks as an architecture pattern you design with your own verifier and test roles, not a shipped Ship Voice feature.

Bottom line

Testing Center and custom conversation evaluations show whether an agent picked the right topic and gave a sound answer. A release also has to prove what that answer caused. Score the spoken promise, the tool response and the authoritative record as three assertions, including Flow side effects and permissions. Read agentic testing vs AI agent testing, then verify one synthetic workflow.

Share the Post:

Author

Deep Barot

CEO @ ContextQA | Agentic AI for Software Testing | Context-aware Testing

Deep Barot is the Founder and CEO of ContextQA, the only AI testing platform that understands context. He brings decades of experience across DevOps, full-stack engineering, cloud systems, and large-scale platform development.
AI Insights
Real User Intelligence Platform

Turn live sessions into test coverage. No prompts, no manual design - just pointed at your URL and generating suites within minutes.

Minutes
From URL to generated test cases
Zero
Prompts or manual test design needed
40%+
Average coverage increase after first run
100%
Based on real user behavior, not guesses

Frequently Asked Questions

Test Agentforce agents in an approved sandbox org with synthetic profiles. Score three things separately: the agent's response, the action it selected and its arguments, and the saved Salesforce record, including Flow side effects. Add negative cases for ambiguous identity, unauthorized actions and forced human handoff. Repeat the same prompts across several runs.
Agentforce guardrails include the Einstein Trust Layer (data masking and toxicity detection), topic and instruction scoping, and the running user's permissions on each action. To check them, send requests outside the agent's authority and then read back the records. A refusal only passes if no protected record changed.
Your org is ready for Agentforce when you can test an agent's actions against real permissions and records, not just its replies. Set up a sandbox with synthetic profiles, an allowed action policy, restricted roles, active Flow and validation rule versions, and defined handoff conditions. Then prove that unauthorized requests change no protected record.
Related Blogs