Lead Generation · Recruiters / Talent Sourcers

AI Agent for Collecting LinkedIn Profiles with SerpAPI Google Search and Sheets

Monitors input keywords, creates batched Google-page queries via SerpAPI, checks results, logs profiles to Google Sheets, and notifies you when complete.

How it works
1 Step
Input & Trigger
2 Step
Query & Paginate
3 Step
Extract & Log
User submits keywords and pages via a form to trigger the AI agent.

Overview

End-to-end LinkedIn profile collection powered by SerpAPI and Sheets.

From keyword input to final logging, the AI agent fetches public LinkedIn profiles from Google search results across multiple pages, extracts profile URLs and full names, and logs them with the original keywords into Google Sheets. It searches across multiple pages, formats queries, and handles pagination to ensure a complete dataset. It notifies you when the run is finished and provides an auditable trail for outreach campaigns.


Capabilities

What LinkedIn Profiles Collector does

Automates end-to-end collection and logging of LinkedIn profiles from Google search results.

01

Accepts keywords and page count via a user form.

02

Formats keywords into Google-ready queries for better relevance.

03

Builds a batched list of pages to process.

04

Queries SerpAPI for each page with site:linkedin.com/in and a location filter.

05

Parses results and handles no-results scenarios gracefully.

06

Appends results to Google Sheets with Date, Profile URL, Full name, and Keywords.

Why you should use LinkedIn Profiles Collector

Before: manual LinkedIn profile gathering is slow, inconsistent, and hard to audit. After: automated multi-page searches reliably log results to Sheets, with date and keyword metadata and a clear completion signal.

Before
Manual searches miss pages beyond the first results.
Extraction of profiles and names is inconsistent.
Tracking which keywords produced which results is difficult.
Profiles are not stored in a central, auditable place.
There is no automated completion notification.
After
Multi-page results are scraped automatically.
Profiles are logged with Date, Profile URL, Full name, and Keywords.
Search results stay associated to their keywords for auditing.
Duplicates are minimized through structured logging.
A completion notification confirms the run finished.
Process

How it works

A simple 3-step flow that non-technical readers can follow.

Step 01

Input & Trigger

User submits keywords and pages via a form to trigger the AI agent.

Step 02

Query & Paginate

Formats the keywords, creates a paginated page list, and runs SerpAPI per batch.

Step 03

Extract & Log

Parses results, extracts full names, and appends data to Google Sheets before finishing.


Example

Example workflow

One realistic scenario.

A recruiter wants to source Java developers in Warsaw. They enter keywords 'Java' and 'Warsaw' with Pages to fetch set to 2. The AI agent runs, collects approximately 20 profiles across two Google result pages, and writes Date, Profile URL, Full name, and Keywords to the connected Google Sheet. The sheet now contains an auditable list that can be used for outreach and tracking.

Lead Generation SerpAPIGoogle Sheets AI Agent flow

Audience

Who can benefit

Roles that gain from automated LinkedIn profile collection.

✍️ Recruiters

To quickly source candidate pipelines from public profiles.

💼 Talent Sourcing Specialists

To expand regional talent pools with keyword-based searches.

🧠 SDRs

To identify targeted leads for outreach from public profiles.

Hiring Managers

To validate the presence of suitable public profiles for open roles.

🎯 HR Analysts

To assemble data for sourcing metrics and impact analysis.

📋 Freelance Recruiters

To deliver client-ready lists quickly with traceable data.

Integrations

Core tools used inside the AI agent workflow.

SerpAPI

Queries Google with site:linkedin.com/in, keyword groups, and location; uses start offsets for paging.

Google Sheets

Appends rows with Date, Profile URL, Full name, and Keywords for each result batch.

Applications

Best use cases

Practical scenarios to apply the AI agent for sourcing and outreach.

Source LinkedIn profiles for recruiters across multiple regions.
Build comprehensive candidate pools from public profiles using keyword targeting.
Automate multi-page LinkedIn search logging into a centralized Sheet.
Maintain auditable outreach lists with timestamps and keyword context.
Deduplicate results and track provenance by keywords.
Support quick onboarding of new search regions or roles with minimal setup.

FAQ

FAQ

Practical, real concerns answered.

The agent captures the Date, Public LinkedIn Profile URL, Full name, and the original Keywords. This data is written to your configured Google Sheet, row by row, with each batch appended sequentially. The process maintains an auditable trail by recording the run timestamp and the keywords that produced each result. You can expand the sheet to include optional fields as needed and manage access permissions through Google Sheets settings.

Yes. You can adjust the location parameter in SerpAPI and change the keywords in the input form. The agent supports multiple keywords per run and can paginate across several Google search result pages. If you need other regions, you can modify the location field to reflect the desired area. Changes are applied on the next run, keeping your existing data intact.

Pagination creates successive search batches by adjusting the start offset (e.g., 0, 10, 20) so results from multiple Google pages are retrieved. Each batch is processed in sequence, ensuring comprehensive coverage of the specified pages. If a batch yields no results, that branch stops gracefully and logs the outcome. The final completion notification confirms when all pages have been processed.

The agent writes results to a single Google Sheet with clear per-run metadata. To prevent duplicates, you can add a de-duplication step in Sheets or implement a pre-check in the workflow to skip URLs that already exist. The base flow records the run and results, making it straightforward to identify and remove duplicates if needed. Regular audits help maintain data quality over time.

If a batch returns no results, the agent logs an entry indicating no profiles were found for that batch and continues with any remaining batches. The final notification still triggers to confirm the overall run status. This behavior prevents stalls and keeps you informed about data availability. You can set up alerts for no-result cases to trigger follow-up actions.

The agent relies on public LinkedIn profiles surfaced through Google search. It does not access restricted data. Always respect platform terms of service and local privacy laws when using collected data for outreach. Use the data responsibly, limit distribution, and avoid scraping sensitive information. Maintain an auditable log to demonstrate compliant usage and intentions.

Import the agent template into your n8n instance, connect SerpAPI and Google Sheets credentials, and point the sheet node to your target spreadsheet. Configure the form to supply keywords and the number of pages to fetch, then activate the AI agent. You can test with a small set of keywords to verify formatting and data mapping before broader use. Ensure your Google Sheet has the correct headers and permissions for writes.


AI Agent for Collecting LinkedIn Profiles with SerpAPI Google Search and Sheets

Monitors input keywords, creates batched Google-page queries via SerpAPI, checks results, logs profiles to Google Sheets, and notifies you when complete.

Use this template → Read the docs