Loading
Salesforce now sends email only from verified domains. Read More
Agentforce and Einstein Generative AI
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Add Test Data

          Add Test Data

          Add test cases to evaluate your agent’s performance by either generating them with AI or uploading your own scenarios. AI-generated test cases offer two data options: generating based on subagents and actions, or generating from knowledge available to the agent via the Agentforce Data Library.

          Required Editions

          green checkmark

          This article applies to:

          Legacy Agentforce Testing Center in Setup
          red crossmark

          This article doesn’t apply to:

          New Testing Center in Agentforce Builder (beta)
          Available in: Lightning Experience
          Available in: Enterprise, Performance, Unlimited, and Developer Editions. Required add-on licenses vary by agent type.
          User Permissions Needed
          To create tests in the Testing Center: Manage AI Agents AND the required permissions for your agent type

          Use the subagents and actions method when you want to test how well your agent handles specific intents or workflows, especially after updates or before launch. This approach helps confirm the agent triggers the correct behaviors based on user utterances. Alternatively, choose the knowledge-based method to validate your agent’s ability to provide accurate, content-driven responses using connected knowledge sources like articles or PDFs. For full control, you can also upload a CSV file with your own test scenarios which is ideal for custom testing needs or validating specific business logic. Each approach allows you to simulate real-world interactions and identify improvement areas before deploying your agent.

          • Generate Tests from Subagents and Actions
            Evaluate how well your agent handles key subagents and actions before launch. Generate relevant, test-ready utterances using your subagent and action metadata as well as information from connected data libraries. Simply choose the subagents you want to test, define the test focus with a brief description, and let the system generate up to 100 test cases.
          • Generate Tests from Knowledge Sources
            When your agent is connected to an Agentforce Data Library, you can generate test scenarios directly from the content linked to that library including articles and knowledge fields or uploaded files. Testing center generates up to 100 question-and-answer style test cases based on the knowledge content available to the agent.
          • Upload Test Cases
            To use your own scenarios, upload your CSV file.
           
          Loading
          Salesforce Help | Article