Skip to main content

Discover business leads with Gemini, Brave Search and web scraping

Workflow preview

Workflow preview
100%
Discover business leads with Gemini, Brave Search and web scraping preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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...

Best for

  • Lead Generation automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-mcp.mcpclienttool, n8n-nodes-base.jinaaitool, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.mcptrigger, @n8n/n8n-nodes-langchain.toolworkflow, @n8n/n8n-nodes-langchain.agent

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jez.

Original n8n.io source

1.1 Workflow description

Title
Discover business leads with Gemini, Brave Search and web scraping
Workflow name
Discover business leads with Gemini, Brave Search and web scraping

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:

  • Understanding your target business profile (type, location, keywords).
  • Strategically using web search tools (Brave Search, Google Gemini Search) to find relevant businesses.
  • Performing quick validations to confirm relevance.
  • Returning a clean, structured JSON list of prospect names and their website URLs.

How it Works:

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

  • Brave Web Search: For broad initial sourcing of potential business candidates.
  • Google Gemini Search: For advanced, context-aware discovery and finding businesses mentioned in various online sources.
  • Brave Local Search (Selective): For quick verification of local presence or finding website URLs for identified names.
  • Jina AI Web Page Scraper (Very Selective): For extremely rapid relevance checks on uncertain websites by scanning page content for keywords.

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:

  • Lead Generation: Automatically generate lists of potential clients based on industry and location.
  • Market Research: Identify key players or types of businesses in a specific geographical area.
  • Sales Development: Provide SDRs with initial lists of companies to research further.
  • Called as a Sub-Workflow: Designed to be easily integrated as a "tool" into more complex orchestrating AI agents (e.g., a BNI Pitch Planner that first needs to identify who to target).

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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 2 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 3 - brave_web_search

Type / Role
n8n-nodes-mcp.mcpClientTool - mcpClientTool
Config choices
Version 1

Block 4 - brave_local_search

Type / Role
n8n-nodes-mcp.mcpClientTool - mcpClientTool
Config choices
Version 1

Block 5 - jina_ai_web_page_scraper

Type / Role
n8n-nodes-base.jinaAiTool - jinaAiTool
Config choices
Version 1

Block 6 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note11

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note12

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note13

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note14

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note15

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note16

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note17

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note18

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 30 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Discover business leads with Gemini, Brave Search and web scraping
Complexity advanced
Nodes 30
Categories Lead Generation, AI Chatbot
Author Jez
Published 13 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4910/4910.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Discover business leads with Gemini, Brave Search and web scraping do?

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...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Chatbot use case.