Skip to main content

Automated LinkedIn lead generation, scoring & communication with AI-Agent

Workflow preview

Workflow preview
100%
Automated LinkedIn lead generation, scoring & communication with AI-Agent preview
Open on n8n.io

Important notice

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

1. Workflow Overview

️ DISCLAIMER: This workflow uses the AnySite LinkedIn community node, which is only available on self hosted n8n instances. It will not work on ...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.googlesheets, n8n-nodes-base.splitinbatches, n8n-nodes-base.stickynote, n8n-nodes-hdw.hdwlinkedin, n8n-nodes-base.aggregate, n8n-nodes-base.splitout

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automated LinkedIn lead generation, scoring & communication with AI-Agent
Workflow name
Automated LinkedIn lead generation, scoring & communication with AI-Agent

⚠️ DISCLAIMER: This workflow uses the AnySite LinkedIn community node, which is only available on self-hosted n8n instances. It will not work on n8n.cloud.

Overview

This workflow automates the entire LinkedIn lead generation process from finding prospects that match your Ideal Customer Profile (ICP) to sending personalized messages. It uses AI to analyze lead data, score potential clients, and prioritize your outreach efforts.

Key Features

  • AI-Driven Lead Generation: Convert ICP descriptions into LinkedIn search parameters
  • Comprehensive Data Enrichment: Analyze company websites, LinkedIn posts, and news
  • Intelligent Lead Scoring: Prioritize leads based on AI analysis of intent signals
  • Automated Outreach: Connect with prospects and send personalized messages

Requirements

  1. Self-hosted n8n instance with the AnySite LinkedIn community node installed
  2. OpenAI API access (for GPT-4o)
  3. Google Sheets access
  4. AnySite API key (available at anysite.io)
  5. LinkedIn account

Setup Instructions

1. Install Required Nodes

  • Ensure the AnySite LinkedIn community node is installed on your n8n instance
  • Command: npm install n8n-nodes-hdw (or use this instruction)

2. Configure Credentials

  • OpenAI: Add your OpenAI API key
  • Google Sheets: Set up Google account access
  • AnySite LinkedIn: Configure your API key from AnySite.io

3. Set Up Google Sheet

  • Create a new Google Sheet with the following columns (or copy template):
    • Name, URN, URL, Headline, Location, Current company, Industry, etc.
    • The workflow will populate these columns automatically

4. Customize Your ICP

  • Use chat to provide the AI Agent with your Ideal Customer Profile
  • Example: "Target marketing directors at SaaS companies with 50-200 employees"

5. Adjust Scoring Criteria

  • Modify the lead scoring prompt in the "Company Score Analysis" node to match your specific product/service
  • Tune the evaluation criteria based on your unique business needs

6. Configure Message Templates

  • Update the AnySite LinkedIn Send Message node with your custom message

How It Works

  1. ICP Translation: AI converts your ICP description into LinkedIn search parameters
  2. Lead Discovery: Workflow searches LinkedIn using these parameters
  3. Data Collection: Results are saved to Google Sheets
  4. Enrichment: System collects additional data about each lead:
    • Company website analysis
    • Lead's LinkedIn posts
    • Company's LinkedIn posts
    • Recent company news
  5. Intent Analysis: AI analyzes all data to identify buying signals
  6. Lead Scoring: Leads are scored on a 1-10 scale based on likelihood of interest
  7. Connection Requests: Top-scoring leads receive connection requests
  8. Follow-Up: When connections are accepted, automated messages are sent

Customization

  • Search Parameters: Adjust the AI Agent prompt to refine your target audience
  • Scoring Criteria: Modify scoring prompts to highlight indicators relevant to your product
  • Message Content: Update message templates for personalized outreach
  • Schedule: Configure when connection requests and messages are sent

Rate Limits & Best Practices

  • LinkedIn has connection request limits (approximately 100-200 per week)
  • The workflow includes safeguards to avoid exceeding these limits
  • Consider spacing your outreach for better response rates

Note: Always use automation tools responsibly and in accordance with LinkedIn's terms of service.

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 - OpenAI Chat Model

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

Block 2 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 3 - Google Sheets2

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

Block 4 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 5 - Sticky Note

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

Block 6 - Sticky Note1

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

Block 7 - Sticky Note2

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

Block 8 - Sticky Note3

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

Block 9 - Sticky Note4

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

Block 10 - Sticky Note5

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

Block 11 - Sticky Note6

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

Block 12 - Sticky Note7

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

Block 13 - HDW LinkedIn SN

Type / Role
n8n-nodes-hdw.hdwLinkedin - hdwLinkedin
Config choices
Version 1

Block 14 - HDW Get Company Website

Type / Role
n8n-nodes-hdw.hdwLinkedin - hdwLinkedin
Config choices
Version 1

Block 15 - Google Sheets3

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

Block 16 - Loop Over Items1

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 17 - Google Sheets4

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

Block 18 - HDW Get User Posts

Type / Role
n8n-nodes-hdw.hdwLinkedin - hdwLinkedin
Config choices
Version 1

Block 19 - Aggregate

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

Block 20 - Loop Over Items2

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 21 - Google Sheets5

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

Block 22 - Google Sheets6

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

Block 23 - Aggregate1

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

Block 24 - Loop Over Items3

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Showing the first 24 of 96 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automated LinkedIn lead generation, scoring & communication with AI-Agent
Complexity advanced
Nodes 96
Categories Lead Generation, AI Summarization
Author Andrey
Published 08 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3490/3490.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 Automated LinkedIn lead generation, scoring & communication with AI-Agent do?

️ DISCLAIMER: This workflow uses the AnySite LinkedIn community node, which is only available on self hosted n8n instances. It will not work on ...

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.