Search Tool
The Search Tool block enables seamless web searches within your workflows, supporting multiple search engines and APIs. With customizable parameters, this block is ideal for gathering relevant information for AI-driven tasks.
Supported Search Engines
- Tavily Search: AI-powered search delivering high-quality results.
- DuckDuckGo Search: Privacy-focused search, no API key required.
- Search API: Custom integration for specialized search APIs.
- SerpAPI: Access to Google search results via API.
The Search Tool Block offers flexible search capabilities, allowing you to tailor results for specific use cases with minimal setup.
Configuration
Basic Settings
- Search Tool Name: Select a supported search provider (e.g., Tavily, DuckDuckGo).
- Search Query: Define the query, supporting variable substitution (e.g.,
{{userQuery}}). - Credentials: Configure API credentials for paid services (not required for DuckDuckGo).
Advanced Options
- Max Results: Limit the number of returned results (not available for Search API).
- Include Domains: Specify a comma-separated list of domains to prioritize in results.
- Exclude Domains: Specify a comma-separated list of domains to exclude from results.
- Response Mapping: Save search results to a workflow variable for downstream use.
Usage Examples
Basic Web Search
Search Tool: tavilySearch
Search Query: "latest AI developments 2024"
Max Results: 10Domain-Specific Search
Search Tool: SerpAPI
Search Query: "React best practices"
Include Domains: github.com, stackoverflow.com
Exclude Domains: w3schools.comResearch Workflow
Use the Search Tool Block to gather data and pass results to other blocks for analysis or summarization:
Search Tool: DuckDuckGo
Search Query: "market trends 2024"
Response Mapping: {{searchResults}}Node Display
- Configured: Displays the selected search tool name and a preview of the query.
- Unconfigured: Shows a “Configure...” prompt.
Tips
- Use DuckDuckGo for quick, credential-free searches.
- Leverage include/exclude domains to refine results for specific use cases.
- Map search results to variables for seamless integration with other workflow steps.
- Be mindful of rate limits when using paid search APIs like SerpAPI or Tavily.
⚠️
Test Search Tool Block configurations, especially for paid APIs, to ensure proper credential setup and adherence to rate limits before production deployment.