Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Email Automation

Email Automation

Qualify and score Telegram leads with OpenAI, Google Sheets and Gmail

When something happens in a connected app, it handles email with OpenAI / ChatGPT using Gmail, Google Sheets, Telegram.

What it does

## Qualify and score leads on Telegram with OpenAI, log to Sheets and alert your team Who's it for: small service businesses (coaches, consultants, agencies, local services) that get inbound questions on Telegram and don't want to miss a serious buyer. How it works: the bot answers each visitor's question, asks ONE discovery question per turn (service-to-sales, like a junior advisor), and has OpenAI score lead seriousness 0-100 against concrete anchors. A deterministic evidence gate blocks score injection. When the score crosses your threshold, your team is alerted on Telegram (and optionally by email), the visitor is told a specialist will reach out, and every lead keeps one living row in your Google Sheet. Setup steps: 1. Open Workflow Configuration (edit me) and fill in your business info, team chat id, threshold, and (optional) team email + Google Sheet id. 2. Attach your Telegram credential to Telegram Trigger and Send Telegram Message. 3. Attach your OpenAI credential to Score Lead with OpenAI. 4. Optional: attach Google credentials to the Sheets and Gmail nodes (leave the config placeholders and both branches stay silently off). For the lead log, create a tab named Leads whose first row has exactly these headers: chat_id, name, score, stated_need, pains, state, last_update.

The steps

  1. Telegram Trigger
  2. Workflow Configuration (edit me)
  3. Normalize + Route
  4. Route by State
  5. Build AI Request
  6. Score Lead with OpenAI
  7. AI Error Fallback
  8. Parse AI + Update State
  9. Route Delivery
  10. Send Telegram Message
  11. Log Lead to Google Sheets
  12. Email Team via Gmail
  13. Hold (awaiting specialist)
  14. Unsupported (non-text)

15 steps in total.

Similar automations