Setu Recipes: reusable digital workers across every app.Browse templates

Integrations / Tavily

Tavily

AI-oriented web search, page extraction, site crawling and site mapping.

5 actions API key 5 read0 write Calls api.tavily.com

Connect

TypeScript
const conn = await setu.connections.initiate({ userId: "user_1", toolkit: "tavily" });
console.log(conn.connectUrl); // show this to your user
await conn.waitUntilActive();

Permissions requested

This toolkit uses a single credential and requests no scopes.

Actions

Crawl a websitereadtavily.crawlCrawl a website from a root URL and return the extracted content of each page found. Can take a while and costs credits per page.
InputTypeDescription
urlstringRequiredRoot URL to begin the crawl
instructionsstringOptionalNatural-language instructions for the crawler
max_depthintegerOptionalHow far from the root to go, 1 to 5 (default 1)
max_breadthintegerOptionalLinks followed per page, 1 to 500 (default 20)
limitintegerOptionalTotal pages to process (default 50)
select_pathsarray of stringOptionalRegex patterns of paths to include
exclude_pathsarray of stringOptionalRegex patterns of paths to exclude
formatstringOptionalOutput format
TypeScript
await setu.execute({
  userId: "user_1",
  action: "tavily.crawl",
  input: {
    "url": "<url>"
  },
});
Extract page contentreadtavily.extractFetch and extract the readable content of one or more URLs (up to 20) as markdown or text, optionally reranked by a query.
InputTypeDescription
urlsarray of stringRequiredURLs to extract, 1 to 20
querystringOptionalRerank extracted chunks by relevance to this query
extract_depthstringOptionalbasic or advanced (tables, embedded content)
formatstringOptionalOutput format
TypeScript
await setu.execute({
  userId: "user_1",
  action: "tavily.extract",
  input: {
    "urls": []
  },
});
Get API usagereadtavily.get_usageGet this API key's credit usage and limit, plus the account's plan and usage.

No input.

TypeScript
await setu.execute({
  userId: "user_1",
  action: "tavily.get_usage",
  input: {},
});
Map a websitereadtavily.mapBuild a map of a website: return the list of URLs found from a root URL without extracting page content.
InputTypeDescription
urlstringRequiredRoot URL to begin mapping
instructionsstringOptionalNatural-language instructions for the crawler
max_depthintegerOptionalHow far from the root to go, 1 to 5 (default 1)
max_breadthintegerOptionalLinks followed per page, 1 to 500 (default 20)
limitintegerOptionalTotal links to process (default 50)
select_pathsarray of stringOptionalRegex patterns of paths to include
exclude_pathsarray of stringOptionalRegex patterns of paths to exclude
TypeScript
await setu.execute({
  userId: "user_1",
  action: "tavily.map",
  input: {
    "url": "<url>"
  },
});