# 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.

- URL: https://www.automongo.com/automations/qualify-inbound-leads-homepage-content/
- Summary: Score new inbound leads against questions learned from your past customers' websites.
- Tools: n8n
- Difficulty: Advanced
- Category: Sales
- Tags: lead-qualification, apify, gemini, google-sheets, slack
- Published: 2026-11-26
- External resource: https://n8n.io/workflows/23533-qualify-inbound-leads-from-homepage-content-with-apify-gemini-and-typesafe/?ref=ez5zfu33yh5f&utm_source=affiliate

## 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

- **Criteria From Real Data**: Qualification questions come from the homepages of customers who actually converted, not from a guessed ICP.
- **Instant Scoring**: Each inbound domain is fetched and scored as soon as the webhook fires, so sales sees fit leads without manual research.
- **Explainable Results**: Scores map to plain yes/no questions, which makes it easy to see why a lead passed or failed.
- **Low Input Requirement**: Only a domain is needed to qualify a lead; no form enrichment or third-party data provider is required.
- **Retrainable**: Rerun the manual path after new deals close to refresh the questions as your customer base shifts.

### Advanced Features

- Two independent entry points (manual trigger and webhook) share one question store in Google Sheets.
- LLM-generated question set is versioned with a `generated_at` timestamp, and the scoring path always loads the latest one.
- Domain normalization turns bare inputs such as `example.com` into fetchable URLs before scraping.
- Threshold-based branching in the **Is qualified?** node filters out low-fit leads before they reach Slack.

### Customization Options

- Change the 0.7 threshold in **Is qualified?** to make alerts stricter or looser.
- Route qualified leads to a CRM instead of, or in addition to, Slack.
- Point Slack notifications at whichever channel your sales team prefers.
- Replace Gemini with another LLM node to match your model subscription.

### Best Practices

- Give the training path a balanced sample of converted and non-converted leads, otherwise the questions will lean toward whichever group dominates.
- Review the generated questions in the Questions tab before relying on the scores; edit any that describe generic website features rather than fit.
- Rerun training on a regular cadence, for example after each quarter's closed deals, so the criteria track your current ICP.

### Use Cases

- Prioritize demo requests by sending each submitted company domain to the webhook.
- Flag high-fit free-trial signups for a sales-assist follow-up within minutes.
- Pre-qualify inbound partner or agency applications before a human review.
- Score a backlog of unworked inbound leads in bulk to decide which to call first.
- Validate whether a new marketing channel is bringing in accounts that resemble past customers.
