{
  "name": "Discover business leads with Gemini, Brave Search and web scraping",
  "nodes": [
    {
      "id": "dc30089e-2dea-4cba-ae74-f043240b5176",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -40,
        1560
      ]
    },
    {
      "id": "27d02a47-659e-4b6a-8c5f-50253fc5be1c",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        820,
        1620
      ]
    },
    {
      "id": "b791c4dd-bdc8-4d38-a301-ababb9ff129f",
      "name": "brave_web_search",
      "type": "n8n-nodes-mcp.mcpClientTool",
      "position": [
        1160,
        1300
      ]
    },
    {
      "id": "d33f89c7-ed40-427e-9f2c-b699194e860e",
      "name": "brave_local_search",
      "type": "n8n-nodes-mcp.mcpClientTool",
      "position": [
        1720,
        1300
      ]
    },
    {
      "id": "d2cd00e1-bb22-4a6d-a7c5-bcf299883396",
      "name": "jina_ai_web_page_scraper",
      "type": "n8n-nodes-base.jinaAiTool",
      "position": [
        2880,
        1300
      ]
    },
    {
      "id": "27045509-9f22-4fd8-a753-5d5e2109caa7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        -940
      ],
      "parameters": {
        "width": 940,
        "height": 460,
        "content": "## 📞 MCP Client Configuration (for Prospect Discovery Service)\n\nExternal clients can configure this agent as a tool to discover lists of potential business prospects.\n\n    **Example Client Tool Config"
      }
    },
    {
      "id": "4cc52e11-b88f-44ec-8411-4e6f8cdb725c",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -860,
        -420
      ],
      "parameters": {
        "width": 840,
        "height": 420,
        "content": "## 📡 prospect_discovery (MCP Server Trigger - Optional Endpoint)\n\n🚪 **Optional Entry Point for External Prospect Discovery Requests**\n*   **Purpose:** If this workflow is exposed as a direct MCP servi"
      }
    },
    {
      "id": "e69f1690-e3f8-43a4-b258-a562db2d4338",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -860,
        60
      ],
      "parameters": {
        "width": 840,
        "height": 320,
        "content": "## ➡️ discover_prospect (Tool Workflow Node)\n\n📞 **Invokes the Prospect Discovery Agent Logic**\n*   **Purpose:** This node acts as the bridge, formally calling the `prospect_discovery_agent`'s core log"
      }
    },
    {
      "id": "cebaa441-7072-42f4-abb6-52dff61d38ae",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        -460
      ],
      "parameters": {
        "width": 940,
        "height": 400,
        "content": "## 🗺️ Main MCP Server Workflow Overview (Prospect Discovery Service)\n\n**Agent Name:** Prospect Discovery Agent\n*   **Gateway Function (If Exposed):** This workflow *could* act as an MCP Server, making"
      }
    },
    {
      "id": "44491f1b-4042-45b3-9fb7-87a96212d2c2",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        -1240
      ],
      "parameters": {
        "width": 740,
        "height": 280,
        "content": "## 📄 Workflow Information: Prospect Discovery Agent\n\n*   **Workflow Name:** Prospect Discovery Agent\n*   **Version:** 1.0.0\n*   **Last Updated:** 2025-06-12\n*   **👤 Author:** Jeremy Dawes, Jezweb ([ww"
      }
    },
    {
      "id": "4805790c-b4e7-4f37-949a-2d9a62bce598",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2480,
        -80
      ],
      "parameters": {
        "width": 740,
        "height": 560,
        "content": "## ✅ TODO / Future Enhancements (Prospect Discovery Agent)\n\n*   [ ] **Improve Location Disambiguation:** Add more sophisticated logic if the `location_query` is ambiguous or very broad.\n*   [ ] **Conf"
      }
    },
    {
      "id": "249f9bfb-b92f-4bf5-ad59-300271da9bff",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        720
      ],
      "parameters": {
        "width": 640,
        "height": 520,
        "content": "## 🏁 Sub-Workflow Start: Prospect Discovery Logic\n(Node: `prospect_discovery_workflow` - Execute Workflow Trigger)\n\n🎯 **Initiates the Prospect Identification Process**\n*   **Purpose:** This is the int"
      }
    },
    {
      "id": "89ff4b9f-d13a-4ec4-af43-77f56fd2de03",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        20,
        620
      ],
      "parameters": {
        "width": 740,
        "height": 620,
        "content": "## 🧠 prospect_discovery_agent (Core Logic)\n\n🔍 **The Prospect Identification Engine**\n*   **Purpose:** Processes the request to find a list of potential business prospects (names and websites) based on"
      }
    },
    {
      "id": "b73ca6ea-094f-487f-ab64-4a9c08d8d6d5",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        260,
        1660
      ],
      "parameters": {
        "width": 620,
        "height": 340,
        "content": "## 💾 Agent Memory (Planner Memory / Simple Memory)\n\n🧠 **Short-Term Recall for Prospect Search**\n*   **Purpose:** Provides conversational memory to the `prospect_discovery_agent`, allowing it to rememb"
      }
    },
    {
      "id": "923fa510-9f62-4295-a604-72d02406d01a",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        720
      ],
      "parameters": {
        "width": 460,
        "height": 620,
        "content": "## 🛠️ Tool: brave_web_search (Prospect Discovery Context)\n\n🌐 **Broad Prospect Sourcing & List Generation**\n*   **Connection:** Uses `smithery brave search` credential.\n*   **Purpose for Prospect Disco"
      }
    },
    {
      "id": "69d2a0c8-6535-424e-8663-7d99e225d441",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1540,
        720
      ],
      "parameters": {
        "width": 460,
        "height": 620,
        "content": "## 🛠️ Tool: brave_local_search (Prospect Discovery Context - Limited Use)\n\n📍 **Quick Validation & URL Sniffing for Potential Prospects**\n*   **Connection:** Uses `smithery brave search` credential.\n* "
      }
    },
    {
      "id": "376c605e-7453-43b4-8d86-ebc701165e0a",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2120,
        720
      ],
      "parameters": {
        "width": 460,
        "height": 620,
        "content": "## 🛠️ Tool: google_gemini_prospect_finder (Prospect Discovery Context)\n\n✨ **Advanced Prospect Sourcing & Contextual Discovery**\n*   **Connection:** Uses `Gemini Credentials account` credential.\n*   **"
      }
    },
    {
      "id": "38df04af-6a16-48b9-b028-3025c74131f5",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2700,
        720
      ],
      "parameters": {
        "width": 460,
        "height": 620,
        "content": "## 🛠️ Tool: jina_ai_web_page_scraper (Prospect Discovery Context - VERY Limited Use)\n\n📄 **Rapid Relevance Check for Uncertain Prospects**\n*   **Connection:** Uses `Jina AI account` credential.\n*   **P"
      }
    },
    {
      "id": "6c8a16f5-cb1d-46f3-8a75-688914e3a6c5",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        -900
      ],
      "parameters": {
        "width": 740,
        "height": 500,
        "content": "## 💡 n8n AI Agent as a Specialized Sub-Workflow (Prospect Discovery Pattern)\n\n**This workflow implements a specialized n8n AI Agent designed to be called as a tool or sub-workflow by another parent ag"
      }
    },
    {
      "id": "c8cd4af9-911a-4175-ae49-98b27c1f1558",
      "name": "Sticky Note14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        -360
      ],
      "parameters": {
        "width": 740,
        "height": 460,
        "content": "## 🔑 External Service Credentials (Prospect Discovery Agent Logic)\n\nList of credentials used by tools within this Prospect Discovery agent:\n\n1.  **Tool Nodes:** `brave_web_search`, `brave_local_search"
      }
    },
    {
      "id": "31a06a5a-c805-48c0-889a-e72a4192b341",
      "name": "Sticky Note15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        1600
      ],
      "parameters": {
        "width": 740,
        "height": 260,
        "content": "## ⚙️ Key LLM & Agent Settings (Prospect Discovery Logic Area)\n\n*   **LLM Model:** `models/gemini-2.5-flash-preview-05-20` (Configured in the `Google Gemini Chat Model` node connected to the `prospect"
      }
    },
    {
      "id": "d982e681-f48e-4020-9d6b-cf862f24ace7",
      "name": "Sticky Note16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2480,
        -900
      ],
      "parameters": {
        "width": 740,
        "height": 360,
        "content": "## 🎯 Sub-Workflow: Business Finder Core Logic (Agent Logic Area)\n\n*   **Purpose:** This section of the workflow is dedicated to understanding the user's business search request, strategically utilizin"
      }
    },
    {
      "id": "f23b12e0-a347-4b85-ae2c-17f50f2b2e98",
      "name": "Sticky Note17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2480,
        -500
      ],
      "parameters": {
        "width": 740,
        "height": 400,
        "content": "## 🛠️ Troubleshooting Tips (Prospect Discovery Agent Logic)\n\n*   **Check `prospect_discovery_agent` Logs:** Examine execution logs for tool call details (especially the queries sent to search tools), "
      }
    },
    {
      "id": "a7f54d15-946f-4712-94ca-97a360adc9bc",
      "name": "Sticky Note18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3440,
        -1160
      ],
      "parameters": {
        "width": 860,
        "height": 1640,
        "content": "### n8n Community Template Submission Description (for \"Prospect Discovery\" Workflow)\n\nThis description is for the \"Prospect Discovery\" workflow itself, highlighting its specific capabilities.\n\n**Work"
      }
    },
    {
      "id": "71869bea-8ed4-4aa6-a8d3-6a19be1af7e8",
      "name": "prospect_discovery",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        -220,
        -80
      ]
    },
    {
      "id": "617b4a64-691a-4850-9b2c-f38c9580869c",
      "name": "discover_prospect",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        -60,
        320
      ]
    },
    {
      "id": "2b29393a-1ffe-494c-9ab3-803da13efbc9",
      "name": "prospect_discovery_agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        240,
        1180
      ]
    },
    {
      "id": "d54d6483-54bc-45b3-9a2b-05767176aa08",
      "name": "prospect_discovery_workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -500,
        1180
      ]
    },
    {
      "id": "4c2d5725-1e5b-4ca5-b030-6be6cb28638c",
      "name": "google_gemini_prospect_finder",
      "type": "n8n-nodes-gemini-search.geminiSearchToolTool",
      "position": [
        2300,
        1300
      ]
    },
    {
      "id": "f5d70acc-c6f9-4ce9-85d0-35c3c6403725",
      "name": "Sticky Note19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1940,
        -780
      ],
      "parameters": {
        "width": 940,
        "height": 1760,
        "content": "![MCP Usage Example](https://www.jezweb.com.au/wp-content/uploads/2025/06/prospect-discovery-01.png#full-width)"
      }
    }
  ],
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "prospect_discovery_agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "brave_web_search": {
      "ai_tool": [
        [
          {
            "node": "prospect_discovery_agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "discover_prospect": {
      "ai_tool": [
        [
          {
            "node": "prospect_discovery",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "brave_local_search": {
      "ai_tool": [
        [
          {
            "node": "prospect_discovery_agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "prospect_discovery_agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "jina_ai_web_page_scraper": {
      "ai_tool": [
        [
          {
            "node": "prospect_discovery_agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "prospect_discovery_workflow": {
      "main": [
        [
          {
            "node": "prospect_discovery_agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "google_gemini_prospect_finder": {
      "ai_tool": [
        [
          {
            "node": "prospect_discovery_agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}