Qualify inbound leads with GPT-4.1 mini, Telegram and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, Telegram and Google Sheets.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Normalize Lead Data (Edit Fields (Set)): sets 6 fields: name, email, company…
- Website Provided? (If): checks a condition and branches into true / false
- Merge: merges the data from its input branches
- Fetch Company Website (HTTP Request): calls an HTTP API
- AI Lead Qualification (AI Agent): runs an AI agent, with model: OpenAI gpt 4.1 mini; output parser: Lead Qualification Parser
- Clean Website Content (Code): runs custom JavaScript code
- High Priority Lead? (If): checks a condition and branches into true / false
- Send Telegram Alert (Telegram): uses Telegram
- Merge: merges the data from its input branches
- Save Lead to Google Sheets (Google Sheets): append
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (11)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Merge
n8n-nodes-base.merge - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick Overview This workflow receives inbound leads via a webhook, optionally fetches and cleans the company website content, uses OpenAI (GPT-4.1 mini) to qualify and score the lead and generate outreach copy, sends a Telegram alert for high-priority leads,…