Data 360 and Data Library considerations for agent promotion
Key Takeaway
Agentforce Data Library changes made in a sandbox can't be deployed to production. You make them again by hand in the production org's data library and save them there. New files for a file-based library go directly into the existing data library in production.
Agents that ground answers with Agentforce Data Library depend on Data 360 parts such as search indexes, retrievers, connections, and data streams. A sandbox gets the structure of these parts from production, but not the data, files, or credentials. Data library changes made in a sandbox also can't be deployed back. You need to know what to redo in the sandbox before you test, and what to redo in production after you test.
Data library changes can't be deployed
Data libraries move one way. They are copied from production (the home org) into a sandbox. Making Agentforce Data Library changes in a sandbox and deploying them to production or to another sandbox isn't supported.
Because the change can't be deployed, you make it again by hand in production. Configure the same change in the production org's data library and save it.
Files you add to a library in a sandbox stay in the sandbox too. For a file-based data library, upload new files directly to the existing data library in the production org. To add files, click "Add Data", select the files or drag them into the upload box, and click "Save". When you add files to a data library, the library's search index is updated with the new files.
Ravi maintains a service agent for a garden supply company. The agent grounds its answers in a file-based data library. In a sandbox, Ravi adds a new seed storage guide to the library. He tests the agent in Agent Builder, and the answers look right. When the release moves to production, the library change can't go with it. So Ravi opens the existing data library in the production org, clicks "Add Data", adds the same seed storage guide, and clicks "Save". The production library's search index then updates with the new guide.