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
          Use Web Search

          Use Web Search

          You can add the web search subagent to your agent via your Agentforce Data Library.

          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.

          Have your agent search the web by either adding the Search the Web action to your agent or by creating a web based Agentforce Data Library and assigning that to your agent.

          Note
          Note The Search the Web agent action isn’t supported in Government Cloud.
          1. To create a data library, click New Library. Enter a name and the API name automatically populates. Optionally, enter a description. Click Save.
          2. To add information from the web to your data library, under Data Type select Web Search.
          3. Under Add Web Source Data, turn on web search.
            The data library setup with web search toggled on.
          4. Save your work.
          5. In setup, search for and select Agentforce Agents.
          6. You can add a web search data library to an existing agent or create an agent.
            Agent builder data tab with a web search data library selected.
            1. For an existing agent, open the agent in Agent Builder. To edit the agent’s settings, deactivate it.
            2. For a new agent, select New Agent and go through the agent setup steps. For Select Data Sources, add your web search data library.
          7. From Agent Builder, go to Subagents. Select New, then New Subagent.
          8. To create a new subagent, add this description: General Web Search. Click Next.
          9. Next, copy and paste this classification description: This subagent is about enabling the agent to perform real-time web searches to obtain specific information about things but not about company policy, rules or anything related to this company. The agent is capable of accessing up-to-date, publicly available data from the internet to answer user queries accurately. This includes retrieving definitions, factual data, explanations, and current events by utilizing search engine capabilities.
          10. Copy and paste this subagent scope: Your job is limited to accessing publicly available and non-confidential information. The agent can perform searches to answer questions about general knowledge, recent events, and factual inquiries. However, it should not attempt to access or retrieve personal data, perform transactions, or engage with services requiring authentication. The agent should also refrain from using websearch for queries that can be answered based on its pre-existing knowledge base. Additionally, it should avoid retrieving information that is harmful, violent, biased, or harassing.
          11. Copy and paste these subagent instructions:
            1. If the customer's question is too vague or general, ask for more details and clarification to give a better answer.
            2. If you are unable to help the customer even after asking clarifying questions, ask if they want to escalate this issue to a live agent.
            3. Include sources in your response when available from the knowledge articles, otherwise proceed without them.
            4. Determine if the user's query requires fresh data that may not be available in the pre-existing knowledge base, such as recent news, factual updates, or specific information about an entity.
            5. If multiple sources provide conflicting information, highlight this to the user and provide the most reliable sources.
            6. Summarize and present the information in an understandable format, ensuring relevance to the original query.
            7. Avoid searching for or displaying sensitive or personal data. Only use publicly available information.
            8. Ensure that the information retrieved is not harmful, violent, biased, or harassing the customer.
            9. If a query does not fit the Websearch criteria or can be answered with existing knowledge, refrain from performing a web search and use the agent's built-in resources instead.
              The general web search subagent with the classification description, subagent scope and first instruction filled out.
              The general web search subagent with the instructions filled out.
            Click Next.
          12. For actions, select the Answer Questions with Knowledge action. Click Finish.
            Add available actions with the Answer Questions with Knowledge action highlighted,
            Note
            Note Only one subagent per agent can use the Answer Questions with Knowledge action. If you don’t see the action, check it isn’t assigned to one of your other actions.
          13. To use web search with your agent, you’ll need to remove the General FAQ subagent, but its function will be replaced with the General Web Search subagent. From Subagents, for the General FAQ subagent, from the drop-down menu, select Remove from Agent.
            Important
            Important You must remove the General FAQ subagent to use an Agentforce Data Library with web search.
          14. Activate your agent. Now, you can test the agent with your web search data library.
           
          Loading
          Salesforce Help | Article