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
          Use Salesforce Knowledge

          Use Salesforce Knowledge

          Select the knowledge fields for your data library to index.

          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
          User Permissions Needed
          To set up Agentforce Data Libraries: Data Cloud admin AND System Administrator permissions.

          To use Agentforce Data Libraries, you must have Data 360 set up. Data libraries consume Data 360 credits.

          1. To configure a data library, select it and click Edit.
          2. If you want to base a data library on your Knowledge articles, select the Knowledge tab.
            Note
            Note

            A data library supports Knowledge, file uploads or web search as a data source. After you choose a library’s data source, you can’t change it later.

          3. Under Knowledge Field Settings, select identifying fields for the knowledge articles. Identifying fields help Agentforce locate the right information in your index. Idenitfying fields must be a text or text area type fields and are limited to 512 tokens. We recommend that you select fields that include a concise outline of the associated knowledge article.
            Tip
            Tip To ensure you're in the token limit, select a field of the simple text type for the identifying field. Because the simple text field type is limited is 255 characters you can be certain its within the 512 token limit.
          4. Select the content fields. Content fields help AI agents enrich responses with relevant details. We recommend that you select fields that include important details such as troubleshooting steps, product details, and special considerations. Knowledge data libraries support only text or text area type fields.
            Knowledge field settings with the identifying fields and content fields selected.
          5. In data library setup from Agent Builder, you an also include citations. A citation is a link to the Knowledge Article that a response is grounded on. To include citations select Show sources. Next, add your Salesforce Knowledge domain URL to link AI-generated responses to their source in your Knowledge base. If you don’t include a specific Knowledge domain URL, it uses the publicly available URL. Learn more about Knowledge domains.
          6. Click Save.
          7. Under Knowledge Settings, specify which articles are included in the data library. Only published articles are considered for the data library. See Publish Articles and Translations.
          8. To restrict indexed articles to articles that are publicly available in your Knowledge base, enable Use Public Knowledge Articles. Knowledge Articles that are publicly available have IsVisibleInPkb as True. See Create a Knowledge Base with Salesforce Knowledge.
          9. To filter indexed articles by data category, enable Filter by Knowledge Data Categories. Then, select the categories to include in your data library. See Work with Data Categories.
            Knowledge settings with filtering by data catergory enabled and a data category selected.
            If you have a large knowledge base or product range, tailoring the data library to specific data categories makes the indexing and grounding more accurate and efficient.
            Note
            Note To get results based on a data category it must be set as visible.
          10. Save your work.

          After you save your selections, data streams, a search index, and a retriever are created automatically and available to view or edit in Data 360. Monitor your data library’s progress from Setup. When the status updates to “Your data library is ready to use!” you can test and use the library data with agents.

           
          Loading
          Salesforce Help | Article