How it works
To pass leads from Telegram to QuestDB automatically, use a ready-made scenario — no manual copying, no lost leads.
- Starts when: Telegram Input - Agent Submits Lead
- Then: AI - Parse Lead Data
- Then: Insert row
- Then: Initialize Lead Tracking
- Then: AI - Generate Personalized Email
- Then: Set Email
- Then: Send email
- Then: Update row(s)
- Then: Notify Agent - Email Sent
- Then: Gemini Model - Parser
- Then: JSON Output Parser
- Then: Gemini Model - Email Generator
- Then: Email JSON Parser
- Check: Is This a Reply from Lead?
- If yes: Notify Agent - Reply Received
- Then: Mark Lead as Replied
- Then: Mark As Replied
- Starts when: Daily Reply Check (9 AM)
- Then: Get row(s)
- Check: Loop Over Items
- Then: Get many messages
- Starts when: Daily Follow-up Check (10 AM)
- Then: Get row(s)1
- Then: Initialize Lead Follow Up
- Then: AI - Generate Personalized 2nd Follow Up Email
- Then: Set 2nd Follow Up
- Then: Send email 2
- Then: Update row(s)1
- Then: Notify Agent - Email Sent1
- Then: Gemini Model - Email Generator1
- Then: Email JSON Parser1
- Starts when: Daily Follow-up Check (10 AM)1
- Then: Get row(s)2
- Check: If lastSentDate was 24 hours ago
- If yes: Initialize Lead 3rd Follow Up
- Then: AI - Generate Personalized 3rd Follow Up Email
- Then: Set 3rd Follow Up
- Then: Send email 3
- Then: Update row(s) and Update Status
- Then: Notify Agent - Sequence Complete1
- Then: Gemini Model - Email Generator2
- Then: Email JSON Parser2
You can launch this Telegram + QuestDB integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.