Skip to main content

Extract & enrich LinkedIn comments to leads with Apify → Google Sheets/CSV

Workflow preview

Workflow preview
100%
Extract & enrich LinkedIn comments to leads with Apify → Google Sheets/CSV preview
Open on n8n.io

Important notice

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

1. Workflow Overview

LinkedIn Comments to Leads Extractor & Enricher (Apify) → Google Sheets / CSV Overview Automate LinkedIn lead generation by scraping comments from targeted posts and enriching profiles with deta...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.set, n8n-nodes-base.if, n8n-nodes-base.code, n8n-nodes-base.splitout, n8n-nodes-base.aggregate

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Extract & enrich LinkedIn comments to leads with Apify → Google Sheets/CSV
Workflow name
Extract & enrich LinkedIn comments to leads with Apify → Google Sheets/CSV

🚀 LinkedIn Comments to Leads Extractor & Enricher (Apify) → Google Sheets / CSV

Overview

Automate LinkedIn lead generation by scraping comments from targeted posts and enriching profiles with detailed data

This n8n workflow automatically extracts leads from LinkedIn post comments using Apify's powerful scrapers (no LinkedIn login required), enriches the data with additional profile information, and exports everything to Google Sheets or CSV format.


✨ Key Features

  • 🔍 No Login Required: Scrape LinkedIn data without sharing credentials
  • 💰 Cost-Effective: First 1,000 comments are free with Apify
  • 📊 Data Enrichment: Enhance basic comment data with full profile details
  • 📈 Export Options: Choose between Google Sheets or CSV output
  • 🎯 Targeted Scraping: Focus on specific posts for quality leads

🛠️ Apify Scrapers Used

1. LinkedIn Post Comments Scraper

2. LinkedIn Profile Batch Scraper

> 💡 Free Tier: Apify provides 1,000 free scraped comments to get you started!


📋 Prerequisites

Required API Credentials

  1. Apify Token

  2. Google Sheets Credentials (if using Sheets export)


🔄 Workflow Process

Default Mode: Form-Based Execution

  1. Manual Trigger → Launches the workflow
  2. Form Submission → User-friendly form for inputting LinkedIn post URLs
  3. Comment Scraping → Apify extracts all comments from specified posts
  4. Profile Enrichment → Additional profile data gathered for each commenter
  5. Data Processing → Creates unique, enriched lead list
  6. Google Sheets Export → Automatically populates your spreadsheet

Result: You'll be redirected to a Google Sheets document containing all enriched leads

Alternative Mode: CSV Export

For users preferring CSV output:

  1. Disable: Form trigger nodes
  2. Enable: Manual trigger node
  3. Disable: Google Sheets export nodes
  4. Enable: CSV download nodes
  5. Configure: Add post IDs/URLs in "Set manual fields" node
  6. Execute: Run workflow and download CSV from the CSV node

📊 Output Data Structure

Your exported data will include:

  • Basic Info: Name, headline, location
  • Profile Details: Company, position, industry
  • Engagement Data: Comment content, engagement metrics
  • Contact Info: Available profile links and connections
  • Enriched Data: Additional profile insights from Apify

💡 Pro Tips

  • Quality over Quantity: Target posts with high-quality, relevant engagement
  • Monitor Costs: Track your Apify usage to stay within budget
  • Data Hygiene: Regularly clean and deduplicate your lead lists
  • Compliance: Ensure your scraping activities comply with LinkedIn's terms of service

🆘 Troubleshooting

Common Issues:

  • Authentication Errors: Verify your Apify token is correctly configured
  • Empty Results: Check that your LinkedIn post URLs are valid and public
  • Export Failures: Ensure Google Sheets credentials are properly set up

Need Help? Contact Saverflow.ai for support and custom workflow development.


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 - Trigger manually

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

Block 2 - Sticky Note1

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

Block 3 - On form submission

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

Block 4 - Set APIFY Token

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

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 - Set fields from the form

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

Block 9 - Set manual fields

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

Block 10 - More runs needed?

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

Block 11 - Set pagination

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

Block 12 - Split Out

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

Block 13 - Aggregate

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

Block 14 - Gather All Comments

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

Block 15 - Create Unique List of Leads

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

Block 16 - Sticky Note

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

Block 17 - Sticky Note5

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

Block 18 - Run Apify Comments Scraper

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

Block 19 - Run Apify Comments Scraper Loop

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

Block 20 - Run Apify Profile Enrichment

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

Block 21 - Split Out Batches

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

Block 22 - Loop Over Comments

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

Block 23 - Loop Over Profiles

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

Block 24 - Split in batches

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

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

3. Summary Table

Workflow Extract & enrich LinkedIn comments to leads with Apify → Google Sheets/CSV
Complexity advanced
Nodes 39
Categories Lead Generation
Author Saverflow AI
Published 04 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4635/4635.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 & enrich LinkedIn comments to leads with Apify → Google Sheets/CSV do?

LinkedIn Comments to Leads Extractor & Enricher (Apify) → Google Sheets / CSV Overview Automate LinkedIn lead generation by scraping comments from targeted posts and enriching profiles with deta...

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 use case.