Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)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
          Customize Allowed Domains for the Search the Web Agent Action

          Customize Allowed Domains for the Search the Web Agent Action

          Limit web search results to specified websites by defining allowed domains for the Search the Web agent action. Set allowed domains through input variables in Next Generation Actions (NGA) or through the Configuration Input field in the legacy Agentforce Builder.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Performance, Unlimited, and Developer Editions. Required add-on licenses vary by agent type.
          User Permissions Needed  
          To build and manage Employee agents:

          Manage AI Agents

          OR

          Customize Application

          Note
          Note The Search the Web agent action isn’t supported in Government Cloud.

          Customize Allowed Domains

          The allowed domains determine which websites the Search the Web action can return results from.

          1. From the App Launcher, search for Agent, and select the Agentforce Studio app, and then click Agents.
          2. Select the agent that you use to search the web search. If you don’t have a web search agent, click New Agent and create one.
          3. In the Explorer panel, expand Subagents and select the General Web Search subagent.
          4. Under Actions Available For Reasoning, click Select action and select Search The Web.
          5. Click the arrow next to Search The Web to expand the input parameters.
          6. Click the Allowed Domains variable. The Edit Custom Variable dialog opens.
            If the variable doesn’t exist, create a custom variable first.
          7. In the Default Value field, enter up to 10 allowed domains as a comma-separated list.

            Optionally, add a description in the Description field to document what these domains represent. For example, "Allowed domains for Salesforce product documentation and support."

            Edit Custom Variable dialog showing the Allowed Domains variable with Default Value field for comma-separated domains
          8. Save your changes.

          Customize Allowed Domains in the Legacy Agentforce Builder

          1. From Setup, in the Quick Find box, enter Agents, and then select Agentforce Agents.
          2. Select your agent, and click Open in Builder.
          3. In Agentforce Builder, open the General Web Search subagent.
          4. Select This Subagent’s Actions.
          5. Select Search The Web.
          6. Click Edit Action.
          7. In the Inputs section, navigate to the Allowed Domains, and enter up to 10 comma-separated domains in the Configuration Input field.
          8. Save the action.
           
          Loading
          Salesforce Help | Article