Lead Generation Agent
A complete AI-powered lead generation pipeline that scrapes, researches, scores, and reports on leads — all from a Telegram chat. Tell the agent what industry, location, and job titles you want, and it handles the rest.
What's included (4 workflows that work together):
OP Lead Generator — The main agent. Chat with it via Telegram (text or voice). Tell it what leads you want, and it calls the scraping + research tools automatically.
Lead Scraper Tool — Sub-workflow called by the main agent. Uses Apify to scrape leads matching your criteria and dumps them into a Google Sheet with name, email, phone, title, company, LinkedIn, and website.
Lead Research Report — Deep-dives a single lead using Perplexity + GPT. Generates a full HTML report with company profile, pain points, automation opportunities, business score, and icebreaker similarities. Saves as a Google Doc and links it in your sheet.
Lead Research Loop — Loops through unresearched leads in your sheet and sends each one to the research report workflow. Processes them in batches of 3.
Setup:
Import all 4 workflows into n8n
Connect credentials: OpenAI, Telegram Bot, Apify, Google Sheets, OpenRouter (for Perplexity), Google Drive
Create a Google Sheet with columns: First Name, Last Name, Email Address, Mobile Number, Seniority, Job Title, Company Name, Linkedin URL, Website URL, Email Status, Research Report, doc_link, full_name, business_score, lead_quality
Update the Google Sheet ID in Lead Scraping 2.0, Lead Research Loop, and Lead Research Report
Link the workflows together: in OP Lead Generator, update the workflow IDs for leadScraping (→ Lead Scraping 2.0) and leadResearch (→ Lead Research Loop). In Lead Research Loop, update the workflow ID for Execute Research Sub-Workflow (→ Lead Research Report)
Update the Google Drive folder ID in Lead Research Report (where reports get saved)
Customize the system prompts with your own name and details
Activate all 4 workflows
Download the 4 JSON files below
