Quick overview
This workflow receives inbound leads via a webhook, normalizes common form fields, and uses OpenAI to score and tier each lead as HOT, WARM, or NURTURE. It logs the result to Google Sheets, sends a tier-specific email auto-reply, and alerts a Slack channel for HOT leads.
How it works
- Receives an inbound lead submission via a POST webhook.
- Normalizes incoming fields (name, email, company, website, message, budget, timeline, and source) into a consistent structure.
- Sends the normalized lead details to OpenAI to generate JSON scores (fit, budget, urgency, overall), a tier, reasoning, next action, and red flags.
- Merges the AI qualification results back into the lead record and routes the lead based on the tier.
- For HOT leads, posts an alert to Slack, appends the lead to the “Hot Leads” tab in Google Sheets, and sends a HOT auto-reply email.
- For WARM and NURTURE leads, appends the lead to the matching Google Sheets tab and sends the corresponding tier-specific auto-reply email.
- Returns a JSON response to the webhook caller confirming success and the assigned tier.
Setup
- Add an OpenAI credential and customize the system prompt ICP/scoring rules in the OpenAI step.
- Add Google Sheets OAuth credentials, set your spreadsheet ID, and ensure it contains tabs named “Hot Leads”, “Warm Leads”, and “Nurture” with matching columns.
- Add Slack credentials and replace the placeholder Slack channel ID for HOT lead alerts.
- Configure SMTP/email sending credentials, and update the fromEmail address and the “YOUR NAME” placeholders in the email templates.
- Copy the production webhook URL and configure your website or CRM form to send lead submissions to it via POST.
Requirements
- An OpenAI API account (for lead scoring)
- A Google Sheets account with a spreadsheet containing tabs named "Hot Leads", "Warm Leads" and "Nurture"
- A Slack workspace (for HOT-lead alerts)
- An SMTP / email-sending account (for the auto-replies)
Customization
- Edit the OpenAI system prompt to match your ICP and scoring rules
- Adjust the HOT/WARM/NURTURE thresholds in the "Route by Tier" node
- Rewrite the three tier-specific auto-reply emails in your own voice
- Point the webhook at any website form or CRM
Additional info
Built by Operstead. A fuller version with a step-by-step setup guide and an expanded prompt library is available at https://operstead.gumroad.com/l/ai-lead-qualifier