Email Automation
Score inquiry emails into Google Sheets leads with OpenAI and Telegram alerts
When a new email arrives, it handles email with OpenAI / ChatGPT using Gmail, Google Sheets, Telegram.
What it does
## Turn inquiry emails into leads in Google Sheets with OpenAI and Telegram alerts Who's it for: freelancers, agencies and small service businesses whose leads arrive as plain emails and end up forgotten in the inbox. ### How it works 1. Check inbox for new inquiries polls Gmail every 5 minutes. 2. Skip newsletters and auto-replies drops mailing lists, out-of-office replies, bounces and ignored senders before any AI call, so you don't pay for noise. 3. Extract lead details with AI fills fixed fields: is it an inquiry, name, company, phone, service, budget, deadline, a one-line summary. It is told not to guess. 4. Check AI answer and score lead double-checks what the AI returned: the email address is taken from the sender, the budget has to be a real number, and any text that would turn into a spreadsheet formula is neutralized. A lead is hot when the budget reaches your threshold or the deadline says urgent. 5. Add or update lead row writes to Google Sheets matched on the sender's email: a second email from the same person updates one row. 6. Hot leads also go to Telegram as an HTML-escaped alert with a link to the email. ### Setup 1. Create a sheet named Leads with columns: key, received_at, name, email, company, phone, service, budget, currency, deadline, summary, subject, priority, gmail_link. 2. Add Gmail, OpenAI, Google Sheets and Telegram credentials; put your spreadsheet ID in Add or update lead row. 3. In Set lead settings, set your Telegram chat ID, the hot budget threshold and senders to ignore. ### Requirements Gmail, an OpenAI API key, Google Sheets, a Telegram bot. ### Customization tips Add fields in Extract lead details with AI, or replace the sheet node with your CRM.
The steps
- Check inbox for new inquiries
- Set lead settings
- Skip newsletters and auto-replies
- Is it a real inquiry?
- Extract lead details with AI
- OpenAI chat model
- Check AI answer and score lead
- Is it a lead?
- Keep only the lead row
- Add or update lead row
- Is it a hot lead?
- Format hot lead alert
- Send hot lead alert to Telegram
Similar automations
Email AutomationClassify New Gmail Emails with OpenAI and Apply Labels12 stepsLead Generation & EnrichmentScore new leads with OpenRouter AI and reply via Gmail and Google Sheets16 stepsEmail AutomationCategorize and Respond to Gmail Emails with Gemini11 stepsEmail AutomationEnrich and score LinkedIn inbound leads with OpenAI, Slack and Gmail21 steps