Automated AI Lead Generation System by Ali E.Automated AI Lead Generation System by Ali E.

Automated AI Lead Generation System

Ali E.

Ali E.

Overview Finding qualified business leads is time-consuming by nature. Searching Google Maps, cross-referencing results, pulling contact details, and logging everything into a spreadsheet is the kind of work that eats hours without producing anything strategic. This AI agent does all of it on command, through a chat interface.
How It Works The workflow is triggered by a message. The user describes what they are looking for, such as a type of business and a target location, and the AI Agent takes it from there. It queries the Google Maps engine through SerpAPI, retrieves the relevant business listings, and a custom JavaScript node processes the results to extract each lead's name, address, rating, and other available details. Everything gets appended automatically to a Google Sheet.
The agent also has persistent memory, meaning it can handle follow-up instructions and refine searches within the same session. The system prompt defines the agent's role, the tools it has access to, and the rules it operates within, so it behaves predictably and stays on task.
Tech Stack Built in n8n using a chat trigger, an AI Agent node with tool use, SerpAPI for Google Maps data, a custom JavaScript node for parsing, and Google Sheets for storage.
The Result Sales teams and outreach operations get a repeatable, fast way to build targeted lead lists without any manual research involved.
Like this project

Posted Mar 20, 2026

Developed an AI automation for lead generation using Google Maps API, custom code, and Google Sheets.