🎣 Sync LinkedIn profile visitors into HubSpot CRM leads with ConnectSafely.ai and Apify

⚡ 65 views · 🎣 Lead Generation & Enrichment

💡 Pro Tip — If you’re pulling LinkedIn data through HTTP requests or dealing with API restrictions, there’s a community node called ScraperNode that handles this natively. It has dedicated scrapers for profiles, companies, jobs, and people search — you just pass a URL and get structured data back.

View All Scrapers

Description

Sync LinkedIn Profile Visitors to HubSpot CRM

Who’s it for

This workflow is built for sales professionals, recruiters, founders, and marketers who want to automatically capture LinkedIn profile visitors and convert them into actionable CRM leads. Perfect for anyone tired of manually checking who viewed their profile, copying data one by one, and losing warm leads because they never made it into your pipeline.

If you’re running outbound sales, recruiting talent, building partnerships, or simply want to know who’s checking you out on LinkedIn, this automation captures every visitor and enriches them with full professional data before syncing to your CRM.

How it works

The workflow automatically syncs your LinkedIn profile visitors to HubSpot CRM with enriched professional data.

The process flow:

  1. Scheduled trigger runs weekly (or manually) to fetch recent visitors
  2. ConnectSafely.ai API retrieves all profile visitors from the past 7 days
  3. Splits visitors into individual records for processing
  4. Apify actor enriches each visitor with complete LinkedIn profile data (email, company, title, location)
  5. Email validation filters contacts - only those with valid emails proceed
  6. HubSpot integration creates or updates contacts with full enriched information
  7. Loop continues until all visitors are processed

Setup steps

Step 1: Configure ConnectSafely.ai API Credentials

Obtain API Key

  1. Log into ConnectSafely.ai Dashboard
  2. Navigate to Settings → API Keys
  3. Generate a new API key

Add Bearer Auth Credential in n8n

  1. Go to Credentials in n8n
  2. Click Add Credential → Header Auth or HTTP Bearer Auth
  3. Name it “ConnectSafely.ai API”
  4. Paste your ConnectSafely.ai API key
  5. Save the credential

This credential is used by the “Fetch Profile Visitors” HTTP Request node.

Step 2: Configure Apify Integration

Get Apify API Key

  1. Sign up at Apify.com
  2. Go to Settings → Integrations → API
  3. Copy your API token

Find the LinkedIn Enrichment Actor

  1. Go to Apify Store
  2. Search for “LinkedIn Profile Scraper” or use actor ID: UMdANQyqx3b2JVuxg
  3. Copy the actor URL

Add Apify Credential in n8n

  1. Go to Credentials → Add Credential → Apify API
  2. Paste your Apify API token
  3. Save the credential

Configure the Apify Node

  1. Open the Enrich LinkedIn Profile node
  2. Select your Apify credential
  3. Update the Actor ID URL with your chosen LinkedIn scraper actor

Step 3: Configure HubSpot Integration

Create HubSpot App Token

  1. Go to HubSpot Settings → Integrations → Private Apps
  2. Click Create a private app
  3. Name it “n8n LinkedIn 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 Credentials → Add Credential → HubSpot App Token
  2. Paste your access token
  3. Save the credential

Connect to HubSpot Node

  1. Open the Create HubSpot Contact node
  2. Select your HubSpot App Token credential

Step 4: Configure the Schedule

  1. Open the Run Weekly node
  2. Adjust the schedule based on your needs:
    • Default: Every week
    • High traffic profiles: Every day
    • Low traffic: Every 2 weeks

Step 5: Test the Workflow

  1. Click the Test Manually node
  2. Click Test Workflow
  3. Verify:
    • Profile visitors are fetched correctly
    • Enrichment returns full profile data
    • Contacts with emails are created in HubSpot
    • Contacts without emails are skipped gracefully

Customization

Time Range Adjustment

Edit the JSON body in the Fetch Profile Visitors node to change the lookback period:

{"timeRange":"past_7_days","start":0,"fetchAll":true}

Options:

Additional HubSpot Fields

The Create HubSpot Contact node maps these fields by default:

To add more fields:

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

Different CRM Integration

To use a different CRM instead of HubSpot:

  1. Delete the Create HubSpot 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 “Has Valid Email” true output

Add Slack Notifications

Want to get notified when high-value visitors are captured?

  1. Add a Slack node after Create HubSpot Contact
  2. Filter for specific job titles or companies
  3. Send a message to your sales channel

Use Cases


Troubleshooting

Common Issues & Solutions

Issue: No visitors returned from API

Issue: Apify enrichment returning empty results

Issue: “Profile not found” errors

Issue: HubSpot contact not created

Issue: Duplicate contacts in HubSpot

Issue: Rate limit errors from Apify

Issue: Missing email addresses for most visitors


Costs & Considerations

ServiceCost
ConnectSafely.aiFree trial available, then subscription
Apify Enrichment~$1 per 1,000 records
HubSpotFree tier works, or existing subscription
n8nFree (self-hosted) or cloud pricing

Estimated monthly cost for 200 visitors/month: ~$0.20 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:

đź”— Nodes Used

HTTP Request, HubSpot, Schedule Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup