Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Email Automation

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

  1. Check inbox for new inquiries
  2. Set lead settings
  3. Skip newsletters and auto-replies
  4. Is it a real inquiry?
  5. Extract lead details with AI
  6. OpenAI chat model
  7. Check AI answer and score lead
  8. Is it a lead?
  9. Keep only the lead row
  10. Add or update lead row
  11. Is it a hot lead?
  12. Format hot lead alert
  13. Send hot lead alert to Telegram

Similar automations