Automate LinkedIn Profile Collection with n8n and SerpAPI

This workflow automates collecting LinkedIn profiles by performing Google searches via SerpAPI, extracting relevant data, and saving it to Excel and NocoDB. It solves the tedious manual task of gathering targeted LinkedIn leads based on keywords and locations efficiently.
manualTrigger
httpRequest
openAi
+6
Workflow Identifier: 1943
NODES in Use: Manual Trigger, HTTP Request, Set, SplitOut, OpenAI, Merge, ConvertToFile, NocoDB, Sticky Note
Automate LinkedIn profiles with n8n and SerpAPI

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow finds LinkedIn profiles based on keywords and location using Google search through SerpAPI.
It cleans data like follower counts and extracts company names with OpenAI.
Then, it saves the data in an Excel file and NocoDB for easy use.
This helps avoid manual searching errors and saves time spent on lead finding.


Who Should Use This Workflow

If you want to get LinkedIn leads quickly and avoid hunting manually, this workflow fits well.
It is good for sales reps or marketers who need clean profile data with follower info and company details.


Tools and Services Used

  • n8n Automation Platform: Runs the workflow and connects all nodes.
  • SerpAPI: Searches Google with filters to get LinkedIn profiles.
  • OpenAI: Extracts company names and turns follower counts into numbers.
  • NocoDB: Stores the final clean data in a database table.
  • Excel Node: Converts data into an Excel file for download.

Beginner Step-by-Step: How to Build This in n8n

Step 1: Download and Import Workflow

  1. Click the Download button on this page to get the workflow JSON file.
  2. Open your n8n editor (cloud or self-host n8n on server).
  3. Go to Workflows > Import from File in n8n and select the downloaded JSON file.

Step 2: Add Credentials

  1. Find the Google search w/ SerpAPI node and add your SerpAPI API Key in credential settings.
  2. Locate the Company name & followers node and input your OpenAI API Key and select OpenAI model (e.g., GPT-4o).
  3. Fill NocoDB credentials and specify the database table ID in the Store data in a NocoDB table node.

Step 3: Update Search Parameters

  1. Open the Search parameter node.
  2. Set the Keyword to your target term (e.g., “nocode”).
  3. Set Location to target area (e.g., “Germany”).
  4. Adjust Number of search results if needed.

Step 4: Test and Activate

  1. Run the workflow once manually inside n8n to check for errors and see output.
  2. If all works fine, activate the workflow using the toggle switch.
  3. Use manual or scheduled trigger to run it in production.

Workflow Inputs, Processing, and Outputs

Inputs

  • Keyword for search (e.g., “nocode”).
  • Location to filter profiles (e.g., “Germany”).
  • Number of Google search results to retrieve.

Processing Steps

  • Use SerpAPI to get Google search results restricted to LinkedIn profiles.
  • Split each search result into individual profile items.
  • Keep only important fields like LinkedIn name, URL, snippet, and follower count.
  • Use OpenAI to clean follower counts to numbers and pull company names from snippets.
  • Drop unnecessary data and merge AI results with profile info.

Outputs

  • Downloadable Excel file with cleaned LinkedIn profile data.
  • Entries stored in NocoDB table for database access and future use.

Customization Ideas

  • Change keywords or locations in the Search parameter node to find different leads.
  • Switch OpenAI model in Company name & followers to balance cost and accuracy.
  • Export data as CSV by updating the LinkedIn profiles in Excel for download node’s file type.
  • Remove NocoDB node if no database storage is wanted.
  • Increase the number of search results to gather more profiles per run.

Edge Cases and Troubleshooting

  • No search results from SerpAPI:
    Check SerpAPI API key correctness and quota availability.
  • OpenAI errors or no data processed:
    Confirm OpenAI API key is valid and prompt is set well.
  • Excel download fails or button missing:
    Make sure the workflow finished running fully; download is manual.

Pre-Production Checklist

  • Verify all API keys for SerpAPI, OpenAI, and NocoDB are correct.
  • Test a manual execution to confirm nodes return expected data.
  • Ensure NocoDB fields match the data fields sent by the workflow.
  • Back up NocoDB data before first inserts to avoid accidental loss.
  • Review workflow and activate only after successful testing.

Deployment Guide

After setup and tests, activate the workflow in n8n by switching it on.
Run the workflow manually to fetch LinkedIn profiles on demand.
Schedule periodic runs with a Cron Trigger if ongoing lead updates are needed.
Monitor execution logs on the n8n dashboard for errors.
Download Excel reports anytime from the workflow’s Excel node.
Manage profile leads in the NocoDB table with a UI or API.


Summary

✓ The workflow gets LinkedIn profiles by keyword and location from Google searches.
✓ It cleans follower counts and retrieves company names using OpenAI.
✓ Results save as Excel file and in NocoDB for easy review or further use.
✓ Time spent looking for leads manually goes down a lot.
✓ Data quality rises with less manual mistakes.

Automate LinkedIn profiles with n8n and SerpAPI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Check if the SerpAPI API key is correct and if the account has enough quota. Test SerpAPI requests outside the workflow to confirm connection.
Verify OpenAI API key validity and ensure the selected model and prompt are set correctly in the node configuration.
Download the workflow JSON file, import it in n8n using ‘Import from File’, add all API credentials such as SerpAPI and OpenAI keys, and test the workflow once before activating.
Yes, change the file format option in the Excel node from ‘xlsx’ to ‘csv’ to export data as CSV files.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.