# AI Lead Qualifier: Score Leads From Google Maps & Websites (`macgitarra/ai-lead-qualifier`) Actor

Give it company websites or a Google Maps / leads dataset plus your ideal customer. AI reads each website, checks every criterion, scores fit 0-100 with reasons, writes a personalized opener and extracts emails, phones and socials. Pay only for qualified companies.

- **URL**: https://apify.com/macgitarra/ai-lead-qualifier.md
- **Developed by:** [Finasoft](https://apify.com/macgitarra) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 qualified companies

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## AI Lead Qualifier: score leads from Google Maps, lead lists and websites

Scraping leads is easy. Deciding which ones are worth contacting is the slow part. **AI Lead Qualifier** reads the website of every company on your list, compares it with *your* ideal customer profile and tells you:

- **Fit score 0-100** with 2-4 reasons taken from the website, plus red flags
- **What the company does**: summary, industry, products/services, target customers, B2B/B2C, size signals, location
- **A personalized opener**: one natural first sentence for a cold email or LinkedIn message, in the language you choose
- **Contacts found on the site**: emails, phones, LinkedIn, Facebook, Instagram, X, YouTube, TikTok

You get a table you can export to CSV/Excel and a ready **HTML report with leads ranked by fit**.

No API keys or AI accounts needed.

### How it works

1. You describe your ideal customer in plain words, e.g. *"Independent dental clinics in Germany with 3+ dentists that offer implants"*.
2. You add companies: paste websites, or pick the dataset of a scraper you already ran.
3. For each company the Actor reads the homepage and up to 5 key pages (about, products/services, pricing, customers, contact). It respects robots.txt.
4. AI scores the company against your profile and writes the profile and the opener.

### Works with the scrapers you already use

Pick a dataset in the input. The website column is detected automatically, and rows with the same domain are merged (e.g. 5 people from one company = 1 company to qualify):

- **Google Maps scrapers**: `website`, `title`, `categoryName`, `city`
- **Leads / B2B contact lists**: `organization_website_url`, `companyWebsite`, `companyDomain`, `organization_name`…
- **Contact details / website crawlers**: `url`, `domain`, `originalStartUrl`
- **Any list with business emails**: the domain of `jan@acme.com` is used
- Your own CSV uploaded as a dataset, or a plain list of domains

If auto-detection picks the wrong column, set *Website field* in the Advanced section.

### Input example

```json
{
  "idealCustomer": "B2B SaaS companies with 20-200 employees that sell to finance teams in Europe",
  "yourOffer": "We help SaaS companies cut payment failures with smart retries.",
  "websites": ["pipedrive.com", "basecamp.com", "apify.com"],
  "outreachLanguage": "English",
  "maxPagesPerSite": 4
}
```

### Output example

```json
{
  "fitScore": 82,
  "companyName": "Acme Analytics",
  "domain": "acme-analytics.com",
  "summary": "Sales dashboards for mid-sized retailers in Germany and Austria.",
  "industry": "Retail analytics software",
  "businessModel": "B2B",
  "sizeSignals": "40 employees, 300 retail customers",
  "location": "Berlin, Germany",
  "fitReasons": ["Sells SaaS to retailers (B2B)", "Pricing page shows monthly plans for finance users", "Team of ~40 people"],
  "redFlags": [],
  "opener": "Saw that Acme now powers sales dashboards for 300 retailers in DACH; with monthly plans, failed card payments probably cost you more than you think.",
  "emails": ["sales@acme-analytics.com"],
  "phones": ["+4930123456"],
  "linkedin": "https://www.linkedin.com/company/acme-analytics",
  "pagesRead": ["https://acme-analytics.com/", "https://acme-analytics.com/about", "https://acme-analytics.com/pricing"],
  "error": null
}
```

Companies that could not be analysed (website down, blocked by robots.txt, a placeholder page with no text) are listed with the reason in `error` and are **not charged**.

### Pricing

Pay per event: you pay only for **companies the AI actually qualified**. Unreachable websites and failed analyses are free. Set a spending limit on the run and the Actor stops cleanly when it is reached.

### Tips for better scores

- **Be specific in the profile.** "Restaurants" gives vague scores; "Family-owned Italian restaurants in Munich with online table booking and 50+ seats" gives sharp ones.
- **Say what disqualifies a company**, e.g. "not franchises, not hotel restaurants".
- **Add what you sell** to get openers that lead to your offer instead of generic ones.
- Scores of 60-79 mean "likely fit, but something could not be checked on the website". Read the reasons.
- Use 4-6 pages per site when you need contacts; 1-2 pages is enough for a fast first filter.

### Use cases

- Agencies filtering Google Maps leads before cold calling or emailing
- SDRs prioritising a purchased B2B list
- Founders checking which companies from an event or directory match their ICP
- Recruiters and partnership managers screening companies at scale

### FAQ

**Does it work for non-English websites?**
Yes. The AI reads websites in any language and writes the profile and opener in the language you choose.

**Does it visit LinkedIn or Facebook?**
No. It reads only the company's own public website. Social profile links found on the site are returned as data.

**Some websites show "almost no readable text".**
These sites build their content with JavaScript or are placeholders. They are skipped and not charged.

**How accurate are the scores?**
The AI judges only from what the website says and explains every score. When a criterion cannot be checked, it says so and does not score above 79. Check key facts before outreach.

**Is it legal?**
The Actor reads public company websites and respects robots.txt. You are responsible for how you use contact data, e.g. GDPR and anti-spam rules in your country.

# Actor input Schema

## `idealCustomer` (type: `string`):

Who you want to sell to, in plain words. Be specific: industry, type of business, size, location, signals. E.g. "Independent dental clinics in Germany with 3+ dentists that sell implants or aligners" or "B2B SaaS companies with 20-200 employees selling to finance teams".

## `websites` (type: `array`):

One website or domain per line, e.g. acme.com or https://www.acme.com/en. Emails like jan@acme.com also work (the domain is used). Social profiles and marketplaces are skipped.

## `datasetIds` (type: `array`):

Pick the dataset(s) of a Google Maps scraper, contact details scraper, leads / company list or any dataset with a website or domain column. Rows with the same domain are merged. The Actor gets read-only access to the datasets you pick.

## `yourOffer` (type: `string`):

One or two sentences about your product or service. The AI connects the opener to it, e.g. "We build booking software that cuts no-shows by 30%".

## `outreachLanguage` (type: `string`):

E.g. English, German, Spanish, French, Polish.

## `maxCompanies` (type: `integer`):

Analyse at most this many unique companies (1-5,000). You are charged only for companies the AI actually qualified.

## `maxPagesPerSite` (type: `integer`):

Homepage plus up to this many minus one of: about, products/services, pricing, customers, contact (1-6). More pages give better scores and more contacts.

## `websiteField` (type: `string`):

Only if auto-detection picks the wrong column in your dataset. Dot paths work, e.g. organization.website_url.

## `nameField` (type: `string`):

Only if auto-detection picks the wrong column.

## Actor input object example

```json
{
  "idealCustomer": "B2B software companies that sell to mid-sized businesses and publish their pricing online",
  "websites": [
    "basecamp.com",
    "pipedrive.com",
    "apify.com"
  ],
  "outreachLanguage": "English",
  "maxCompanies": 100,
  "maxPagesPerSite": 4
}
```

# Actor output Schema

## `report` (type: `string`):

No description

## `leads` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "idealCustomer": "B2B software companies that sell to mid-sized businesses and publish their pricing online",
    "websites": [
        "basecamp.com",
        "pipedrive.com",
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("macgitarra/ai-lead-qualifier").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "idealCustomer": "B2B software companies that sell to mid-sized businesses and publish their pricing online",
    "websites": [
        "basecamp.com",
        "pipedrive.com",
        "apify.com",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("macgitarra/ai-lead-qualifier").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "idealCustomer": "B2B software companies that sell to mid-sized businesses and publish their pricing online",
  "websites": [
    "basecamp.com",
    "pipedrive.com",
    "apify.com"
  ]
}' |
apify call macgitarra/ai-lead-qualifier --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,macgitarra/ai-lead-qualifier"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/dDozMhGovLUu1ZdXA/builds/r17OHvlGyCVjAEGqa/openapi.json
