🎣 Discover business leads with Gemini, Brave Search and web scraping

⚡ 3,851 views · 🎣 Lead Generation & Enrichment

💡 Pro Tip — HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it — it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Uncover new business leads with this AI-Powered Prospect Discovery Agent! This n8n workflow acts as a specialized intelligent assistant that, given a business type and location, uses multiple search strategies to identify a list of potential prospect companies and their websites.

Stop manually trawling through search results! This agent automates the initial phase of lead generation by:

How it Works:

The workflow is built around an AI agent powered by Google Gemini. This agent is equipped with tools like:

The agent’s system prompt guides it to use these tools efficiently to build a list of prospects without getting bogged down in deep research on any single one at this discovery stage.

Use Cases:

Setup:

  1. Import the workflow.
  2. Configure Credentials: You’ll need n8n credentials for:
    • Google Gemini (for the Chat model and the Gemini Search/Vertex AI Search tool).
    • Brave Search (e.g., via Smithery MCP, or adapt if you have direct API access).
    • Jina AI (for the web scraper). Assign these to the respective nodes.
  3. Review System Prompt: The prospect_discovery_agent node contains a detailed system prompt. You can fine-tune this to adjust its search strategies or the strictness of its matching.
  4. Inputs: This workflow is triggered by an “Execute Workflow Trigger” node (prospect_discovery_workflow). It expects the following inputs:
    • business_type (string): e.g., “artisan bakery”
    • location_query (string): e.g., “Portland, Oregon”
    • desired_num_prospects (number): e.g., 5
    • additional_keywords (string, optional): e.g., “organic, gluten-free”

To Use (as a Sub-Workflow/Tool):

This workflow is typically called by another n8n workflow (e.g., using a “Tool Workflow” node from the Langchain nodes). The calling workflow would provide the inputs listed above. The “Prospect Discovery” workflow will then execute and its final node (the prospect_discovery_agent) will output a JSON array of found prospects, like:

[
  {
    "business_name": "Rose Petal Bakery",
    "website_url": "https://rosepetalbakerypdx.com"
  },
  {
    "business_name": "The Daily Bread Artisans",
    "website_url": "https://dailybreadpdx.com"
  }
]

If no prospects are found, it returns an empty array [].

This template provides a powerful and focused tool for automating the initial stages of prospect identification.

đź”— Nodes Used

Execute Workflow Trigger, AI Agent, Simple Memory, Call n8n Workflow Tool, Google Gemini Chat Model, MCP Server Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup