Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read 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
          Test Data Libraries in a Sandbox

          Test Data Libraries in a Sandbox

          A sandbox is a copy of your Salesforce org that you can use for development, testing, and training without compromising the data and applications in your production org. Agentforce Data Library is supported in all the sandbox types: Developer, Developer Pro, Partial Copy, and Full Copy.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Performance, and Unlimited Editions with the Einstein for Platform or Einstein or Agentforce for Sales or Service add-on, or Agentforce Foundations

          Use a sandbox to:

          • Test changes against copies of your production data and users.
          • Provide a training environment.
          • Test AppExchange packages or integrations.
          • Isolate customization and development work from your production environment until you’re ready to deploy changes.

          Before you begin, complete these prerequisites.

          Considerations:

          • Making Agentforce Data Library changes in a sandbox and deploying those changes back to the production org or another sandbox org isn’t supported.
          • Data 360 sandboxes contain only metadata. No data is replicated when you provision Data 360 in a sandbox, even in partial copy and full copy sandboxes.
          • Connections are replicated to the sandbox, but the authorization data isn’t replicated. You configure the connection in the sandbox. After you configure the connection, the data flows into the sandbox.

          In your sandbox org:

          1. In the Data Cloud app, check that your search indexes and retrievers were copied correctly from your home org.
          2. In setup, search for and select Einstein Setup. Turn on generative AI.
            Einstein Setup with Einstein toggled on.
          3. Next, in the Quick find box, search for and select Agentforce Data Library. Check that your data libraries were copied correctly from your home org.
            Agentforce Data Library setup with a list of available libraries.
          4. For file based data libraries, files aren’t copied into sandbox orgs. Re-upload files to their respective data libraries.
          5. For knowledge-based data libraries, check that your knowledge articles were copied over correctly. In the Knowledge app, under Published Articles, you see the articles that you want to test with your agents.
            Published Knowledge articles list.
            Note
            Note For Developer orgs, only your metadata is copied over. To test a knowledge based data library, copy over knowledge articles.
          6. In the Data Cloud app, go to Data Streams and refresh these data streams.
            1. AiGroundingFileRef_Home
            2. DataCategory_Home
            3. DataCategoryGroup_Home
            4. Knowledge_DataCategorySelection_Home
            5. Knowledge_kav_Home
            Data Streams in Data Cloud setup with the 5 pertinent data streams highlighted.
          7. To ensure that retrievers are working in your sandbox, for files go to AI Models (formerly Einstein Studio) and deactivate then reactivate the retriever used by the data library. For knowledge, update a content field in the data library knowledge setup then save and revert it. This updates the retriever version and syncs the metadata.
          8. To test your data libraries with agents, in the Quick find box, search for and select Agentforce Agents. Select the agent that you want to test, and open it in Agentbuilder.
            Agentbuilder with a topic being tested.
            From Agentbuilder you can query the agent and test how data from your libraries appears in large language model (LLM) responses.
           
          Loading
          Salesforce Help | Article