Extract ICP-targeted LinkedIn leads from post comments using Apify
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs when someone submits an n8n form (“LinkedIn ICP Lead Extractor”). It uses only n8n's built-in nodes. It also calls api.apify.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“LinkedIn ICP Lead Extractor”).
- Prepare Pagination Requests (Code): runs custom JavaScript code
- Loop Through Pages (Loop Over Items (Split in Batches)): loops over the items in batches
- Remove Duplicate Commenters (Code): runs custom JavaScript code
- Scrape LinkedIn Comments (HTTP Request): calls api.apify.com (POST)
- Attach ICP Criteria to Profiles (Code): runs custom JavaScript code
- Check for More Pages (Code): runs custom JavaScript code
- Loop Through Profiles (Loop Over Items (Split in Batches)): loops over the items in batches
- Filter by ICP Criteria (Code): runs custom JavaScript code
- Enrich LinkedIn Profile (HTTP Request): calls api.apify.com (POST)
- Aggregate: combines items into one
…plus 3 more steps. See the full node list below.
HTTP calls to: api.apify.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Aggregate
n8n-nodes-base.aggregate - n8n Form Trigger
n8n-nodes-base.formTrigger - Convert to File
n8n-nodes-base.convertToFile
From the author
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.…