Templates / Qualify and score Telegram leads with OpenAI, Google Sheets and Gmail

Qualify and score Telegram leads with OpenAI, Google Sheets and Gmail

Ready for 3.0

by tony · 0 views · created 2026-09-01 · Lead Generation, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 15 nodes and runs on Telegram events (message). Along the way it connects Telegram, OpenAI, Google Sheets and Gmail.

How it runs

Trigger: On Telegram events (message).

  1. Workflow Configuration (edit me) (Edit Fields (Set)): sets 8 fields: business_name, business_description, services…
  2. Normalize + Route (Code): runs custom JavaScript code
  3. Route by State (Switch): routes items into 4 branches
  4. Build AI Request (Code): runs custom JavaScript code
  5. Hold (awaiting specialist) (Code): runs custom JavaScript code
  6. Unsupported (non-text) (Code): runs custom JavaScript code
  7. Rate Limited (Code): runs custom JavaScript code
  8. Score Lead with OpenAI (OpenAI): uses OpenAI
  9. Route Delivery (Switch): routes items into 3 branches
  10. Parse AI + Update State (Code): runs custom JavaScript code

…plus 4 more steps. See the full node list below.

Services it uses

TelegramOpenAIGoogle SheetsGmail

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (8)

From the author

Quick overview A Telegram bot that qualifies inbound leads with OpenAI, scores them against your own threshold, logs each one to Google Sheets, and emails your team through Gmail only when a conversation is actually worth a human's time. How it works 1.…

Excerpt from tony's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.