AI-powered lead enrichment with Bright Data MCP and Google Sheets
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Scraper AI Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (21)
- Google Sheets Trigger
n8n-nodes-base.googleSheetsTrigger - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Auto-fixing Output Parser
@n8n/n8n-nodes-langchain.outputParserAutofixing - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Filter
n8n-nodes-base.filter - Edit Fields (Set)
n8n-nodes-base.set - MCP Client Tool
@n8n/n8n-nodes-langchain.mcpClientTool - If
n8n-nodes-base.if - Switch
n8n-nodes-base.switch - Merge
n8n-nodes-base.merge - No Operation, do nothing
n8n-nodes-base.noOp - Wait
n8n-nodes-base.wait - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI
@n8n/n8n-nodes-langchain.openAi - Google Sheets
n8n-nodes-base.googleSheets - Split Out
n8n-nodes-base.splitOut - HubSpot
n8n-nodes-base.hubspot - Manual Trigger
n8n-nodes-base.manualTrigger - HubSpot Trigger
n8n-nodes-base.hubspotTrigger - Webhook
n8n-nodes-base.webhook
What it does
📌 HubSpot Lead Enrichment with Bright Data MCP !Screenshot 20250603 at 1.24.49 PM.png(fileId:1436) This template enables natural-language-driven automation using Bright Data's MCP tools, triggered directly by new leads in HubSpot. It dynamically extracts and executes the right tool based on lead context—powered by AI and configurable in N8N. --- ❓ What Problem Does This Solve? Manual lead enrichment is slow, inconsistent, and drains valuable time. This solution automates the process using a no-code workflow that connects HubSpot, Bright Data MCP, and an AI agent—without requiring scripts or technical skills. Perfect for marketing, sales, and RevOps teams. --- 🧰 Prerequisites To use this template, you’ll need: - A self-hosted or cloud instance of N8N - A Bright Data MCP API token - A valid OpenAI API key (or compatible AI model) - A HubSpot account - Either a Private App token or OAuth credentials for HubSpot - Basic familiarity with N8N workflows --- ⚙️ Setup Instructions 1. Set Up Authentication in HubSpot 🔐 Option 1: Use a Private App Token (Simple Setup) 1. Log in to your HubSpot account. 2. Navigate to Settings → Integrations → Private Apps. 3. Create a new Private App with the following scopes: - crm.objects.contacts.read - crm.objects.contacts.write - crm.schemas.contacts.read - crm.objects.companies.read (optional) 4. Copy the Access Token. 5. In N8N, create a credential for HubSpot App Token and paste the app token in the field. 6. Go back to Hubspot Private App settings to setup a webhook. - Copy the url in your workflow's Webhook node and paste it here. 🔁 Option 2: Use OAuth (Advanced + Secure) 1. In HubSpot, go to Settings → Integrations → Apps → Create App. 2. Set your Redirect URL to match your N8N OAuth2 redirect path. 3. Choose scopes like: - crm.objects.companies.read - crm.objects.contacts.read - crm.objects.deals.read - crm.schemas.companies.read - crm.schemas.contacts.read - crm.schemas.deals.read - crm.objects.contacts.write (conditionally required) 4. Note the Client ID and Client Secret. 5. Copy the App ID and the developer API key 6. In N8N, create a credential for HubSpot Developer API and paste those info from previous step. 7. Attach these credentials to the HubSpot node in N8N. --- 2. Setup and obtain API token and other necessary information from Bright Data In your Bright Data account, obtain the following information: - API token - Web Unlocker zone name (optional) - Browser API username and password string separated by colon (optional) 3. Host SSE server from STDIO command The methods below will allow you to receive SSE (Server-Sent Events) from Bright Data MCP via a local Supergateway or Smithery Method 1: Run Supergateway in a separate web service (Recommended) This method will work for both cloud version and self-hosted N8N. Signup to any cloud services of your choice (DigitalOcean, Heroku, Hetzner, Render, etc.). For NPM based installation: - Create a new web service. - Choose Node.js as runtime environment and setup a custom server without repository. - In your server’s settings to define environment variables or .env file, add: APITOKEN=yourbrightdataapitoken WEBUNLOCKERZONE=optionalzonename BROWSERAUTH=optionalbrowserauth - Paste the following text as a start command: npx -y supergateway --stdio "npx -y @brightdata/mcp" --port 8000 --baseUrl http://localhost:8000 --ssePath /sse --messagePath /message - Deploy it and copy the web server URL, then append /sse into it. - Your SSE server should now be accessible at: https://yourserverurl/sse For Docker based installation: - Create a new web service. - Choose Docker as the runtime environment. - Set up your Docker environment by pulling the necessary images or creating a custom Dockerfile. - In your server’s settings to define environment variables or .env file, add: APITOKEN=yourbrightdataapitoken WEBUNLOCKERZONE=optionalzonename BROWSERZONE=optionalbrowserzonename - Use the following Docker command to run Supergateway: docker run -it --rm