Skip to main content
Tavily on AgentExchange brings live web information to Salesforce Agentforce. Use it to research companies, read web pages, and prepare briefs directly in an Employee Agent. Each user connects their own Tavily account through OAuth.

Prerequisites

  • An Agentforce-enabled Salesforce org and access to an Employee Agent. The listing supports Enterprise and Developer editions.
  • A Salesforce administrator to install the package, configure OAuth, and grant access.
  • A Tavily account with available credits for each user.

Set up Tavily

An administrator completes the org setup once. If your admin has already set up Tavily, go straight to Connect your account.
1

Install the managed package

Open Tavily on AgentExchange, click Get It Now, and follow the installation prompts for your org. If prompted for an installation key, contact Tavily support.The package includes the Tavily MCP connection and the Tavily MCP User permission set. You configure the OAuth client, tool actions, and Employee Agent after installation.
2

Configure OAuth for your org

Register a client using the installed provider’s exact callback URL, then save the client ID in Salesforce. This is a one-time admin step; end users do not need an API key.
1. Read your callback URL. In Salesforce, open Developer Console → Debug → Open Execute Anonymous Window. Run this Apex and find the callback URL in the debug log:
Use the returned URL exactly. It can differ between orgs; do not construct it from your Salesforce domain.2. Register the client. In a terminal, replace YOUR_SALESFORCE_CALLBACK_URL with that URL and run:
Copy the client_id from the response. Register a separate client for each Salesforce org.3. Save the client ID. Back in Execute Anonymous, replace YOUR_CLIENT_ID and run:
unused-public-client is a compatibility placeholder required by this package’s Salesforce configuration, not a Tavily-issued secret. Tavily registers a public OAuth client and uses PKCE for user authorization.
3

Grant access

In Setup → Permission Sets → Tavily MCP User → Manage Assignments, assign the permission set to yourself and the employees who will use Tavily.In a separate permission set that you manage, open Object Settings → User External Credentials and grant Read, Create, Edit, and Delete. Assign it to those users as well. The packaged permission set does not include these object permissions after installation. See Salesforce’s per-user credential permissions.Also assign Tavily MCP User and Read access to User External Credentials to the Platform Integration User. Employees need access to Lightning Experience and to the Employee Agent you configure below.
4

Connect and activate the tools

Connect your own Tavily account using the Connect your account tab in this guide before discovering tools.
  1. In Setup → Named Credentials, open TavilyMCP and confirm Enabled for Callouts is enabled.
  2. Open Setup → Agentforce Registry → MCP Servers → TavilyMCP.
  3. Open Tools and refresh discovery if prompted. Click Manage Tools, select the tools you want to use, and save.
  4. Confirm the generated tool actions appear in Setup → Agentforce Assets → Actions.
Agentforce Registry showing TavilyMCP connected, the Manage Tools button, and Tavily Search, Extract, Map, Crawl, and Research

The Tavily MCP connection with all five tools selected.

5

Add Tavily to an Employee Agent

Open your Employee Agent in Agentforce Builder. Add the generated Tavily actions from the asset library to the topic that handles web research. For example, start with tavily_search and tavily_extract.Give the topic instructions such as:
Use Tavily Search to find current information on the web. Use Tavily Extract to read a specific page. Base your answer on the tool results and explain when a request fails.
Test the agent in preview with the example below, then activate the agent version and grant employees access. See Salesforce’s MCP setup guide for tool-action and user-authorization details.

Try it

Ask your connected Employee Agent:
Use tavily_search to research Nebius. Summarize its business, main products, and target customers in three concise sections.
Agentforce conversation answering a Tavily Search request with a company summary, main products, and target customers

An example company research response in Agentforce. Results vary with the query and available sources.

Follow up with a page to read:
Use tavily_extract to read https://docs.tavily.com and summarize what I can build with Tavily.
In Builder preview, inspect the action result to confirm that the agent called Tavily and returned results.

Available tools

Your agent can use the tools your admin activates and adds to it.

Troubleshooting

Ask your admin to check the Tavily MCP User assignment and User External Credentials permissions. For an OAuth callback error, verify that the client was registered with the exact callback returned by the installed provider.
Confirm the connection is active, the tool is selected under Manage Tools, and its generated action is added to the agent’s topic. Verify that you are using the intended agent version and that your own Tavily connection shows Configured.
Check the selected account’s usage and limits in the Tavily dashboard. Resolve the limit before retrying. See rate limits and credits.

Resources