πŸ’¬ LinkedIn lead generation: Auto DM system with comment triggers using Unipile & NocoDB

⚑ 1,493 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

Short Description

This LinkedIn automation workflow monitors post comments for specific trigger words and automatically sends direct messages with lead magnets to engaged users. The system checks connection status, handles non-connected users with connection requests, and prevents duplicate outreach by tracking all interactions in a database.

Key Features

Who This Workflow Is For

How It Works

  1. Setup: Configure post ID, trigger word, and lead magnet link via form
  2. Comment Extraction: Retrieves all comments from the specified post using Unipile
  3. Trigger Detection: Filters comments containing the specified trigger word
  4. Connection Check: Determines if commenters are 1st-degree connections
  5. Smart Routing: Connected users receive DMs, others get connection requests
  6. Database Logging: Records all interactions to prevent duplicates

Setup Requirements

Required Credentials

Database Structure

**Table: leads

Customization Options

Installation Instructions

  1. Import the workflow into your n8n instance
  2. Set up NocoDB database with required table structure
  3. Configure Unipile and NocoDB credentials
  4. Set environment variables for Unipile root URL and LinkedIn account ID
  5. Test with a sample post before full use

## πŸ”— Nodes Used

HTTP Request, NocoDB, Filter, n8n Form Trigger

## πŸ“₯ Import

Download [`workflow.json`](workflow.json) and import into n8n:
**Workflow menu β†’ Import from File**

[πŸ“– Importing guide](../../../docs/importing-templates.md) Β· [πŸ”‘ Credential setup](../../../docs/credential-setup.md)