Skip to main content
Tavily provides a search API purpose-built for AI agents. Portkey’s Tavily guardrail injects relevant web search results into the request before it reaches the LLM, so the model can answer with current online information.

Get Started with Tavily

Requires Backend v1.16.0+.

Using Tavily with Portkey

1. Add Tavily Credentials to Portkey

  • Click on the Admin Settings button on Sidebar
  • Navigate to Plugins tab under Organisation Settings
  • Click on the edit button for the Tavily integration
  • Add your Tavily API Key (obtain this from your Tavily account)

2. Add Tavily’s Guardrail Check

  • Navigate to the Guardrails page and click the Create button
  • Search for β€œTavily Online Search” and click Add
  • Configure the search behaviour (all parameters are optional):
  • Set any actions you want on your check, and create the Guardrail!
Guardrail Actions allow you to orchestrate your guardrails logic. You can learn more about them here

3. Add Guardrail ID to a Config and Make Your Request

  • When you save a Guardrail, you’ll get an associated Guardrail ID β€” add this ID to the input_guardrails param in your Portkey Config
  • Create these Configs in Portkey UI, save them, and get an associated Config ID to attach to your requests. More here.
For more, refer to the Config documentation.

Get Support

If you face any issues with the Tavily integration, join the Portkey community forum for assistance.
Last modified on May 26, 2026