Get Started with Testing Agents

You can use several methods to test your agents. Choose the approach that best fits your workflow and technical requirements.

Feature NameAccess MethodDescription
Testing APICodeDirect API access using Metadata API and Connect API
Agentforce DXCommand LineSalesforce CLI extension that provides agent testing capabilities
Testing CenterUIUser interface in Salesforce org for creating and running tests

This page provides guidance for developers using the Testing API or the Agentforce DX CLI. To learn about the Testing Center, see Agentforce Testing Center in Salesforce Help.

To test agents, you must have Agentforce enabled with at least one agent active. See Set up Agents in Salesforce Help.

Agent testing is available only in sandboxes. Note that running tests consumes requests and credits and can modify data.

This diagram shows the high-level workflow for creating, deploying, and running tests:

API Flow

Each step in the workflow can be completed using multiple methods: