Capture, score, and dedupe bilingual leads with Google Sheets, GPT-4.1, email, and Telegram
Ready for 3.0What this workflow does
This AI workflow has 39 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Google Sheets, OpenAI Chat Model and Telegram.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Config (Edit Fields (Set)): sets 14 fields: businessName, fromEmail, ownerEmail…
- Form lead or crash? (If): checks a condition and branches into true / false
- Validate & normalize lead (Code): runs custom JavaScript code
- Build crash record (Code): runs custom JavaScript code
- Is the lead valid? (If): checks a condition and branches into true / false
- Rule-based score (Code): runs custom JavaScript code
- Respond: invalid lead (Respond to Webhook): sends the response back to the webhook caller
- Log error to Errors tab (Google Sheets): append
- Email owner about the error (Send Email): sends an email over SMTP
- Find lead by email or phone (Google Sheets): uses Google Sheets
…plus 24 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Telegram + OpenAI templates (807) · Other Telegram + Google Sheets templates (674)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (13)
- Webhook
n8n-nodes-base.webhook - Error Trigger
n8n-nodes-base.errorTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Respond to Webhook
n8n-nodes-base.respondToWebhook - Google Sheets
n8n-nodes-base.googleSheets - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Send Email
n8n-nodes-base.emailSend - Telegram
n8n-nodes-base.telegram - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview This workflow captures website form submissions via an n8n webhook, detects English vs Arabic, scores leads with rule-based logic, appends them to Google Sheets, and sends an optional auto-reply plus owner alerts via email and/or Telegram. How…