Automated local business lead generation with Google Maps & GPT-4
Quick overview
Description
Quick overview Enter a business type and city to find publicly listed email addresses on local business websites. OpenAI generates neighborhood search terms, and n8n uses them to find websites through Google Maps and extract contact emails for outreach research. How it works Start with a search such as “plumbers in Los Angeles.” OpenAI turns it into neighborhood-specific queries, and n8n requests the Google Maps results for each query. The workflow extracts website links, filters out Google-owned URLs and other unwanted results, and visits the remaining sites. A JavaScript step scans each homepage for email addresses. The workflow filters empty results, removes duplicate addresses within each search, and outputs the email, search term, and location so you can trace each result back to its source query. Setup Find Local Business Emails with Google Maps, OpenAI, and n8n Quick overview Enter a business type and city to find publicly listed email addresses on local business websites. OpenAI generates neighborhood search terms, and n8n uses them to find websites through Google Maps and extract contact emails for outreach research. How it works Start with a search such as “plumbers in Los Angeles.” OpenAI turns it into neighborhood-specific queries, and n8n requests the Google Maps results for each query. The workflow extracts website links, filters out Google-owned URLs and other unwanted results, and visits the remaining sites. A JavaScript step scans each homepage for email addresses. The workflow filters empty results, removes duplicate addresses within each search, and outputs the email, search term, and location so you can trace each result back to its source query. Setup Import the workflow JSON into n8n and connect your OpenAI credential to the OpenAI Chat Model node. Open Edit Fields1 and set Business and City to your target, such as Plumbers and Los Angeles. For your first run, set Limit to one search query and Limit1 to a small number of websites. Run the manual trigger and inspect Edit Fields3 to see the resulting email, search term, and location. Before increasing the limits, check that a search with no usable links or emails advances to the next query. To keep the results, connect Google Sheets, Airtable, or your CRM after Edit Fields3. Use the email address as the unique key if you want to avoid duplicates across neighborhoods or later runs. Requirements n8n Cloud or a self-hosted n8n instance. An OpenAI API credential for generating search queries. Outbound internet access to Google Maps and the business websites. The supplied workflow uses n8n’s HTTP Request nodes directly. Zyte is optional if you choose to integrate it. Optional credentials for Google Sheets, Airtable, or your CRM if you want to save results there. Additional info The workflow finds addresses published on homepages. It does not verify mailbox deliverability, and it can miss addresses listed only on a contact page. If your lead list also needs the business name and website, add those fields to the final output before exporting. For help customizing this workflow, email info@shahrukhmajeed.com. Built by Shahrukh Majeed, n8n Verified Creator. Case studies and a free workflow diagnostic: https://www.shahrukhmajeed.com. An n8n automation workflow template by Shahrukh Majeed.
Community Metrics
Author
Shahrukh Majeed
Platform
web
Pricing model
free
Categories
- Automation
- AI
Tags
- n8n
- workflow
- http-request
- code
- basic-llm-chain
- openai-chat-model
- structured-output-parser
Capabilities
- 5 nodes
- 2,707 views