Templates / Score inquiry emails into Google Sheets leads with OpenAI and Telegram alerts

Score inquiry emails into Google Sheets leads with OpenAI and Telegram alerts

Ready for 3.0

by Luna | Flow Lab · 1 views · created 2026-09-28 · Lead Generation, AI Summarization

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-10-19.

What this workflow does

This AI workflow has 13 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model, Google Sheets and Telegram.

How it runs

Trigger: On Gmail events.

  1. Set lead settings (Edit Fields (Set)): sets 5 fields: telegramChatId, hotBudgetMin, defaultCurrency…
  2. Skip newsletters and auto-replies (Code): runs custom JavaScript code
  3. Is it a real inquiry? (If): checks a condition and branches into true / false
  4. Extract lead details with AI (Information Extractor): extracts structured fields from text with AI, with model: OpenAI Chat Model
  5. Check AI answer and score lead (Code): runs custom JavaScript code
  6. Is it a lead? (If): checks a condition and branches into true / false
  7. Keep only the lead row (Edit Fields (Set)): sets or maps fields
  8. Add or update lead row (Google Sheets): append or update
  9. Is it a hot lead? (If): checks a condition and branches into true / false
  10. Format hot lead alert (Code): runs custom JavaScript code

…plus 1 more step. See the full node list below.

Services it uses

GmailOpenAI Chat ModelGoogle SheetsTelegram

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.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Check inbox for new inquiries).

Nodes used (8)

From the author

Quick Overview This workflow polls Gmail for new inquiry emails, uses OpenAI to extract lead details, saves or updates one lead per sender in Google Sheets, and sends Telegram alerts for hot leads based on budget or urgency. How it works 1. Polls a Gmail…

Excerpt from Luna | Flow Lab'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.