Skip to main content

Add LinkedIn post commenters to HubSpot CRM with Apify enrichment

Workflow preview

Workflow preview
100%
Add LinkedIn post commenters to HubSpot CRM with Apify enrichment preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Add LinkedIn Post Commenters to HubSpot CRM Who's it for This workflow is built for content creators, sales professionals, founders, and marketers who post regularly on LinkedIn and want to convert...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-connectsafely-ai.connectsafelylinkedin, n8n-nodes-base.splitout, n8n-nodes-base.splitinbatches, @apify/n8n-nodes-apify.apify, n8n-nodes-base.if, n8n-nodes-base.hubspot

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Add LinkedIn post commenters to HubSpot CRM with Apify enrichment
Workflow name
Add LinkedIn post commenters to HubSpot CRM with Apify enrichment

Add LinkedIn Post Commenters to HubSpot CRM

Who's it for

This workflow is built for content creators, sales professionals, founders, and marketers who post regularly on LinkedIn and want to convert engaged commenters into CRM leads automatically. Perfect for anyone who gets decent engagement on their posts but struggles to manually capture and follow up with everyone who comments.

If you're running thought leadership campaigns, generating inbound interest through content, or simply want to build relationships with people who engage with your posts, this automation captures every commenter and enriches them with full professional data before syncing to your CRM.

How it works

The workflow automatically captures LinkedIn post commenters and adds them to HubSpot CRM with enriched professional data.

The process flow:

  1. Submit a LinkedIn post URL via a simple form trigger
  2. ConnectSafely.ai fetches all comments from the specified post
  3. Splits commenters into individual records for processing
  4. Loops through each commenter one at a time
  5. Apify actor enriches each profile with complete LinkedIn data (email, company, title, location)
  6. Email validation filters contacts - only those with valid emails proceed
  7. HubSpot integration creates or updates contacts with full enriched information
  8. Loop continues until all commenters are processed

Watch the complete step-by-step implementation guide:


Setup steps

Step 1: Install the ConnectSafely Community Node

This workflow requires the ConnectSafely community node, which is only available on self-hosted n8n instances.

  1. In n8n, go to SettingsCommunity Nodes
  2. Click Install a community node
  3. Enter: n8n-nodes-connectsafely-ai
  4. Click Install
  5. Restart n8n if prompted

Note: Community nodes are not available on n8n Cloud. You'll need a self-hosted instance.

Step 2: Configure ConnectSafely.ai API Credentials

Obtain API Key
  1. Create an account at ConnectSafely.ai
  2. Connect your LinkedIn account in the dashboard
  3. Navigate to SettingsAPI Keys
  4. Generate a new API key
Add Credential in n8n
  1. Go to Credentials in n8n
  2. Click Add Credential → Search for ConnectSafely API
  3. Paste your API key
  4. Save the credential
Connect to the Node
  1. Open the 🔍 Fetch All Comments node
  2. Select your ConnectSafely API credential

Step 3: Configure Apify Integration

Get Apify API Key
  1. Sign up at Apify.com
  2. Go to SettingsIntegrationsAPI
  3. Copy your API token
Add Apify Credential in n8n
  1. Go to CredentialsAdd CredentialApify API
  2. Paste your Apify API token
  3. Save the credential
Configure the Apify Node
  1. Open the Run an Actor and get dataset node
  2. Select your Apify credential
  3. The actor URL is pre-configured to use the LinkedIn enrichment actor: https://console.apify.com/actors/UMdANQyqx3b2JVuxg

Step 4: Configure HubSpot Integration

Create HubSpot App Token
  1. Go to HubSpot SettingsIntegrationsPrivate Apps
  2. Click Create a private app
  3. Name it "n8n LinkedIn Commenters Sync"
  4. Under Scopes, enable:
    • crm.objects.contacts.read
    • crm.objects.contacts.write
  5. Click Create app and copy the access token
Add HubSpot Credential in n8n
  1. Go to CredentialsAdd CredentialHubSpot App Token
  2. Paste your access token
  3. Save the credential
Connect to HubSpot Node
  1. Open the Create or update a contact node
  2. Select your HubSpot App Token credential

Step 5: Test the Workflow

  1. Click Test Workflow to get the form URL
  2. Open the form URL in your browser
  3. Paste a LinkedIn post URL that has comments
  4. Submit the form
  5. Verify:
    • Comments are fetched correctly
    • Enrichment returns full profile data
    • Contacts with emails are created in HubSpot
    • Contacts without emails are skipped gracefully

Customization

Additional HubSpot Fields

The Create or update a contact node maps these fields by default:

  • First Name
  • Last Name
  • Email
  • Job Title
  • Company Name
  • City
  • Country
  • Street Address

To add more fields:

  1. Open the Create or update a contact node
  2. Click Add Field under Additional Fields
  3. Map Apify output fields to HubSpot properties

Available Apify fields include:

  • 06_Linkedin_url - LinkedIn profile URL
  • 07_Title - Current job title
  • 08_Summary - Profile summary
  • 16_Company_name - Current company
  • 17_Company_industry - Industry

Add Lead Source Tracking

To track that these contacts came from LinkedIn comments:

  1. Open the Create or update a contact node
  2. Add a custom field: leadSource = LinkedIn Post Comment
  3. Optionally add the post URL as a note

Filter by Comment Quality

Want to skip low-effort comments like "Great post!" or emoji-only responses?

  1. Add an IF node after 📤 Split Comments Array
  2. Filter based on comment text length or content
  3. Only process comments with meaningful engagement

Different CRM Integration

To use a different CRM instead of HubSpot:

  1. Delete the Create or update a contact node
  2. Add your CRM node (Salesforce, Pipedrive, Zoho, etc.)
  3. Map the enriched fields to your CRM's contact properties
  4. Connect it to the "Check if Contact is eligible" true output

Add Slack Notifications

Get notified when high-value commenters are captured:

  1. Add a Slack node after Create or update a contact
  2. Filter for specific job titles (VP, Director, CEO, etc.)
  3. Send a message to your sales channel with commenter details

Use Cases

  • Content-Led Sales: Automatically capture decision-makers who engage with your thought leadership posts
  • Event Promotion: Sync everyone who comments on event announcements to your follow-up list
  • Product Launches: Build a list of interested prospects from launch announcement engagement
  • Recruiting: Capture professionals who engage with hiring posts or company culture content
  • Community Building: Track engaged community members across multiple posts over time

Troubleshooting

Common Issues & Solutions

Issue: ConnectSafely node not appearing in n8n

  • Solution: Restart n8n after installing the community node. If still missing, verify the installation in Settings → Community Nodes.

Issue: "Comments not loading" or empty results

  • Solution: Ensure the post URL is the full URL from LinkedIn (e.g., https://www.linkedin.com/posts/username_activity-1234567890/), not a shortened version. Also verify the post actually has comments.

Issue: Apify enrichment returning empty results

  • Solution: Verify the LinkedIn URL format from the commenter profile is correct. Check your Apify actor is running properly and hasn't hit rate limits.

Issue: HubSpot contact not created

  • Solution: Check that your HubSpot App Token has crm.objects.contacts.write scope enabled. Verify the email field is mapping correctly.

Issue: Duplicate contacts in HubSpot

  • Solution: HubSpot uses email as the unique identifier. The node is configured to "Create or Update" so duplicates should be updated, not created.

Issue: Rate limit errors from Apify

  • Solution: The loop processes one commenter at a time, but you can add a Wait node inside the loop with 2-5 second delays if needed.

Issue: Missing email addresses for most commenters

  • Solution: This is normal - enrichment typically finds emails for 60-70% of profiles. Consider adding LinkedIn URL as a fallback identifier in your CRM.

Costs & Considerations

Service Cost
ConnectSafely.ai Free trial available, then subscription
Apify Enrichment ~$1 per 1,000 records
HubSpot Free tier works, or existing subscription
n8n Free (self-hosted required for community nodes)

Estimated cost per post with 50 commenters: ~$0.05 for Apify enrichment


Documentation & Resources

Official Documentation

Support Channels


Connect With Us

Stay updated with the latest automation tips and LinkedIn strategies:


Need Custom Workflows?

Looking to build sophisticated LinkedIn automation workflows tailored to your business needs?

Contact our team for custom automation development, strategy consulting, and enterprise solutions.

We specialize in:

  • Multi-channel engagement workflows
  • AI-powered personalization at scale
  • Lead scoring and qualification automation
  • CRM integration and data synchronization
  • Custom reporting and analytics pipelines

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

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

Block 2 - Form Trigger - Enter Post URL

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

Block 3 - Fetch Post Comments

Type / Role
n8n-nodes-connectsafely-ai.connectSafelyLinkedIn - connectSafelyLinkedIn
Config choices
Version 1

Block 4 - Split Comments Array

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

Block 5 - Loop Over Items

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

Block 6 - Enrich Profile with Apify

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

Block 7 - Check Email Exists

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

Block 8 - Create or Update HubSpot Contact

Type / Role
n8n-nodes-base.hubspot - hubspot
Config choices
Version 2.1

Block 9 - Continue Loop

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

Block 10 - Sticky Note - Trigger Section

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

Block 11 - Sticky Note - Enrich Section

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

3. Summary Table

Workflow Add LinkedIn post commenters to HubSpot CRM with Apify enrichment
Complexity intermediate
Nodes 11
Categories Lead Generation
Author ConnectSafely
Published 30 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12310/12310.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 Add LinkedIn post commenters to HubSpot CRM with Apify enrichment do?

Add LinkedIn Post Commenters to HubSpot CRM Who's it for This workflow is built for content creators, sales professionals, founders, and marketers who post regularly on LinkedIn and want to convert...

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.