Block 1 - 📋 Workflow Overview
- Type / Role
- n8n-nodes-base.stickyNote - stickyNote
- Config choices
- Version 1
This workflow is provided as-is. Please review and test before using in production.
Auto Send DMs to LinkedIn Commenters Who Type a Specific Keyword using ConnectSafely.AI API Who's it for This workflow is built for content creators, coaches, course sellers, and marketers who use ...
n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-connectsafely-ai.connectsafelylinkedin, n8n-nodes-base.splitout, n8n-nodes-base.splitinbatches, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.wait
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by ConnectSafely.
Original n8n.io sourceThis workflow is built for content creators, coaches, course sellers, and marketers who use the "comment X to get the link" engagement strategy on LinkedIn. Perfect for anyone who wants to deliver lead magnets, code samples, templates, or resources automatically without spending hours manually DMing every commenter.
If you're tired of the manual grind—reading comments, checking connections, copy-pasting messages—this automation handles the entire fulfillment process while you focus on creating more content. Works especially well for viral posts where comment volume makes manual responses impossible.
The workflow monitors your LinkedIn post for specific keyword triggers and automatically sends personalized DMs to commenters who request your content.
The process flow:
The rate limiting and connection checks are built-in to protect your LinkedIn account from automation detection.
This credential is used by all ConnectSafely nodes in the workflow.
Pro Tip: Test with your own post first where you've left a test comment containing the keyword.
Edit the Send DM with Link node to customize your message:
Hey {{name}}! 👋
Thanks for your comment on my post!
As promised, here's the link you requested:
👉 {{link}}
If you have any questions or want more resources like this, just let me know!
Best,
{{your_name}}
Variables available:
{{ $('Loop: Process Each Comment').item.json.authorName }} - Commenter's name{{ $('Form: Enter Post Details').item.json['Content Link to Send'] }} - Your resource link{{ $('Form: Enter Post Details').item.json['Your Name (for signature)'] }} - Your nameEdit the Detect Keyword Match code node to check for multiple trigger words:
// Multiple keyword detection
const keywords = ['code', 'example', 'template', 'link', 'send'];
const commentLower = commentText.toLowerCase();
const isMatch = keywords.some(keyword =>
commentLower.includes(keyword.toLowerCase())
);
return [{ json: { isKeywordMatch: isMatch, commentText } }];
Edit the Wait: Rate Limiting node to change delays:
| Risk Level | Wait Time | Formula |
|---|---|---|
| 🟢 Safest | 30-60 min | Math.floor(Math.random() * (3600 - 1800 + 1)) + 1800 |
| 🟡 Moderate (Default) | 15-30 min | Math.floor(Math.random() * (1800 - 900 + 1)) + 900 |
| 🔴 Faster (Risky) | 5-15 min | Math.floor(Math.random() * (900 - 300 + 1)) + 300 |
Warning: Shorter delays increase the risk of LinkedIn flagging your account.
To also send connection requests to non-connected commenters:
sendConnectionRequestpublicIdentifier from the loopIssue: No comments returned from post
Issue: "Cannot send message" errors
Issue: Messages not being sent
Issue: Keyword not matching comments
Issue: Workflow seems slow
Issue: LinkedIn account warnings
Issue: Duplicate messages sent
| Do ✅ | Don't ❌ |
|---|---|
| Use random delays (built-in) | Send messages without delays |
| Process 20-30 comments per batch | Process 100+ comments at once |
| Run during business hours | Run 24/7 continuously |
| Stop if you see warnings | Ignore LinkedIn restrictions |
| Keep messages helpful | Send salesy/spammy content |
| Respond to genuine requests | Use for cold outreach |
| Account Type | Recommended Max DMs/Day |
|---|---|
| Free Account | 30-50 |
| Premium | 50-80 |
| Sales Navigator | 80-100 |
These are conservative estimates. LinkedIn doesn't publish exact limits.
Stay updated with the latest automation tips, LinkedIn strategies, and platform updates:
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:
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.
| Workflow | Auto-send DMs to LinkedIn keyword commenters with ConnectSafely.AI |
|---|---|
| Complexity | advanced |
| Nodes | 20 |
| Categories | Lead Nurturing |
| Author | ConnectSafely |
| Published | 05 Dec 2025 |
Use the JSON export at /data/workflows/11531/11531.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
Auto Send DMs to LinkedIn Commenters Who Type a Specific Keyword using ConnectSafely.AI API Who's it for This workflow is built for content creators, coaches, course sellers, and marketers who use ...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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 Nurturing use case.