Skip to main content

Lead gen agent (Telegram)

Workflow preview

Workflow preview
100%
Lead gen agent (Telegram) preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Overview Use your voice or text to command a Telegram based AI agent that scrapes leads or generates detailed research reports—instantly. This workflow turns your Telegram bot into a full blown out...

Best for

  • Lead Generation automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.toolworkflow, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.telegram, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.set, n8n-nodes-base.switch

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Abdul Mir.

Original n8n.io source

1.1 Workflow description

Title
Lead gen agent (Telegram)
Workflow name
Lead gen agent (Telegram)

Overview

Use your voice or text to command a Telegram-based AI agent that scrapes leads or generates detailed research reports—instantly.

This workflow turns your Telegram bot into a full-blown outbound machine. Just tell it what type of leads you need, and it’ll use Apollo to find and save them into a spreadsheet. Or drop in a LinkedIn profile, and it’ll generate a personalized research dossier with info like job title, company summary, industry insights, and more. It handles voice messages too—just speak your request and get the results sent back like magic.

Who’s it for

  • Cold emailers and growth marketers
  • Solo founders running outbound
  • SDRs doing daily prospecting
  • Agencies building high-quality lead lists or custom research for clients

How it works

  • Triggered by a message (text or voice) in Telegram
  • If it’s voice, it transcribes using OpenAI Whisper
  • Uses an AI agent to interpret intent: scrape leads or research a person
  • For lead scraping:
    • Gathers criteria (e.g., location, job title) via Telegram
    • Calls the Apollo API to return fresh leads
    • Saves the leads to Google Sheets
  • For research reports:
    • Takes a LinkedIn profile link
    • Uses AI and lead data tools to create a 1-page professional research report
    • Sends it back to the user via email

Example outputs

  • Lead scraping: Populates a spreadsheet with names, roles, LinkedIn links, company info, emails, and more
  • Research report: A formatted PDF-style brief with summary of the person, company, and key facts

How to set up

  1. Connect your Telegram bot to n8n
  2. Add your OpenAI credentials (for Whisper + Chat agent)
  3. Plug in your Apollo API key or scraping tool
  4. Replace the example spreadsheet with your own
  5. Customize the prompts for tone or data depth
  6. (Optional) Add PDF generation or CRM sync

Requirements

  • Telegram Bot Token
  • OpenAI API Key
  • Apollo (or other scraping API) credentials
  • LinkedIn URLs for research functionality

How to customize

  • Replace Apollo with Clay, People Data Labs, or another scraping tool
  • Add a CRM push step (e.g. Airtable, HubSpot, Notion)
  • Add scheduling to auto-scrape daily
  • Reformat the research report as a downloadable PDF
  • Change the agent’s tone or role (e.g. “Outreach Assistant,” “Investor Scout,” etc.)

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - leadScraping

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 2

Block 2 - leadResearch

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 2

Block 3 - Lead Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 4 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 5 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 6 - Download File

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 7 - Transcribe

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.6

Block 8 - Text

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Voice or Text

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 10 - Response

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 11 - Error Response

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 12 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 13 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Lead gen agent (Telegram)
Complexity advanced
Nodes 20
Categories Lead Generation, AI Chatbot
Author Abdul Mir
Published 27 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6532/6532.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Lead gen agent (Telegram) do?

Overview Use your voice or text to command a Telegram based AI agent that scrapes leads or generates detailed research reports—instantly. This workflow turns your Telegram bot into a full blown out...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Chatbot use case.