đź’¬ Send personalized connection requests to LinkedIn post commenters with ConnectSafely.ai

⚡ 87 views · 💬 Lead Nurturing & AI Sales Agents

💡 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

Send Connection Requests to LinkedIn Post Commenters - Automated Outreach with Personalized Messages using ConnectSafely.AI

Who’s it for

This workflow is built for content creators, founders, sales professionals, and LinkedIn thought leaders who want to convert post engagement into real connections. Perfect for anyone who creates content that attracts comments but doesn’t have time to manually connect with every person who engages.

If you’re publishing LinkedIn content regularly and want to build your network with warm leads (people already interested in what you’re saying), this automation handles the tedious work of sending personalized connection requests while you focus on creating more content.

How it works

The workflow automates the entire connection request process by combining intelligent filtering with personalized messaging through ConnectSafely.ai’s API.

The process flow:

  1. Displays a web form where you paste your LinkedIn post URL
  2. Fetches all comments from the specified post via ConnectSafely.ai API
  3. Splits commenters into individual items for sequential processing
  4. Loops through each commenter one at a time
  5. Checks relationship status (already connected? pending request?)
  6. Filters out existing connections and pending invitations
  7. Generates unique personalized messages using spin text variations
  8. Sends connection request with the personalized message
  9. Waits 1-2 hours between requests for rate limiting
  10. Loops back to process the next commenter until complete

The smart filtering ensures you never send duplicate requests or spam existing connections.


Setup steps

Step 1: Install ConnectSafely.ai Community Node

Install the Package

  1. Go to Settings → Community Nodes in your n8n instance
  2. Search for n8n-nodes-connectsafely.ai
  3. Click Install
  4. IMPORTANT: Restart n8n completely after installation

Alternative (Command Line):

npm install n8n-nodes-connectsafely.ai

Documentation: https://connectsafely.ai/n8n-docs

Step 2: 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
  4. Copy your Account ID from the Accounts section

Add Credentials in n8n

  1. Go to Credentials in n8n
  2. Click Add Credential → ConnectSafely API
  3. Paste your API key
  4. Save the credential

This credential is used by all ConnectSafely nodes in the workflow.

Step 3: Configure the Form Trigger

The workflow uses a Form Trigger to capture your LinkedIn post URL:

FieldConfiguration
Form Titleđź”— LinkedIn Post Engagement Automation
Form DescriptionEnter your LinkedIn post URL below to automatically send personalized connection requests
Field LabelLinkedIn Post URL
Placeholderhttps://www.linkedin.com/posts/your-post-url…
RequiredYes

To get your form URL:

  1. Click Test Workflow button
  2. Copy the webhook URL that appears
  3. Open this URL in your browser to access the form

Step 4: Customize Your Connection Message

Edit the spin text template in the Generate Personalized Message code node:

const template = `{Thanks for|Really appreciate|Awesome to see|Loved seeing|Grateful for} {you|you taking a moment to|you recently} {liking|engaging with|reacting to|showing interest in|checking out} {my|our|the} {post|recent post|latest content piece|content|update} on {this topic|that topic|the subject}. 

{Would love to|Happy to|Let's definitely|Open to|Excited to} connect {and|so we can|to} {exchange ideas|share insights|continue the conversation|explore potential collaborations|stay connected professionally}. {Always enjoy connecting with|Always excited to meet|Love meeting|Great connecting with} {like-minded people|professionals in the space|people exploring similar topics|others in this domain}.

{Cheers|Best regards|Thanks again|Looking forward|Talk soon|Warm regards},
YourName
`;

Spin Text Syntax:

Step 5: Configure Rate Limiting

The Wait (Rate Limiting) node controls the delay between connection requests:

SettingRecommended ValueDescription
Wait Time1-2 hoursTime between each connection request
UnitHoursKeeps your account safe from spam detection

Pro Tip: Start with 2-hour delays for new accounts, reduce to 1 hour once your account is warmed up.

Step 6: 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 with comments
  4. Submit the form
  5. Verify each step:
    • Comments are fetched correctly
    • Relationship check returns status
    • Messages generate with variations
    • Connection request sends successfully

First Run Tips:


Customization

Message Personalization

The workflow automatically includes the commenter’s name in the greeting:

customMessage: "Hi {{ $('🔄 Loop Over Items').item.json.authorName }},\n\n{{ $json.generatedMessage }}"

Add more personalization by referencing the comment text:

// Access the actual comment they left
const theirComment = $('🔄 Loop Over Items').item.json.commentText;

Filter Logic

Edit the Should Send Request? IF node conditions:

Current Logic (Both must be TRUE):

Additional Filters You Can Add:

// Example: Only connect with 2nd degree connections
$json.connectionDegree === "DISTANCE_2"

Rate Limiting Adjustments

Account StatusRecommended DelayDaily Limit
New Account2 hours10-12 requests
Warmed Up (1-2 weeks)1 hour20-24 requests
Established (1+ month)45 minutes30-35 requests

Use Cases


Troubleshooting

Common Issues & Solutions

Issue: ConnectSafely node not appearing after install

Issue: “Invalid Profile ID” error

Issue: Connection request fails with “already connected”

Issue: Messages appear identical

Issue: Workflow stops after first person

Issue: Form URL not appearing

Issue: Rate limiting warnings from LinkedIn


Documentation & Resources

Official Documentation

Support Channels


Connect With Us

Stay updated with the latest automation tips, LinkedIn strategies, and platform updates:


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

n8n Form Trigger

📥 Import

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

📖 Importing guide · 🔑 Credential setup