Lead gen agent (Telegram)
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 12 nodes and runs on Telegram events (message). Along the way it connects OpenAI Chat Model, Telegram and OpenAI.
How it runs
Trigger: On Telegram events (message).
- Voice or Text (Switch): routes items into 2 branches
- Download File (Telegram): work with file
- Text (Edit Fields (Set)): sets 1 field: text
- Transcribe (OpenAI): transcribe (audio)
- Lead Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 2 tools (leadResearch, leadScraping); memory: Simple Memory
- Response (Telegram): uses Telegram
- Error Response (Telegram): uses Telegram
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Lead Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Lead Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Telegram
n8n-nodes-base.telegram - OpenAI
@n8n/n8n-nodes-langchain.openAi - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Telegram Trigger
n8n-nodes-base.telegramTrigger
From the author
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…