$npx skillfedfor your agent

tavily-best-practices

Learn to build production Tavily integrations with patterns for web search, URL content extraction, site crawling, and AI-synthesized research. Covers SDK setup, method selection, async patterns, and framework integrations for agents and RAG systems.

Tavily Best Practices helps you integrate Tavily's search API into LLM agents for real-time web access and research workflows.

AI-generated summary based on this skill's SKILL.md

13,862 1,205 MITupdated by andrewyng

Decision gist · record as of 2026-05-31

Tavily Best Practices helps you integrate Tavily's search API into LLM agents for real-time web access and research workflows. Learn to build production Tavily integrations with patterns for web search, URL content extraction, site crawling, and AI-synthesized research. Covers SDK setup, method selection, async patterns, and framework integrations for agents and RAG systems.

manual: git clone https://github.com/andrewyng/context-hub → cp -r context-hub/content/tavily/skills/tavily-best-practices ~/.claude/skills/tavily-best-practices
content/tavily/skills/tavily-best-practices/SKILL.md · version fe274761

Use it when

  • tavily-best-practices explains that Tavily's extract method retrieves content from specific URLs you provide.
  • tavily-best-practices includes framework integration examples for both LangChain and LlamaIndex.

Verify before relying

Read SKILL.md below before installing (7 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

andrewyng/context-hub/tavily-best-practices · repository language: JavaScript

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I use Tavily search API for AI agents?

tavily-best-practices teaches you to integrate Tavily's search API into LLM agents for real-time web access. Start by setting up your API key as an environment variable, then use the Python SDK to instantiate a Tavily client. For agents, wrap Tavily search calls as tool functions that your LLM can invoke. The skill covers patterns for passing user queries to Tavily, handling search results, and feeding them back into your agent's context for decision-making.

What's the difference between tavily crawl vs extract?

tavily-best-practices explains that Tavily's extract method retrieves content from specific URLs you provide, ideal for RAG systems needing precise document content. Crawl discovers and processes multiple pages within a domain, useful for comprehensive site indexing. Extract is faster for targeted content; crawl is better for building knowledge bases from entire websites. Choose based on whether you need specific URLs (extract) or broad site coverage (crawl).

How do I set up tavily-best-practices for LangChain or LlamaIndex?

tavily-best-practices includes framework integration examples for both LangChain and LlamaIndex. For LangChain, create a tool wrapper around Tavily's search or extract methods and add it to your agent's toolkit. LlamaIndex users can use Tavily as a data loader or query engine component. Both frameworks benefit from async patterns covered in the skill—use Tavily's async client for parallel queries to avoid blocking your agent workflow.

What are best practices for production Tavily implementations?

tavily-best-practices covers production patterns including API key management via environment variables, async client usage for parallel queries, appropriate search depth selection (basic vs advanced), and semantic instruction tuning for better results. Key practices: cache results when possible, set max_results to balance cost and quality, use domain filtering to narrow scope, and monitor query performance. Test extraction depth settings before scaling.

How do I optimize search queries and extraction depth for efficiency?

tavily-best-practices teaches query optimization by adjusting the max_results parameter—fewer results reduce latency and cost. Search depth (basic vs advanced) trades speed for comprehensiveness; use basic for quick lookups, advanced for research. Semantic instructions guide Tavily toward relevant content, reducing noise. For multi-URL extraction, leverage async patterns to parallelize requests. Monitor token usage and adjust depth based on your agent's context window limits.

Can tavily-best-practices help with automated competitive analysis?

Yes. tavily-best-practices covers AI-powered research synthesis using Tavily for competitive analysis. Use the search API to gather competitor data, then extract detailed content from their sites. Combine results with LLM synthesis to generate insights. The skill shows how to structure semantic instructions for domain-specific queries, filter by site, and parallelize crawls across multiple competitors. This pattern scales for ongoing market monitoring.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

Tavily

Tavily is a search API designed for LLMs, enabling AI applications to access real-time web data.

Installation

Python:

pip install tavily-python

JavaScript:

npm install @tavily/core

See references/sdk.md for complete SDK reference.

Client Initialization

from tavily import TavilyClient

# Uses TAVILY_API_KEY env var (recommended)
client = TavilyClient()

#With project tracking (for usage organization)
client = TavilyClient(project_id="your-project-id")

# Async client for parallel queries
from tavily import AsyncTavilyClient
async_client = AsyncTavilyClient()

Choosing the Right Method

For custom agents/workflows:

Need Method
Web search results search()

(truncated - see the full file via the links below)

File tree — 7 files
content/tavily/skills/tavily-best-practices/SKILL.md
content/tavily/skills/tavily-best-practices/references/crawl.md
content/tavily/skills/tavily-best-practices/references/extract.md
content/tavily/skills/tavily-best-practices/references/integrations.md
content/tavily/skills/tavily-best-practices/references/research.md
content/tavily/skills/tavily-best-practices/references/sdk.md
content/tavily/skills/tavily-best-practices/references/search.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Integrate Tavily search API into LLM agents for real-time web access”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

tavily-best-practices
by tavily-ai · tavily-ai/skills

This skill documents how to build production Tavily integrations for AI agents and LLM applications. It covers web search, URL content extraction, site-wide crawling, URL discovery, and AI-powered research across Python and JavaScript SDKs with async support and framework integrations.

MITupdated Jun 2026
★ 435repo stars
tavily
by itechmeat · itechmeat/llm-code

Tavily is an AI-optimized search engine built for language model applications that need current web data. It provides web search, URL content extraction, site crawling, and autonomous research capabilities—all designed to return results formatted for LLM consumption rather than human browsing.

MITupdated Jul 2026
★ 21repo stars
Tavily Crawl
by family3253 · family3253/skill

Tavily Crawl downloads website content across multiple pages and saves it as markdown files for agent workflows, knowledge base backup, or offline study. Configure crawl depth, path filters, and semantic instructions to target specific sections. Supports both full-page archival and context-optimized chunking for LLM integration.

no license declared → metadata onlyupdated Apr 2026
★ 0repo stars
tavily
by malue-ai · malue-ai/dazee-small

Tavily provides a web search API purpose-built for AI agents, returning organized results that LLMs can consume directly. It supports both quick and deep search modes, with configurable result limits and domain filtering to suit different research needs.

MITdocs in Chineseupdated Mar 2026
★ 35repo stars
cheerio-parsing
by Mindrally · Mindrally/skills

cheerio-parsing teaches you how to parse and extract structured data from HTML and XML documents using Cheerio's jQuery-like API. This skill covers selecting elements, traversing the DOM, and transforming document content for web scraping, data extraction, and content processing workflows.

Apache-2.0updated Jun 2026
★ 202repo stars
tavily-web
by BenedictKing · BenedictKing/tavily-web

Tavily Web integrates the Tavily API to handle multiple research workflows: search the web for current information, extract and summarize content from specific URLs, crawl sites to discover page structure, and generate structured research output. Route requests to the appropriate endpoint based on user intent—search for latest sources, extract for URL content, crawl for site traversal, map for page discovery, or research for schema-driven results.

MITfor claude-codeupdated Apr 2026
★ 2repo stars

More skills Tavily (CC0-1.0) · web-search-tavily (MIT)

Tags
llm-search-integrationreal-time-web-dataagentic-workflowscontent-extraction-apisemantic-crawlingrag-data-retrievalai-research-synthesisweb-scraping-frameworkasync-search-patternsstructured-data-extraction