Skip to main content

Extract ICP-targeted LinkedIn leads from post comments using Apify

Workflow preview

Workflow preview
100%
Extract ICP-targeted LinkedIn leads from post comments using Apify preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This workflow automates the process of extracting and qualifying leads from LinkedIn post comments based on your Ideal Customer Profile (ICP) criteria. It turns LinkedIn engagement into a structure...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.code, n8n-nodes-base.splitinbatches, n8n-nodes-base.httprequest, n8n-nodes-base.aggregate, n8n-nodes-base.formtrigger, n8n-nodes-base.converttofile

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Extract ICP-targeted LinkedIn leads from post comments using Apify
Workflow name
Extract ICP-targeted LinkedIn leads from post comments using Apify

This workflow automates the process of extracting and qualifying leads from LinkedIn post comments based on your Ideal Customer Profile (ICP) criteria. It turns LinkedIn engagement into a structured, downloadable list of qualified leads—without manual review.


Who’s this for

  • Sales and business development teams generating outbound lead lists
  • Marketing teams running LinkedIn engagement campaigns
  • Recruiters sourcing candidates with specific job titles
  • Operators who want to convert LinkedIn comments into actionable data

What problem does this solve

Manually reviewing LinkedIn post comments to identify relevant prospects is slow, repetitive, and error-prone. This workflow automates the entire process—from scraping comments to enriching profiles and filtering by ICP—saving hours of manual work and ensuring consistent results.


What this workflow does

  1. Collects a LinkedIn post URL and ICP criteria via a form
  2. Scrapes post comments using Apify (supports up to 1,000 comments)
  3. Deduplicates commenters and enriches profiles with LinkedIn data
  4. Filters profiles by selected job titles and countries
  5. Exports matched leads as a downloadable CSV file

How to set up

  1. Create an Apify account and generate an API key
  2. Add your Apify credentials in n8n (Settings → Credentials → Apify API)
  3. Execute the workflow and submit a LinkedIn post URL and ICP criteria

Requirements

  • Apify account with API access - Apify offers a free tier with $5 in monthly credits, which is enough to test this workflow on smaller LinkedIn posts

How to customize the workflow

  • Update job titles and target countries in the Form Trigger
  • Increase pagination limits to support larger posts
  • Replace CSV export with a CRM, Google Sheets, or database integration

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 - Sticky Note - Section 1

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

Block 2 - Sticky Note - Section 2

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

Block 3 - Sticky Note - Section 3

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

Block 4 - Sticky Note - Section 4

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

Block 5 - Sticky Note - Warning

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

Block 6 - Prepare Pagination Requests

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

Block 7 - Loop Through Pages

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

Block 8 - Scrape LinkedIn Comments

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

Block 9 - Check for More Pages

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

Block 10 - Remove Duplicate Commenters

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

Block 11 - Enrich LinkedIn Profile

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

Block 12 - Filter by ICP Criteria

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

Block 13 - Aggregate Matched Leads

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

Block 14 - ICP Lead Extractor Form

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.4

Block 15 - Attach ICP Criteria to Profiles

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

Block 16 - Loop Through Profiles

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

Block 17 - Preserve ICP Criteria

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

Block 18 - Format Leads for CSV

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

Block 19 - Export to CSV

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

Block 20 - Sticky Note

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

3. Summary Table

Workflow Extract ICP-targeted LinkedIn leads from post comments using Apify
Complexity advanced
Nodes 20
Categories Lead Generation, AI Summarization
Author Kidlat
Published 11 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12642/12642.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 Extract ICP-targeted LinkedIn leads from post comments using Apify do?

This workflow automates the process of extracting and qualifying leads from LinkedIn post comments based on your Ideal Customer Profile (ICP) criteria. It turns LinkedIn engagement into a structure...

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.