Templates / Capture and manage Telegram sales leads with Groq and Postgres

Capture and manage Telegram sales leads with Groq and Postgres

Ready for 3.0

by Akshat ✓ · 4 views · created 2026-10-15 · 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 workflow has 59 nodes and runs on Telegram events (message, callback query) (plus 1 other trigger). Along the way it connects Telegram and Postgres. It also calls api.groq.com over HTTP.

How it runs

Trigger: On Telegram events (message, callback query) (plus 1 other trigger).

  1. Config (Code): runs custom JavaScript code
  2. Cleanup Pending (Postgres): run a query
  3. Is Telegram Update? (If): checks a condition and branches into true / false
  4. Normalize Update (Code): runs custom JavaScript code
  5. Fraud ? (If): checks a condition and branches into true / false
  6. Digest Query (Postgres): run a query
  7. Reply: Unauthorized (Telegram): uses Telegram
  8. Route by Kind (Switch): routes items into 6 branches
  9. Build Digest (Code): runs custom JavaScript code
  10. Get Voice File (Telegram): work with file

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

Services it uses

TelegramPostgres

HTTP calls to: api.groq.com

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

From the author

Quick overview Capture leads as fast as you can talk. Send a Telegram voice note, typed line, or business-card photo. AI turns it into a structured lead, Database checks for duplicates, and one tap confirms. A daily 8:30 digest tells you who needs a…

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