Built an end-to-end n8n automation that transforms a simple form submission into a fully-populated Google Spreadsheet with 100 qualified LinkedIn leads in under 20 minutes. The workflow integrates Google Custom Search API to find targeted LinkedIn profiles based on position, country, and industry criteria, implements intelligent pagination to handle API limits, extracts key profile data (name, title, URL, snippet, image), and leverages OpenAI GPT-4.1 or Google Gemini to generate personalized cold outreach opening lines using the ACA method for each prospect. Complete with rate limiting, batch processing, and real-time spreadsheet updates—saving 3-4 hours of manual work per campaign while delivering consistent, AI-powered personalization at scale.
Finding and reaching out to qualified leads on LinkedIn is time-consuming and repetitive. Sales teams and business owners spend hours manually searching for prospects, copying information into spreadsheets, and crafting personalized messages. This process is not only tedious but also inconsistent and difficult to scale.
I built an end-to-end automation workflow using n8n that transforms a simple form submission into a fully populated Google Spreadsheet with 100 qualified LinkedIn leads, complete with AI-generated, personalized opening lines for cold outreach.

The workflow begins when a user fills out a simple web form with their targeting criteria:
This makes the tool accessible to anyone on the team—no technical knowledge required.
Upon form submission, the system automatically:
The workflow leverages the Google Custom Search API to find relevant LinkedIn profiles:
One of the most sophisticated parts of this workflow is the pagination system:
Raw search results are processed to extract key information:
This is where the magic happens. For each lead, the workflow:
The AI model receives this instruction:
“Use this snippet to write a 2-line opening in a cold email using the method ACA, then mention that I run an AI automation agency, and ask him if he know someone who’s looking for XYZ, because I’m opening 5 slots to help people doing that at no cost. The output should be only the first line, no intros, no conclusions, no additional infos.”
To ensure stability and respect API limits:
As each lead is processed, the workflow:
Workflow Components:
✅ Zero Manual Work: From form to finished spreadsheet, completely hands-off
✅ Scalable: Handles up to 100 leads per run automatically
✅ Personalized: AI-generated opening lines for every prospect
✅ Flexible: Easy to modify targeting criteria for different campaigns
✅ Rate-Limited: Built-in delays prevent API throttling
✅ Error-Resistant: Includes fallback handling for empty results
✅ Real-Time Updates: See leads populate as they’re discovered
Time Saved: What would take 3-4 hours manually now takes 15-20 minutes
Consistency: Every lead gets the same quality of research and personalization
Scalability: Run multiple campaigns simultaneously without additional effort
Quality: AI-powered personalization increases response rates
Cost: Minimal API costs (Google Search + AI model tokens)
This automation is perfect for:
API Keys Required:
Limitations:
Potential improvements to this workflow:
This n8n automation demonstrates how multiple services can be orchestrated into a powerful lead generation system. By combining form inputs, API integrations, intelligent pagination, AI personalization, and spreadsheet automation, we’ve created a solution that delivers significant time savings and consistent quality.
The workflow exemplifies modern automation principles: modular design, error handling, rate limiting, and intelligent data processing. It’s a practical example of how businesses can leverage no-code tools to solve real problems and scale operations efficiently.