Generate and score Google Maps leads with Gemini, Apify, and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs when a chat message arrives. Along the way it connects Google Sheets. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: When a chat message arrives.
- Parse Search Intent (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Set Search Parameters (Edit Fields (Set)): sets 4 fields: business_type, location, max_results…
- Scrape Google Maps via Apify (HTTP Request): calls an HTTP API (POST)
- Select Lead Fields (Edit Fields (Set)): sets 10 fields: placeId, title, category…
- Deduplicate by Place ID (Remove Duplicates): removes duplicate items
- Merge Scraped Leads (Aggregate): combines items into one
- Score and Rank Leads (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Prepare Scored Leads (Edit Fields (Set)): sets 1 field: leads
- Split Leads Array (Split Out): splits a list into separate items
- Read Leads from Sheet (Google Sheets): uses Google Sheets
…plus 5 more steps. See the full node list below.
Services it uses
HTTP calls to: generativelanguage.googleapis.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Remove Duplicates
n8n-nodes-base.removeDuplicates - Aggregate
n8n-nodes-base.aggregate - Split Out
n8n-nodes-base.splitOut - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code
From the author
Quick overview Youtube Video:https://youtu.be/NGruDecKxAg?si=ot9pj6IN4IoLstow This workflow takes a chat-based search request, scrapes matching businesses from Google Maps using Apify, scores and ranks them with Google Gemini, deduplicates against an existing…