Sales Advanced

Qualify Inbound Leads From Homepage Content

Learn what your converted customers have in common from their homepages, turn it into yes/no qualification questions with Gemini, then score every new inbound lead with TypeSafe and alert sales in Slack.

At a glance

Qualify Inbound Leads From Homepage Content is an advanced-level sales automation built with n8n. Score new inbound leads against questions learned from your past customers' websites.

Tools required
n8n
Tags
#lead-qualification #apify #gemini #google-sheets #slack
Difficulty
Advanced
Published
· 3 min read

How It Works

This n8n workflow runs in two paths. A manual training path reads past leads and their Converted status from Google Sheets, scrapes each lead’s homepage with Apify, and asks Google Gemini to derive an ICP summary plus 4 to 8 yes/no qualification questions that separate converted from non-converted accounts. A webhook path then takes any new lead’s domain, fetches its homepage, scores it against the saved questions with TypeSafe, and posts the lead to Slack when the fit score reaches 0.7 or higher.

Setup Steps

  1. Prepare the Google Sheet: Create a Leads tab with at least Website and Converted (Yes/No) columns, and a Questions tab with generated_at, questions_json, and summary columns. Paste the spreadsheet ID into every Google Sheets node.
  2. Connect Credentials: Add credentials for Google Sheets, Apify, Google Gemini (PaLM/Gemini API), TypeSafe, and Slack. Pick the Slack channel that should receive qualified leads.
  3. Run the Training Path: Trigger the manual path once so Gemini generates the question set and writes it to the Questions tab.
  4. Wire Up the Webhook: Copy the qualify-lead webhook URL and send requests with a domain parameter, in the query string or the body, from your form, CRM, or signup flow.
  5. Check Your Credits: The workflow needs an Apify account and Gemini credit. Swap the LLM node for another model if that fits your subscription better.

Automation Workflow

Training path
Manual Trigger
  ↓
Google Sheets (read Leads: Website, Converted)
  ↓
Apify Website Content Crawler (scrape each homepage)
  ↓
Group into converted vs not-converted examples
  ↓
Google Gemini (ICP summary + 4 to 8 yes/no questions)
  ↓
Google Sheets (save to Questions tab)

Scoring path
Webhook (domain) → Normalize to full URL → Apify Web Fetch (homepage)
  ↓
Google Sheets (load latest question set)
  ↓
TypeSafe (score homepage against each question)
  ↓
Is qualified? (score ≥ 0.7)
  ↓
Slack (post lead + fit scores)

Benefits

Advanced Features

Customization Options

Best Practices

Use Cases

Related Automations