Skip to main content

Automated BBB lead generation with BrowserAct

Workflow preview

Automated BBB lead generation with BrowserAct preview
Open on n8n.io

Important notice

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

Overview

Automated BBB Lead Generation with BrowserAct


πŸš€ Overview

This workflow automates business data extraction, duplicate checking, and email outreach using BrowserAct, Google Sheets, Gmail, and Google Gemini AI β€” all inside n8n.

It’s designed for marketers, lead generation specialists, or automation developers who want to build a fully autonomous AI agent that finds businesses online, filters duplicates, and automatically sends personalized outreach emails.


🧩 Key Features

  • 🌐 BrowserAct Integration β€” Scrapes business data (name, phone, email, website, rating) from any target site.

  • πŸ€– AI Data Extraction Agent β€” Uses Google Gemini AI to clean, structure, and validate scraped data into standardized JSON.

  • πŸ“Š Google Sheets Sync β€”

    • Reads all existing records
    • Checks for duplicates
    • Appends new rows automatically
  • βœ‰οΈ Automated Gmail Outreach β€”

    • Validates email addresses
    • Sends outreach emails to valid leads
    • Logs each status (e.g., Successful, Duplicate, Pending - Invalid Email)
  • ⏳ Smart Delay Control β€” Uses Wait node to pause execution and respect email sending limits (max 2 emails per run).


πŸ› οΈ Included Nodes

Node Function
πŸ•“ Schedule Trigger Runs the workflow automatically on schedule
🌍 BrowserAct Scrapes or extracts business data
βš™οΈ If Node Checks scraping results before processing
🧠 AI Agent (Gemini) Extracts structured business info
πŸ’» Code (JavaScript) Cleans and parses AI output into usable JSON
πŸ“© AI Agent 2 (Gemini) Handles decision-making for email + sheet updates
πŸ“Š Google Sheets Tools Reads, appends, and manages lead data
πŸ“¨ Gmail Node Sends automated outreach emails
⏱️ Wait Node Adds delay to control workflow speed

🧾 How It Works

  1. Schedule Trigger starts the automation.

  2. BrowserAct fetches business listings based on defined keywords and location.

  3. AI Agent (Gemini) extracts business details (business_name, website_url, phone_number, email_address, rating).

  4. JavaScript Code Node parses the AI’s JSON response.

  5. AI Agent 2 (Gemini) decides:

    • If duplicate β†’ send message on your email address Duplicate data found
    • If invalid email β†’ marks as β€œPending - Invalid Email”
    • If valid email β†’ sends via Gmail + updates Google Sheet
  6. Final output returns structured statuses for each processed business.


πŸ–ΌοΈ Workflow Diagram

> * Schedule Trigger > * BrowserAct > * AI Agent (Gemini) > * JavaScript Code > * Gmail & Google Sheets tools

![Workflow Preview] Screenshot 20251128 040042.png


βš™οΈ Setup Instructions

  1. Connect your BrowserAct, Google Sheets, Gmail, and Google Gemini API credentials.
  2. Define search keywords and locations inside the BrowserAct node.
  3. Set your Google Sheet ID in the relevant nodes.
  4. Customize the Gmail message if needed.
  5. Activate the workflow and schedule it.

πŸ“€ Output Example

[
  {
    "business_name": "ABC Restaurant",
    "email_sent": "Successful"
  },
  {
    "business_name": "XYZ Foods",
    "email_sent": "Duplicate - Already Exist"
  },
  {
    "business_name": "Fresh Eats",
    "email_sent": "Pending - Invalid Email"
  }
]

πŸ‘¨β€πŸ’» Created by

Bakir Ali Automation & AI Workflow Creator β€” specialized in BrowserAct, Google AI (Gemini), and n8n-based automation systems.