LinkedIn Lead Generation Automation: How We Built an AI Workflow
Case: n8n + Apify + GPT-4 for finding B2B clients
January 25, 2026
The Problem
Prospecting on LinkedIn is routine work: scrolling the feed, reading posts, analyzing profiles, writing comments. Hours of work per day that can be automated.
The Solution
We created a fully automated workflow that handles all the routine work:
- Searches for posts by keywords We take a list of keywords from a Google Sheet — the system automatically finds relevant posts on LinkedIn for the last week or month.
- AI analyzes every post GPT-4 scores the author on a scale of 1-10: is this a potential client? Is it worth spending time on engagement?
- Generates personalized comments For every qualified lead (score 7+), AI writes a unique comment that provokes dialogue — without intrusive advertising.
- Saves results All qualified leads go into a spreadsheet with full context: post, author profile, AI analysis, ready comment.
Technologies
n8n — workflow orchestration
Apify — LinkedIn post scraping
OpenAI GPT-4 — scoring and content generation
Google Sheets — database and configuration
Result
Instead of hours of manual search — an automated pipeline that finds and qualifies leads 24/7. All that remains is to write comments and build relationships.
FAQ
Will LinkedIn block my account?
We use Apify to scrape public posts, not for automated actions on your behalf.
You write all comments manually — this is safe for the account.
How many leads can be found per day?
Depends on the niche and keywords. On average, the workflow finds 50-200
relevant posts per day, of which 10-30 receive a high AI score (7+).
Can I customize the scoring criteria?
Yes, the GPT-4 prompt is fully customizable to your ICP (Ideal Customer
Profile). You determine which features are important: company size, industry, author's position,
etc.
Want such a workflow for your business?
We will set up automated client search on LinkedIn for your tasks.
Write in Telegram