Ground Agentforce in Data

A great agent uses your data to provide high-quality responses. Learn about methods for connecting agents to knowledge sources, including internal data, unstructured documents, and web search.

Required Editions

Available in: Lightning Experience
Available in: Enterprise, Performance, Unlimited, and Developer Editions. Required add-on licenses vary by agent type.
Note
Note Beginning in April 2026, agent topics are now called subagents. There are no changes to functionality. During this transition, you may see a mix of the new and previous terms in our documentation.
  • Agentforce Data Library
    Improve accuracy, add personalization, and build trust in gen AI responses when you assign data libraries to your Agentforce features. Agentforce Data Library uses grounding to index your knowledge articles and fields, your file uploads, or web sources, so that AI agents know which information to base responses on. With this index, AI agents can ensure the accuracy of LLM responses against your organization’s information so that you get the best results.
  • Retrieval Augmented Generation
    Use Retrieval Augmented Generation (RAG) in Data 360 to improve large language model (LLM) responses for agents and users. RAG is a framework for grounding prompts with relevant, accurate knowledge from unstructured data sources.
  • Search the Web with Agentforce
    Use the Search the Web action to retrieve real-time information from the internet for your agents and prompt templates. Search the Web lets you ground agents with current data like news, market trends, and competitor details that aren't available in Salesforce.