Skip to main content

Automate LinkedIn candidates sourcing with Google X-ray Boolean search

Workflow preview

Workflow preview
100%
Automate LinkedIn candidates sourcing with Google X-ray Boolean search preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Auto Source LinkedIn Candidates with GPT 4 Boolean Search & Google X ray How It Works: 1. User Input: The user pastes a job description or ideal candidate specifications into the workflow. 2. Boole...

Best for

  • HR automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.wait, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets, n8n-nodes-base.code, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Abdullah Maftah.

Original n8n.io source

1.1 Workflow description

Title
Automate LinkedIn candidates sourcing with Google X-ray Boolean search
Workflow name
Automate LinkedIn candidates sourcing with Google X-ray Boolean search

Auto Source LinkedIn Candidates with GPT-4 Boolean Search & Google X-ray

How It Works:

  1. User Input:

    • The user pastes a job description or ideal candidate specifications into the workflow.
  2. Boolean Search String Generation:

    • OpenAI processes the input and generates a precise LinkedIn Boolean search string formatted as:
      site:linkedin.com/in ("Job Title" AND "Skill1" AND "Skill2")
    • This search string is optimized to find relevant LinkedIn profiles matching the provided criteria.
  3. Google Sheet Creation:

    • A new Google Sheet is automatically created within a specified document to store extracted LinkedIn profile URLs.
  4. Google Search Execution:

    • The workflow sends a search request to Google using an HTTP node with the generated Boolean string.
  5. Iterative Search & Data Extraction:

    • The workflow retrieves the first 10 results from Google.
    • If the desired number of LinkedIn profiles has not been reached, the workflow loops, fetching the next set of 10 results until the if condition is met.
  6. Data Storage:

    • The workflow extracts LinkedIn profile URLs from the search results and saves them to the newly created Google Sheet for further review.

Setup Steps:

1. API Key Configuration

  • Under "Credentials", add your OpenAI API key from your OpenAI account settings.
  • This key is used to generate the LinkedIn Boolean search string.

2. Adjust Search Parameters

  • Navigate to the "If" node and update the condition to define the desired number of LinkedIn profiles to extract.
  • The default is 50, but you can set it to any number based on your needs.

3. Establish Google Sheets Connection

  • Connect your Google Sheets account to the workflow.
  • Create a document to store the sourced LinkedIn profiles.
  • The workflow automatically creates a new sheet for each new search, so no manual setup is needed.

4. Authenticate Google Search

  • Google search requires authentication for better results.
  • Use the Cookie-Editor browser extension to export your header string and enable authenticated Google searches within the workflow.

5. Run the Workflow

  • Execute the workflow and monitor the Google Sheet for newly added LinkedIn profiles.

Benefits:

Automates profile sourcing, reducing manual search time.
Generates precise LinkedIn Boolean search strings tailored to job descriptions.
Extracts and saves LinkedIn profiles efficiently for recruitment efforts.

This solution leverages OpenAI and advanced search techniques to enhance your talent sourcing process, making it faster and more accurate! 🚀

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 2 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 3 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Create a new sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 10 - Add columns to new sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 11 - set page number for google search

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Extracts all linkedin urls from the google http response

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Google Boolean Search

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 14 - Generate a Boolean Search String

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 15 - If desired results not reached

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 16 - Appends the results to the sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 17 - Adds 10 to start - Go to next page

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - Columns to add

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

3. Summary Table

Workflow Automate LinkedIn candidates sourcing with Google X-ray Boolean search
Complexity advanced
Nodes 18
Categories HR, Multimodal AI
Author Abdullah Maftah
Published 21 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3259/3259.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate LinkedIn candidates sourcing with Google X-ray Boolean search do?

Auto Source LinkedIn Candidates with GPT 4 Boolean Search & Google X ray How It Works: 1. User Input: The user pastes a job description or ideal candidate specifications into the workflow. 2. Boole...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your HR, Multimodal AI use case.