Skip to main content

AI agent: Find the right LinkedIn profiles in seconds

Workflow preview

Workflow preview
100%
AI agent: Find the right LinkedIn profiles in seconds preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Automate LinkedIn Prospecting with AI Agent and Get Results Straight to Google Sheets! A practical AI powered workflow that helps you find relevant LinkedIn profiles using natural language queries ...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.toolworkflow, n8n-nodes-base.executeworkflowtrigger, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.set

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
AI agent: Find the right LinkedIn profiles in seconds
Workflow name
AI agent: Find the right LinkedIn profiles in seconds

Automate LinkedIn Prospecting with AI Agent and Get Results Straight to Google Sheets!

A practical AI-powered workflow that helps you find relevant LinkedIn profiles using natural language queries and saves the results automatically to Google Sheets.

🎯 What It Actually Does

  • Accepts natural language requests (e.g., "Find marketing managers in Paris")
  • Uses AI to extract search parameters:
    • Job titles
    • Industry
    • Location
  • Searches for matching LinkedIn profiles
  • Saves profile URLs and titles to Google Sheets

🛠️ Technical Components

  1. AI Query Processor

    • Converts natural language to structured search parameters
    • Handles various input formats and languages
    • Maintains context for accurate parameter extraction
  2. Search Engine Integration

    • Uses Google Custom Search API
    • Handles pagination for multiple results
    • Filters for actual LinkedIn profile URLs
  3. Data Storage

    • Automatically saves to Google Sheets
    • Stores profile titles and URLs
    • Easy to access and export

đź“‹ Prerequisites

  • OpenAI API key
  • Google Custom Search API credentials
  • Google Sheets access

đź’ˇ Adaptation Possibilities

This template can be modified to scrape other websites by:

  • Changing the search domain in the HTTP Request node
  • Adjusting the URL filter in the Code node
  • Modifying the column structure in Google Sheets
  • Updating the AI prompt for different parameter extraction

Example adaptations:

  • Twitter profile finder
  • GitHub repository search
  • Company website finder
  • Professional blog discovery

đź”§ Setup Instructions

  1. API Setup

    • Configure Google Custom Search API
    • Set up OpenAI API
    • Prepare Google Sheets
  2. Workflow Configuration

    • Import both workflows
    • Connect your API credentials
    • Set up your Google Sheet
    • Test with a sample query

📝 Usage Example

Input: "Find software developers in London working in fintech" Output: A Google Sheet containing:

  • LinkedIn profile URLs of software developers
  • Profile titles/headlines
  • Ready for your review and outreach

#AIAgent #WebScraping #Automation #n8n #Workflow #LinkedInProspecting

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 - When chat message received

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

Block 2 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 3 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 4 - Window Buffer Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 5 - Call n8n Workflow Tool

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 1.3

Block 6 - Execute Workflow Trigger

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

Block 7 - OpenAI

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

Block 8 - Set Search Page Numbers

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Split Search Pages

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

Block 10 - Google Custom Search API Request

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

Block 11 - Filter LinkedIn Profiles

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

Block 12 - Save to Google Sheets

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

Block 13 - Sticky Note

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

Block 14 - Sticky Note1

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

Block 15 - Sticky Note2

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

3. Summary Table

Workflow AI agent: Find the right LinkedIn profiles in seconds
Complexity advanced
Nodes 15
Categories Lead Generation, AI Summarization
Author Badr
Published 13 Feb 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2898/2898.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 AI agent: Find the right LinkedIn profiles in seconds do?

Automate LinkedIn Prospecting with AI Agent and Get Results Straight to Google Sheets! A practical AI powered workflow that helps you find relevant LinkedIn profiles using natural language queries ...

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 Lead Generation, AI Summarization use case.