Qualify inbound leads with OpenAI, Slack, and Google Sheets
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
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Product Ad Copy & CTAs with GPT-4 for Slack and Airtable
⚡ AI Copywriter Pro: Instant Ad Copy & CTA Generator Transform product details into compelling marketing copy in second...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments