LangChain-compatible web search tool for n8n AI agents using Brave Search API. Provides structured search capabilities with customizable parameters and output formats.
A LangChain-compatible web search tool for n8n AI agents that integrates with the Brave Search API. This community node enables AI agents and chains to perform web searches with precise control over search parameters.
This tool provides a `DynamicStructuredTool` that connects n8n AI Agents and Chains to the Brave Search API. It allows AI models to search the web autonomously with full control over search parameters like country, language, result count, freshness, and safety filters.
Follow these steps to install the n8n-nodes-bravesearch-advanced package:
1. Navigate to **Settings > Community Nodes** in your n8n instance
2. Click **Install**
3. Enter `n8n-nodes-bravesearch-advanced` in the package name field
4. Accept the community nodes risk disclaimer
5. Click **Install** to complete installation
The node will appear under **Community > Installed** in your node panel.
Before using the tool, configure Brave Search API credentials:
1. Sign up for Brave Search API at https://api.search.brave.com/
2. Obtain your API Subscription Token (API Key)
3. In n8n, navigate to **Credentials > New**
4. Search for and select **Brave Search API**
5. Enter a credential name
6. Paste your API Subscription Token in the **API Key** field
7. (Optional) Set a custom **Base URL** if using a proxy or test endpoint
8. Save the credentials
Configure the **Web Search Tool (Brave)** node with these settings:
Provide a clear description for the AI model explaining:
The default description is comprehensive and suitable for most use cases.
Set default values or overrides for search parameters:
Parameters set in the UI take precedence over AI-provided values.
Choose how search results are returned to the AI:
Enable to log:
Useful for troubleshooting and development.
Connect the tool to your AI workflow:
1. Add the **Web Search Tool (Brave)** node to your workflow
2. Select your configured Brave Search API credentials
3. Configure node properties as described above
4. Connect the node output to the **Tools** input of an AI Agent or Chain node
5. The AI model can now invoke the `web_search` tool when web information is needed
The AI model can provide these parameters when invoking the tool:
**Required:**
**Optional:**
All parameters are defined via Zod schema, allowing the AI model to understand and use them correctly.
```
1. Example Title
https://example.com
This is a snippet of the search result content...
2. Another Result
https://another-example.com
Another snippet with relevant information...
```
```json
{
"web": {
"results": [
{
"title": "Example Title",
"url": "https://example.com",
"description": "Full description text",
"age": "2 days ago",
"language": "en"
}
]
}
}
```
**Example 1: Basic Web Search Agent**
**Example 2: Research Chain with Filters**
**Example 3: News Monitoring Workflow**
For custom node development, workflow automation consulting, or n8n-related services:
**Walid Boudabbous** (Acceleate Consulting Estonia)
Email: [email protected]
MIT
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/n8n-brave-search-tool/raw