Introduction
Integrate Tavily with StackAI to enhance your AI workflows with real-time web data. With this integration, you can easily fetch and utilize live web content in your StackAI workflows.
How to set up Tavily with StackAI
Step 1: Log in to StackAI
Step 1: Log in to StackAI
Log in to your StackAI account or self-hosted instance.
Step 2: Create a New Workflow
Step 2: Create a New Workflow
Create a new workflow or choose one of the available templates.
Step 3: Add Tavily to Your Workflow
Step 3: Add Tavily to Your Workflow
Option 1: Add Tavily as a Node
- Search for “Tavily” under the Apps section in the left sidebar.
- Drag and drop the “Tavily” app into your canvas.
Option 2: Add Tavily as a Tool to an AI Agent
- Choose between “Search”, “Crawl”, “Extract” or “Map” tool based on your needs.
- In the Connect Tavily section, create a new connection by entering a connection name and your Tavily API key.
For Search:
- Enter your search
query(can be manually entered or populated from another node’s output) - Select a
topic(“general” or “news”) - Choose whether to include raw content or generate an answer
- Specify Maximum Search Results to return
- Set search depth and other optional parameters
For Extract:
- Enter the URL(s) to extract content from (can be a single URL or multiple URLs from another node’s output)
- Choose Extract Depth (“basic” or “advanced”)
- Specify the output format (“markdown” or “text”)
For Crawl:
- Enter the Root URL to crawl
- Set the crawl instructions to guide the crawler
- Set the Limit on the number of pages to crawl
For Map:
- Enter the Root URL to begin the mapping
- Set the map instructions to guide the mapping process
- Set the mapping depth to control how deep the mapping goes
Test: Run the node to verify your configuration.
Step 4: Process and Use Tavily Results
Step 4: Process and Use Tavily Results
Utilize the search, crawl, extract, or map results in your workflow:
- Process data through additional nodes
- Send information to your CRM, database, or email
- Generate reports or notifications
- Feed data into AI models for further processing
Use cases for Tavily in StackAI
Leverage Tavily’s capabilities to create powerful automated workflows:- Job Search Automation: Find and summarize new job postings, then send results to your inbox
- Competitive Intelligence: Automatically gather and analyze competitor information
- Market Research: Track industry trends and market developments
- Content Curation: Collect and organize relevant content for your business
- Lead Enrichment: Enhance lead data with real-time information
- News Monitoring: Stay updated with the latest developments in your field
Detailed example - AI News Summary
Here’s an example workflow that uses Tavily to search for the latest articles on “AI advancements” and sends a summary to your email:Workflow Steps
Workflow Steps
- Trigger: Schedule the workflow to run daily
- AI Agent: Add an AI agent node to your workflow
- Search: The AI agent uses Tavily to find recent articles on “AI advancements”
- Summarize: The AI agent summarizes the most important news and trends
- Delivery: Send the summarized briefing via Email, Slack, or another integration
Best practices
To optimize your Tavily integration in StackAI:- Tightly constrain Tavily queries to specific intent, time range, and domains to avoid noisy retrieval.
- Force concise, structured outputs (bullets/JSON with only required fields) to reduce tokens and parsing errors.