Google Maps Lead Scraper & AI Enrichment Agent Setup Guide
What This Agent Does
This powerful automation agent transforms your lead generation process by automatically scraping business data from Google Maps, enriching it with AI-powered insights, and delivering qualified leads directly to your Google Sheets. In just minutes, you can identify high-potential prospects with actionable intelligence—eliminating hours of manual research and data entry.
Key benefits and time savings:
-
Automate lead discovery: Scrape unlimited business listings from Google Maps based on your search criteria
-
AI-powered enrichment: Leverage Google's Gemini AI to analyze each business and generate actionable insights automatically
-
Smart lead qualification: Automatically filter leads with quality scores of 7 or higher, saving you time on unqualified prospects
-
Seamless data organization: All leads flow directly into Google Sheets with enrichment data and outreach templates pre-populated
-
Time savings: Reduce manual research from hours to minutes—process hundreds of leads in the time it takes to research one manually
Target use cases:
- B2B sales prospecting and lead generation
- Local business outreach campaigns
- Market research and competitive analysis
- Real estate agent prospecting
- Service-based business expansion into new markets
- Partnership and collaboration identification
Who Is It For
This agent is ideal for sales professionals, business development teams, marketing agencies, and entrepreneurs who need to:
- Generate qualified leads at scale without manual research
- Qualify prospects before outreach to improve conversion rates
- Maintain organized, enriched lead databases automatically
- Launch targeted outreach campaigns with pre-written, personalized messaging
- Save time on repetitive data collection and analysis tasks
Whether you're a solo entrepreneur or managing a sales team, this workflow eliminates the busywork and lets you focus on closing deals.
Required Integrations
Google Gemini AI
Why it's needed: This integration powers the intelligent analysis of each business lead. Gemini AI examines business information and generates actionable insights, competitive positioning analysis, and personalized outreach angles—transforming raw data into strategic intelligence.
Setup steps:
- Visit Google AI Studio and sign in with your Google account
- Click "Create API Key" and select your project (or create a new one)
- Copy your API key to a secure location
- In TaskAGI, navigate to Integrations → Google Gemini
- Click "Connect" and paste your API key
- Click "Verify" to confirm the connection
- You'll see confirmation: "Google Gemini connected successfully"
How to obtain API keys/credentials:
- Free tier available with generous rate limits (60 requests per minute)
- No credit card required for initial setup
- Upgrade to paid tier if you exceed free limits
- API key is immediately active upon creation
Configuration in TaskAGI:
- The agent uses Gemini 2.5 Flash model (fastest, most cost-effective)
- Pre-configured prompt analyzes business viability, market opportunity, and outreach strategy
- Responses are automatically parsed and merged with lead data
Google Sheets
Why it's needed: Google Sheets serves as your centralized lead database and CRM. All scraped leads, enrichment data, and outreach templates are automatically appended to your sheet, creating a living, organized prospect list.
Setup steps:
- Create a new Google Sheet or open an existing one
- Set up column headers in Row 1:
-
Business Name | Address | Phone | Website | AI Insights | Quality Score | Outreach Email | Date Added
- Right-click on the sheet tab and select "Share"
- Click "Share" and set permissions to "Anyone with the link can edit" (or restrict to your domain)
- Copy the full sheet URL (example:
https://docs.google.com/spreadsheets/d/1a2b3c4d5e6f7g8h9i0j/edit)
- In TaskAGI, navigate to Integrations → Google Sheets
- Click "Connect" and authenticate with your Google account
- Grant TaskAGI permission to access your sheets
- Paste your sheet URL in the configuration fields marked
YOUR_GOOGLE_SHEET_URL
How to obtain API keys/credentials:
- No API key needed—authentication is handled through OAuth
- Uses your existing Google account permissions
- Automatically refreshes credentials (no manual renewal required)
Configuration in TaskAGI:
- Two nodes append data: one for all leads, one for hot leads only
- Ensure both nodes reference the same sheet URL for consistency
- The workflow automatically creates new rows without overwriting existing data
Configuration Steps
Step 1: Define Your Search Parameters
Node: "Set Search Parameters"
This node establishes what businesses you're looking for. Configure:
-
Search Query: Enter your target (example:
"plumbers in Austin, TX" or "SaaS companies in San Francisco")
-
Location: Specify geographic area for local searches
-
Business Type: Define industry or category filters
-
Radius: Set search radius in miles (10-50 recommended for local searches)
Example configuration:
Search Query: "digital marketing agencies in Denver"
Location: Denver, Colorado
Radius: 15 miles
Step 2: Configure Google Maps Scraping
Node: "Scrape Google Maps (Decodo API)"
This node executes the actual data collection. The HTTP request is pre-configured to:
- Target Google Maps as the data source
- Pull your search parameters from Step 1
- Extract business name, address, phone, website, and ratings
- Return structured JSON data for processing
No manual configuration needed—this node automatically uses your search parameters from the previous step.
Step 3: Set Up AI Enrichment
Node: "Enrich Lead with Gemini AI"
This node analyzes each lead using Gemini AI. The pre-configured prompt:
- Evaluates business viability and market opportunity
- Identifies competitive advantages and positioning
- Generates personalized outreach angles
- Assigns a quality score (1-10) based on fit and opportunity
Optional customization: Edit the prompt to focus on specific criteria relevant to your business (example: company size, technology stack, growth stage).
Step 4: Configure Lead Filtering
Node: "Filter Hot Leads (Score >= 7)"
This conditional node automatically separates high-quality leads:
-
Leads scoring 7+: Route to outreach email generation and hot leads sheet
-
Leads scoring below 7: Save to main sheet for future follow-up
Customize the threshold: Change >= 7 to >= 6 or >= 8 depending on your qualification standards.
Step 5: Connect Your Google Sheets
Nodes: "Save Lead to Google Sheets" and "Update Sheet with Outreach"
Both nodes require your sheet URL:
- Locate your Google Sheet URL in the browser address bar
- Copy the full URL:
https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/edit
- Paste into both nodes where indicated
- Verify column order matches your sheet headers
Testing Your Agent
Step 1: Execute a Test Run
- Click "Run Workflow" in TaskAGI
- The manual trigger will prompt you to start execution
- Click "Execute" to begin the test
Step 2: Verify Each Processing Stage
Check Node 5 (Google Maps Scrape):
- Verify results show 5-20 business listings
- Confirm data includes name, address, phone, website
- Look for any error messages indicating API issues
Check Node 8 (AI Enrichment Loop):
- Confirm the loop processes each lead sequentially
- Verify AI insights appear in the output (2-3 sentences per lead)
- Check that quality scores range from 1-10
Check Node 13 (Lead Filtering):
- Confirm hot leads (score 7+) route to outreach generation
- Verify lower-scoring leads still save to sheets for future use
Check Nodes 12 & 15 (Google Sheets Output):
- Open your Google Sheet and refresh
- Verify new rows appear with complete data
- Confirm enrichment data and outreach emails populated correctly
Step 3: Expected Results and Success Indicators
✅ Successful execution shows:
- 5-20 new leads in your Google Sheets
- Each lead has AI insights and quality score
- Hot leads (7+) have pre-written outreach emails
- No error messages in the workflow log
- Execution completes in 2-5 minutes depending on lead volume
✅ Data quality checks:
- Business names are accurate and complete
- Phone numbers and websites are valid
- AI insights are relevant and actionable
- Quality scores reflect business fit realistically
Troubleshooting tips:
- If no results appear, verify your search query is specific enough
- If Google Sheets doesn't update, confirm sheet URL is correct and sharing is enabled
- If AI enrichment fails, check that Google Gemini integration is verified
You're ready to launch! Run your first test, verify the results, and start generating qualified leads automatically. This agent will transform your prospecting process—enjoy the time savings and improved lead quality!