📱 Send personalized LinkedIn auto-reply DMs with smart resource matching

⚡ 56 views · 📱 Social Media & Email Marketing

💡 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

This automated n8n workflow enables intelligent auto-replies to LinkedIn comments by sending personalized direct messages (DMs) with relevant resources. When users comment on your posts, the workflow monitors engagement, filters valid interactions, analyzes comment content using keyword matching, and delivers tailored responses via LinkedIn messaging. It ensures duplicate prevention, tracks all message deliveries, and maintains logs for monitoring and compliance.

Fundamental Aspects

  1. Monitor posts: Every 5 minutes, the workflow fetches your 10 most recent LinkedIn posts
  2. Collect comments: Retrieves all comments from each post (up to 20 per post)
  3. Filter engagement: Removes your own comments and tracks previously contacted users
  4. Smart matching: Analyzes comment text using keyword matching to determine the most relevant resource (eBook, webinar, template, tool, or checklist)
  5. Personalize message: Creates a custom DM with the commenter’s name and selected resource
  6. Send and track: Delivers the message via LinkedIn and logs the interaction

Setup steps

  1. Connect LinkedIn: Add your LinkedIn OAuth2 credentials to these nodes:

    • Fetch Recent Posts
    • Fetch Post Comments
    • Send DM via LinkedIn
  2. Update resource URLs: Open the “Match Resource to Comment” node and replace all https://yourwebsite.com/... URLs with your actual resource links

  3. Customize message (optional): Edit the “Build Personalized Message” node to adjust the DM template and tone

  4. Test first: Click “Execute Workflow” to test before activating. Check the execution log to verify it works correctly

  5. Activate: Once tested, toggle the workflow to “Active” to run automatically every 5 minutes

Technical Dependencies

Customization Possibilities

Explore More LinkedIn & Social Automation:
Contact us to design AI-powered lead nurturing, content engagement, and multi-platform reply workflows tailored to your growth strategy.

đź”— Nodes Used

LinkedIn, Schedule Trigger, Filter

📥 Import

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

📖 Importing guide · 🔑 Credential setup