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
Automate LinkedIn sourcing with n8n and GPT-4O-MINI

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

Learn how to Build this Workflow with AI:

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.


Automate LinkedIn sourcing with n8n and GPT-4O-MINI

Visit through Desktop to Interact with the Workflow.

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 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.