---
schema_version: "1"
id: a7bd0fb61c9325328e2c81c6c06c81bd43efc4d46432731e97459f30f3f92d89
title: Set the Search Provider for Search the Web Agent Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/copilot_set_search_provider_for_web_search_action.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.copilot_set_search_provider_for_web_search_action.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e079701940d3a72e52089396c1896ab57fd30f0a59dfbf6ddf1181392fa2c616
description: Improve the accuracy of web search responses by setting the search provider for the Search the Web agent action.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Set the Search Provider for Search the Web Agent Action

Improve the accuracy of web search responses by setting the search provider for the Search the Web agent action.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions. <a href="https://help.salesforce.com/s/articleView?id=ai.agent_setup_explore_types.htm&amp;release=264.0.0&amp;type=5" title="Learn about agent types and default templates for specific clouds and common use cases.">Required add-on licenses vary by agent type.</a></td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" id="d135074e80">User Permissions Needed</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d135074e83">&nbsp;</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d135074e80 ">To build and manage Employee agents:</td>

            <td data-label="" class="slds-cell-wrap" style="vertical-align:top;" headers="d135074e83 ">
              <p>Manage AI Agents</p>
              <p dir="ltr">OR</p>
              <p style="margin-bottom:0;" dir="ltr">Customize Application</p>
            </td>

          </tr>
        </tbody>
      </table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_note.png)

Note When you add the Search the Web agent action, Salesforce returns publicly available search results from external sources in agent responses. Salesforce doesn’t review or verify this content. Results can include inaccurate or objectionable information. Use of web search is subject to the applicable Salesforce terms.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_note.png)

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

Before you begin, make sure that the Search the Web action is added to the agent. Turn on Einstein in Einstein Setup. If using the OpenAI provider, turn on OpenAI Models in Einstein Setup.

#### See Also

- [Use Web Search](https://help.salesforce.com/s/articleView?id=ai.data_library_web_search.htm&language=en_US)

## Set the Search Provider

The search provider determines which service processes web search queries. If you don't specify a provider, the action uses You.com as the default search provider.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_important.png)

Important To make changes to your agent, it must be in a draft state. If your agent is committed, [create a draft](https://help.salesforce.com/s/articleView?id=ai.agent_versions_draft.htm&type=5&language=en_US).

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_note.png)

Note These steps cover one way to set the search provider in Agentforce Builder. You can also set the search provider in Script view.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_important.png)

Important If you configured the Search the Web agent action before Salesforce introduced the selection list for search providers, the list doesn't appear in the existing configuration. In this case, [deactivate the agent](https://help.salesforce.com/s/articleView?id=ai.copilot_setup_activate_deactivate.htm&release=264.0.0&type=5 "Activate your agent to make it available to your customers or employees. When an agent is deployed to one or more channels, including the Agentforce panel, activating the agent makes it immediately available to your users."), remove the existing Search the Web action, [add a fresh copy of the action from the asset library](https://help.salesforce.com/s/articleView?id=ai.agent_actions_add_asset_library.htm&type=5&language=en_US), and then [activate the agent](https://help.salesforce.com/s/articleView?id=ai.copilot_setup_activate_deactivate.htm&release=264.0.0&type=5 "Activate your agent to make it available to your customers or employees. When an agent is deployed to one or more channels, including the Agentforce panel, activating the agent makes it immediately available to your users.") again.

1. From the App Launcher, enter Agent, and select **Agentforce Studio**, and then click **Agents**.
2. Select the agent that you use for web search. If you don't have a web search agent, click **New Agent** and [create one](https://help.salesforce.com/s/articleView?id=ai.agent_setup_create.htm&type=5&language=en_US).
3. In the Explorer panel (1), expand **Subagents** (2) and select the **General Web Search** (3) subagent.
4. Under Actions Available For Reasoning, expand **Search The Web** (4).
5. Next to the Search Provider input, click the value dropdown (5), and then select **Create a variable** (6).
    
    To enter a provider directly instead of using a variable, if the value shows Agent Populated, select Remove variable. Click the value again, select Empty String, and then enter the provider name.
    
    ![Agentforce Builder showing the General Web Search subagent with Search the Web action expanded and Search Provider input highlighted](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/agentforce_web_search_provider_create_variable.png)
    
    The Create Custom Variable dialog opens.
6. In the Create Custom Variable dialog, enter a name for the variable and [configure the variable's settings](https://help.salesforce.com/s/articleView?id=ai.agent_builder_variables_create.htm&release=264.0.0&type=5 "Use variables to store and reuse values in your agent’s reasoning and control how an agent makes decisions. For example, when you assign a variable to an action input, your agent can use only the assigned variable to fill the value of the input.").
7. In the **Default Value** field, enter one of the supported search providers: BrightData, OpenAI, or you.com.
    
    Provider names aren't case sensitive. For example, you can enter OpenAI, openai, or OPENAI. If you don't specify a provider, the action uses You.com by default.
    
    ![Create Custom Variable dialog showing the Search Provider variable with Default Value field](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/agentforce_web_search_provider.png)
8. Click **Create**.
9. Save your changes.

## Set the Search Provider in the Legacy Builder

1. From Setup, in the Quick Find box, enter Agent, and then select **Agentforce Agents**.
2. Select the agent that you use for web search, and click **Open in Builder**. If you don’t have a web search agent, click **New Agent** and [create one](https://help.salesforce.com/s/articleView?id=ai.agent_setup_create.htm&type=5&language=en_US).
3. If your agent is active, [deactivate it](https://help.salesforce.com/s/articleView?id=ai.copilot_setup_activate_deactivate.htm&release=264.0.0&type=5 "Activate your agent to make it available to your customers or employees. When an agent is deployed to one or more channels, including the Agentforce panel, activating the agent makes it immediately available to your users.").
4. In Agentforce Builder, open the **General Web Search** subagent. If you don’t have the subagent, [add it from the asset library](https://help.salesforce.com/s/articleView?id=ai.agent_topics_add_asset.htm&release=264.0.0&type=5 "Add a standard subagent to your agent to start from an example built to handle a common business use case. Or add a custom subagent that you built yourself. When you add a subagent to your agent from the asset library, a copy of the subagent is added to your agent.").
5. Select **This Subagent’s Actions**.
6. Select **Search The Web**.
7. Click **Edit Action**.
8. In the Inputs section, navigate to **Search Provider**, and select a search provider from the **Configuration Value** dropdown.
    
    Provider options include BrightData, OpenAI, and You.com. If you don’t select a provider, the action uses You.com by default.
9. Save the action.