Capture and manage Telegram sales leads with Groq and Postgres
Ready for 3.0What 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).
- Config (Code): runs custom JavaScript code
- Cleanup Pending (Postgres): run a query
- Is Telegram Update? (If): checks a condition and branches into true / false
- Normalize Update (Code): runs custom JavaScript code
- Fraud ? (If): checks a condition and branches into true / false
- Digest Query (Postgres): run a query
- Reply: Unauthorized (Telegram): uses Telegram
- Route by Kind (Switch): routes items into 6 branches
- Build Digest (Code): runs custom JavaScript code
- Get Voice File (Telegram): work with file
…plus 43 more steps. See the full node list below.
Services it uses
Other Telegram + PostgreSQL templates (70) · Other Telegram + Groq templates (39) · Other PostgreSQL + Groq templates (9)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - Switch
n8n-nodes-base.switch - HTTP Request
n8n-nodes-base.httpRequest - Postgres
n8n-nodes-base.postgres - No Operation, do nothing
n8n-nodes-base.noOp
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…