See llms.txt for all machine-readable content.

Back to Templates

Ai-powered local event finder with multi-tool search

Summary

This n8n workflow implements an AI-powered "Local Event Finder" agent. It takes user criteria (like event type, city, date, and interests), uses a suite of search tools (Brave Web Search, Brave Local Search, Google Gemini Search) and a web scraper (Jina AI) to find relevant events, and returns formatted details. The entire agent is exposed as a single, easy-to-use MCP (Multi-Capability Peer) tool, making it simple to integrate into other workflows or applications.

This template cleverly combines the MCP server endpoint and the AI agent logic into a single n8n workflow file for ease of import and management.

Key Features

  • Intelligent Multi-Tool Search: Dynamically utilizes web search, precise local search, and advanced Gemini semantic search to find events.
  • Detailed Information via Web Scraping: Employs Jina AI to extract comprehensive details directly from event web pages.
  • Simplified MCP Tool Exposure: Makes the complex event-finding logic available as a single, callable tool for other MCP-compatible clients (e.g., Roo Code, Cline, other n8n workflows).
  • Customizable AI Behavior: The core AI agent's behavior, tool usage strategy, and output formatting can be tailored by modifying its System Prompt.
  • Modular Design: Uses distinct nodes for LLM, memory, and each external tool, allowing for easier modification or extension.

Benefits

  • Simplifies Client-Side Integration: Offloads the complexity of event searching and data extraction from client applications.
  • Provides Richer Event Data: Goes beyond simple search links to extract and format key event details.
  • Flexible & Adaptable: Can be adjusted to various event search needs and can incorporate new tools or data sources.
  • Efficient Processing: Leverages specialized tools for different aspects of the search process.

Nodes Used

  • MCP Trigger
  • Tool Workflow
  • Execute Workflow Trigger
  • AI Agent
  • Google Gemini Chat Model (ChatGoogleGenerativeAI)
  • Simple Memory (Window Buffer Memory)
  • MCP Client (for Brave Search tools via your MCP server)
  • Grounded Gemini HTTP search tool
  • Jina AI Tool

Prerequisites

Configure both native Brave MCP Client Tool nodes with the HTTPS address and Header Auth credential for your Brave Search MCP service, running in HTTP mode. Use a Gemini API credential with Google Search grounding access on the Gemini chat model and the grounded-search HTTP tool. Connect Jina AI to the page-reader tool.

Setup Instructions

Set Header Auth on the MCP Server Trigger. Copy its production URL and provide the configured header to your external MCP client. The agent is on this canvas and is called automatically when the workflow is published.

Customization

  • AI Behavior: Modify the "System Message" parameter within the event_finder_agent node to change the AI's persona, its strategy for using tools, or the desired output format.
  • LLM Model: Swap the Google Gemini Chat Model node with another compatible LLM node (e.g., OpenAI Chat Model) if desired. You'll need to adjust credentials and potentially the system prompt.
  • Tools: Add, remove, or replace tool nodes (e.g., use a different search provider, add a weather API tool) and update the event_finder_agent's system prompt and tool configuration accordingly.
  • Scraping Depth: Be mindful of the jina_ai_web_page_scraper's usage due to potential timeouts. The system prompt already guides the LLM on this, but you can adjust its usage instructions.