# Qualify website leads with OpenAI and log replies in Gmail and Sheets

> Quick overview This workflow captures website form leads via a webhook, screens and scores them with OpenAI, logs every lead to Google Sheets, and creates Gmail reply and follow-up drafts (optionally alerting Slack for hot or risky leads) so you can review before sending. How it works 1. Receives a new lead from a POST webhook (or a manual test lead), or runs on a weekday 9 AM schedule to check for follow-ups. 2. Normalizes the form payload, validates the email, and screens for spam, bots, prompt-injection patterns, risky content, and an optional shared secret. 3. For valid new leads, looks up the email in Google Sheets to skip drafting if the same contact was handled recently. 4. Uses OpenAI to return structured qualification data (fit score, category, intent, budget, timeline, urgency, missing info, and a short owner summary) and assigns a tier (hot, warm, poor fit, spam, or needs review). 5. Drafts a personalized first reply in Gmail for hot/warm leads using OpenAI, or drafts a fixe

- **Domain**: `n8n-workflow-21803.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/21803
- Page (HTML): https://agenstry.com/agents/n8n-workflow-21803.n8n.io
- Documentation: https://n8n.io/workflows/21803
