Templates / Score, route, and reply to inbound leads with GPT-4o-mini, Gmail and Sheets

Score, route, and reply to inbound leads with GPT-4o-mini, Gmail and Sheets

Ready for 3.0

by Vitaliy Voitik ✓ · 6 views · created 2026-09-03 · 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 24 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Gmail, Telegram and Google Sheets.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).

  1. Acknowledge Lead Submission (Respond to Webhook): sends the response back to the webhook caller
  2. Read Lead Log from Sheets (Google Sheets): uses Google Sheets
  3. Set Lead Fields (Edit Fields (Set)): sets 12 fields: lead_id, received_at, source…
  4. Filter: keeps only the items that match a condition
  5. Filter: keeps only the items that match a condition
  6. Generate Weekly Digest (Code): runs custom JavaScript code
  7. Lead Scoring Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-4o-mini Model; output parser: Apply Scoring JSON Schema
  8. Post Weekly Digest on Telegram (Telegram): uses Telegram
  9. Compute Lead Score (Code): runs custom JavaScript code
  10. Prepare for Manual Review (Edit Fields (Set)): sets 5 fields: tier, score, next_step…

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

Services it uses

OpenAI Chat ModelGmailTelegramGoogle Sheets

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 (13)

From the author

Quick overview This workflow receives inbound leads via a webhook, filters spam, and uses OpenAI GPT-4o-mini to score and draft replies. It routes hot leads to Gmail and Telegram alerts, logs all leads to Google Sheets, and sends a weekly Telegram digest from…

Excerpt from Vitaliy Voitik'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.