Email Automation
Score, route, and reply to inbound leads with GPT-4o-mini, Gmail and Sheets
When an API call/webhook arrives, it handles email with OpenAI / ChatGPT using Gmail, Google Sheets, Telegram.
What it does
## Score, route and reply to inbound leads with GPT-4o-mini, Gmail, Telegram and Google Sheets ### How it works Any form that can POST a webhook (Tally, Typeform, Webflow, WordPress...) sends the lead here. The form gets an instant OK, spam is dropped by a native Filter, then GPT-4o-mini rates budget, authority, need and timeline from 0 to 25 each against a JSON schema. A small Code node adds the points up, so the score is transparent and tunable. Hot leads (70+) alert you by Gmail and Telegram and get a draft reply, warm leads (40-69) get the draft only, cold leads are just logged. If the AI call fails, the lead is flagged for manual review instead of being lost. Every Monday a Telegram digest summarises the week. ### Setup steps - Describe your business and ideal customer in the system message of the AI node. - Connect OpenAI, Gmail, Telegram and Google Sheets; set your chat ID, alert email and spreadsheet ID. - Create a "Leads" sheet with the columns from the Log Lead node and point your form at the webhook URL. ### Customization Change thresholds in the Switch, weights and bonuses in the Code node, or swap Telegram for Slack.
The steps
- When Lead Form Submitted
- Acknowledge Lead Submission
- Set Lead Fields
- Filter Valid Leads
- Lead Scoring Agent
- OpenAI GPT-4o-mini Model
- Apply Scoring JSON Schema
- Compute Lead Score
- Route by Lead Quality
- Set Hot Lead Attributes
- Set Warm Lead Attributes
- Set Cold Lead Attributes
- Send Hot Lead Alert Email
- Notify Sales on Telegram
24 steps in total.
Similar automations
Lead Generation & EnrichmentScore inbound leads with AI, reply by SMS or WhatsApp, alert sales in Slack32 stepsEmail AutomationScore and route inbound leads with Claude, HubSpot, Slack, and Gmail13 stepsEmail AutomationScore and route inbound leads with Gemini, website enrichment, Slack and Sheets32 stepsAlerts & NotificationsScore inbound leads with Google Gemini and route hot leads to a webhook7 steps