Skip to main content
Back to Projects

AI-Powered LinkedIn Lead Generator with n8n

Hundreds of LinkedIn posts and profiles are posted daily. I built an n8n workflow that uses AI to analyze them and deliver warm leads straight to Telegram.

n8nLinkedInLead GenerationAILLMTelegramWebhookAutomation

The Problem


I wanted to analyze hundreds of posts posted daily on LinkedIn and find the profiles actually worth connecting to. I recently installed n8n and I wanted to build my own automation that does it for me with the help of AI.


That pipeline is this n8n workflow — a webhook-powered lead generator that uses AI to analyze LinkedIn posts and profiles, extract opportunities, and push everything to Telegram.


AI Automated Solution


A webhook receives LinkedIn data. A router then splits it by type — send it posts, get back leads; send it profiles, get back decision-makers. Both paths send content to the AI API for analysis and deliver structured results to Telegram.


For posts, the AI scans for signals based on criteria you define — someone landing a new job, a company that just got funded, people hiring, founders raising a round, or any other pattern. The AI extracts author name, title, location, a description, and a link. Spam gets filtered automatically. What lands in your Telegram is a clean list of leads that match your criteria.


For profiles, the AI identifies decision-makers — CTOs, CEOs, founders, VPs, engineering managers, recruiters, investors, anyone with authority. It returns a structured table: name, current title, profile link. These are the people you need to connect with.


How It Works


  • A webhook at /webhook/linkedin-assessment receives LinkedIn data
  • A Switch node routes it to the posts or profiles pipeline based on the type field
  • A Code node builds a targeted prompt for the AI — different prompts for posts vs profiles
  • An HTTP Request sends the prompt to the AI API for AI analysis
  • A Code node formats the AI response (posts become a downloadable text file, profiles split into 4K-char message chunks)
  • Telegram delivers the result to your channel

If anything breaks, a separate error workflow sends an alert instantly.


How is it different?


Most lead generation tools are passive — they collect emails and hope. This is active. It reads what people are saying on LinkedIn in real-time and surfaces posts and profiles that match your criteria. Someone announces they just started a new role — that's a lead. A company announces a funding round — that's a lead. Someone posts they're hiring — that's a lead. A founder shares their growth metrics — that's a lead.


The AI understands context. It filters out noise — motivational posts, engagement bait, irrelevant industry chatter — and only returns posts and profiles that match actual business opportunities. The result is a Telegram channel that works as a live lead feed, updated whenever fresh LinkedIn data hits the webhook.


I built this for my own outreach. It runs on n8n, uses my own AI API for analysis, and delivers to a private Telegram channel. You can use the Leads Scraper Chrome extension to collect the data and feed it straight into this workflow — it scrapes whatever you browse and POSTs to any webhook you give it. The same pattern works for any platform: replace the LinkedIn data with any data source that can POST to a webhook and you've got an automated lead engine.


Related Projects

Built by Hamza

Published on June 8, 2026