Generate Google Maps lead lists with SerpApi, Google Gemini and Sheets
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs when someone submits an n8n form (“Búscador de Negocios”). Along the way it connects Google Gemini Chat Model and Google Sheets.
How it runs
Trigger: When someone submits an n8n form (“Búscador de Negocios”).
- Fetch Google Maps Data (SerpApi) (HTTP Request): calls an HTTP API
- Extract Business List (Split Out): splits a list into separate items
- Filter: keeps only the items that match a condition
- Prioritize Low-Rating Leads (Sort): sorts the items
- Select Top 5 Critical Cases (Limit): keeps the first few items
- Batch Leads for AI Processing (Aggregate): combines items into one
- Market Intelligence Strategy Agent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model
- Clean AI Raw Response (Edit Fields (Set)): sets 1 field: datos_limpios
- Parse AI Output to JSON (Code): runs custom JavaScript code
- Final Data Formatting (Edit Fields (Set)): sets 2 fields: Estado, Fecha_Procesamiento
…plus 1 more step. See the full node list below.
Services it uses
Other Google Gemini + Google Sheets templates (819) · Other SerpApi + Google Sheets templates (62) · Other Google Gemini + SerpApi templates (19)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - n8n Form Trigger
n8n-nodes-base.formTrigger - HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Filter
n8n-nodes-base.filter - Sort
n8n-nodes-base.sort - Limit
n8n-nodes-base.limit - Aggregate
n8n-nodes-base.aggregate - AI Agent
@n8n/n8n-nodes-langchain.agent - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets
From the author
This workflow automates the process of identifying local businesses with a weak digital presence to offer them specialized marketing services. By combining real-time data from Google Maps with the analytical power of Gemini AI, it transforms raw search…