Email Automation
Qualify and score omnichannel leads with OpenAI, Gmail, and Google Sheets
When an API call/webhook arrives, it handles email with OpenAI / ChatGPT using Gmail, Google Sheets.
What it does
## PF-001 - Omnichannel AI Lead Qualification & Response Hub ### How it works This workflow receives new leads from Gmail or a webhook, normalizes them into a shared format, applies business configuration, and validates required lead details. It checks Google Sheets for duplicates, restores the lead payload, then uses an OpenAI-powered analyzer and scoring code to qualify the lead. Qualified leads are saved to Google Sheets, routed by score, and hot leads get an AI-written Gmail draft prepared for follow-up. ### Setup steps - Configure Gmail credentials for the Gmail trigger and Gmail draft creation nodes. - Configure the webhook URL and ensure incoming webhook payloads match the fields expected by the normalization code. - Connect Google Sheets credentials and select the spreadsheet/range used for loading existing leads and saving new lead rows. - Configure OpenAI credentials for both AI chain nodes and verify the selected chat models are available. - Update the “CONFIGURE PF-001 HERE” node with the business name, business description, services offered, and hot lead threshold. - Confirm the Google Sheet has columns compatible with the duplicate check and prepared database row output. ### Customization Adjust the hot-lead threshold, scoring logic, AI prompts, lead fields, and routing branches to match the business’s qualification criteria and follow-up process.
The steps
- Route by Lead Score
- OpenAI GPT-5.6 Response
- Parse Response Output
- Set Lead Configuration
- Restore Lead Data
- Capture Webhook Leads
- Check for Duplicate Leads
- Capture Gmail Leads
- Set Gmail Lead Data
- Set Webhook Lead Data
- If Lead Valid
- Read Existing Leads from Sheets
- If Duplicate Lead
- Analyze Lead with AI
22 steps in total.
Similar automations
Email AutomationQualify and score Telegram leads with OpenAI, Google Sheets and Gmail15 stepsEmail AutomationQualify, score and track supplier applications with Google Sheets and Gmail23 stepsAI Agents & AssistantsQualify and score web form leads with Groq, Google Sheets, Telegram and Slack10 stepsLead Generation & EnrichmentQualify inbound form leads with Gaffa website checks and HubSpot12 steps