Automate LinkedIn Profile Sourcing with n8n and GPT-4O-MINI

Discover how to automate sourcing LinkedIn profiles from job descriptions using n8n workflow with GPT-4O-MINI and Google Sheets integration. This automation converts natural language job inputs into Boolean search queries, scrapes Google search results, and compiles candidate URLs efficiently to save time and reduce manual errors.
chatTrigger
openAi
googleSheets
+5
Workflow Identifier: 1375
NODES in Use: chatTrigger, openAi, googleSheets, httpRequest, code, wait, if, stickyNote

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow takes a normal job description written in plain words and turns it into a search to find LinkedIn profiles.

It solves the problem of making hard Boolean search strings by hand and saves a lot of time.

The output is a Google Sheet with a list of LinkedIn profile URLs that match the job search.


Who should use this workflow

Anyone who needs to find candidates on LinkedIn fast without writing complex search queries.

Recruiters, HR teams, and tech firms looking for an easier way to gather candidate profiles will find this useful.


Tools and services used

  • n8n platform: for automation workflow execution.
  • OpenAI GPT-4O-MINI model: creates Boolean search strings from plain job descriptions.
  • Google Sheets: stores the collected LinkedIn profile URLs.
  • Google Search with authenticated cookies: runs the Boolean search queries and gets real-time results.
  • Chrome Cookie-Editor extension: extracts Google login cookies to avoid CAPTCHA and access Google Search reliably.
  • JavaScript code nodes: parse Google search result pages to pick out LinkedIn URLs.

How this workflow works

Inputs

The main input is a job description in natural language, typed into the Webhook node chat trigger.

This node listens for new messages from the user wanting to start a candidate search.

Processing steps

  • The job description is sent to the Generate a Boolean Search String node, running GPT-4O-MINI. It turns text into a Boolean string that finds LinkedIn profiles.
  • A new Google Sheet is created, named after the search parameters plus current time.
  • Columns are added to the Sheet including the ‘linkedin_url’ column.
  • The Google Search start page number is set to zero for pagination.
  • The Google Boolean Search HTTP request node runs the search with the Boolean string and cookie header for authentication.
  • The raw HTML result is parsed by a code node that extracts LinkedIn URLs. It cleans and removes duplicates from the URLs found.
  • The LinkedIn URLs are added to the Google Sheet in a clean format.
  • The pagination index increases by 10 to get next pages.
  • A condition checks if the number of pages searched is under 50. If under, the workflow waits 5 seconds then repeats the search for the next page.
  • If 50 results pages are done, the workflow stops.

Output

The final output is a Google Sheet filled with LinkedIn profile links matching the job description criteria.

The Sheet updates automatically as new pages of search results are added.


Beginner step-by-step: How to use this workflow in n8n

1. Download and import

  1. Click the Download button to get the workflow file.
  2. Inside the n8n editor, go to “Import from File” and load the workflow file.

2. Configure credentials

  1. Add your OpenAI API Key in the Generate a Boolean Search String node credentials. Get keys at platform.openai.com.
  2. Connect Google Sheets with OAuth2 credentials for editing spreadsheets.
  3. Paste your Google authentication cookie string in the Google Boolean Search node headers. Extract the cookie using the Chrome Cookie-Editor extension.

3. Adjust settings

  1. If needed, update sheet names, Google Sheet IDs, or columns inside their nodes for personalized data storage.

4. Test and activate

  1. Run the workflow manually first by sending a short job description in the chat trigger.
  2. Check the Google Sheet to confirm LinkedIn URLs are collected properly.
  3. Activate the workflow for ongoing real-time searches.

For continuous running without pauses, consider self-host n8n.


Inputs → Process → Outputs summary

  • Input: Job description text from chat trigger.
  • Process: Convert text to Boolean search → create spreadsheet → run Google Search with authentication → parse HTML → extract LinkedIn URLs → append to spreadsheet → loop through result pages.
  • Output: Google Sheet listing clean LinkedIn profile URLs for candidates.

Common issues and fixes

  • Too many requests error (HTTP 429) means Google blocked search due to speed. Fix by increasing wait time between search pages.
  • No LinkedIn URLs found usually means the search string is wrong or cookie invalid. Test Boolean string on Google manually and update cookie string.

Customization ideas

  • Adjust the maximum number of search result pages in the condition node to get more or fewer LinkedIn profiles.
  • Edit the OpenAI prompt to search on other social networks or include keywords.
  • Add more columns to the Google Sheet to store additional candidate info or metadata.
  • Change wait time between search requests to better avoid Google blocking.

Summary

✓ Converts plain job descriptions into Boolean search strings automatically.

✓ Collects LinkedIn profile links from authenticated Google Search pages.

✓ Saves the list in a Google Sheet named by search criteria and current time.

➔ Helps recruiters find candidates fast without manual search string writing.

Automates paging through Google results with delay to avoid blocking.


Frequently Asked Questions

The workflow uses the OpenAI GPT-4O-MINI model to turn a natural language job description into a Boolean search string designed to find LinkedIn profiles.
A Google cookie header string extracted from your logged-in Google account using the Chrome Cookie-Editor extension is required to authenticate search requests.
Yes, by changing the maximum page number in the workflow’s condition node, the number of Google search pages to process can be adjusted.
Yes, the workflow creates a new Google Sheet named after the search criteria and adds a column for LinkedIn URLs before appending results.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free