# Lead Stopwatch: Secret Shopper Speed-to-Lead Test (`growth-installations/lead-stopwatch`) Actor

Secret-shopper speed-to-lead test for local businesses. Fills each website's quote form with a test request, times the auto-reply and the first real human reply, cold time, follow-ups and review requests, then grades A-F and ranks locally.

- **URL**: https://apify.com/growth-installations/lead-stopwatch.md
- **Developed by:** [Growth Installations](https://apify.com/growth-installations) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/running/actors-in-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

## Lead Stopwatch: Secret Shopper Speed-to-Lead Test

**Lead Stopwatch** is a secret-shopper test that measures speed to lead for local businesses. It fills in a business's own website contact or quote form with a harmless test request. Then it times what happens next: the automatic reply, the first reply from a real person, how long the lead goes cold, how many follow-ups arrive, and whether anyone asks for a review. Every test ends up as a letter grade (A–F), a local rank, and a one-page **Response Scorecard** you can hand to the owner.

It's built for agencies, consultants, franchise operators and multi-location owners who sell or manage front-desk, lead-response and follow-up services, and who want proof with timestamps instead of a pitch.

### Owner-ordered tests

Lead Stopwatch is for **tests the business owner ordered and authorized**, for example as part of a paid audit or a before/after check on your service.

- **Consent per business.** Every business needs `ownerConsent: true` before a real test is submitted. Without it, the row is skipped as `no-consent` and nothing is sent.
- **A consent record.** `consentReference` (for example, "Agreement #1042, signed 2026-11-03") is stored with the test and printed on the scorecard.
- **The owner's windows.** `approvedTestWindows` (for example `mon-fri 08:00-18:00`) and `doNotContactTimes` (for example `2026-11-26` or `daily 21:00-07:00`) are checked in the business's time zone. When a run falls outside them, the row is marked `outside-test-window`. Run plant again later.
- **Dry runs ignore consent.** They only read the public website to map the form, and they never submit anything.
- **Harmless requests.** The test persona asks for a quote and availability, never books a real slot, and contains no real personal data. Forms that require a phone number, address or ZIP are skipped as `field-blocked` unless you give a number or ZIP you control.
- **Hands off protections.** Captchas are never bypassed (`captcha-blocked`). Booking and chat widgets (Calendly, Housecall Pro, Jobber, ServiceTitan, Podium, Birdeye, GoHighLevel, Acuity, Zocdoc, NexHealth and more) are logged as `widget-detected` and left alone.

### What it measures

| Metric | Meaning |
|---|---|
| Time to first auto-reply | Submit time → first automated acknowledgement |
| Time to first human reply | Submit time → first email written by a real person |
| Cold time | Time the lead waited for real contact. If nobody replies by the end of the window, it shows "never contacted" |
| Longest silence | Biggest gap with no contact during the window |
| Follow-ups | Messages after the first one, within the window |
| Review request | Whether any message contained a Google review / g.page / Birdeye / Podium / NiceJob / Grade.us / Yelp review link or ask |
| Grade | **A** under 5 min · **B** under 1 h · **C** under 4 h · **D** under 24 h · **F** over 24 h or never |
| Local rank | Rank within your comparison group (city/industry), fastest human reply first |

Each reply is labeled **automated** or **human** from its headers (Auto-Submitted, Precedence, List-Unsubscribe), no-reply and platform senders, template wording, and how soon it arrived after the submit. You can also add an OpenAI API key, and a small model will label each reply as well.

### How to use it

1. **Set up a reply inbox** (one time). You can use either option:
   - **Gmail or Google Workspace plus-addressing:** set `plusAddressBase` to `tests@yourdomain.com`. Each business gets `tests+ls-<campaign>-<business>@yourdomain.com`. For check mode, create a Google **app password** and use `imap.gmail.com`.
   - **A catch-all domain or subdomain:** set `testInboxDomain` to `shop.yourdomain.com`, and route all of its mail to one IMAP mailbox.
2. **Dry run** (`mode: plant`, `dryRun: true`, which is the default). Check which businesses have a form that can be tested. Nothing is submitted.
3. **Plant** (`mode: plant`, `dryRun: false`). This submits one test request per consenting business inside its approved window and records the exact submit time with a confirmation screenshot.
4. **Check** (`mode: check`). Schedule this every 30 minutes for the test window, which is 7 days by default. It reads the inbox, matches replies by each unique address, and updates the timers, the dataset and the scorecards. Timers are saved in the named key-value store `lead-stopwatch-state` under your `campaignId`.
5. **Report** (`mode: report`). This rebuilds the dataset and the scorecards at any time without reading mail.

Use the same `campaignId` for all the runs in one batch.

#### Input example

```json
{
  "mode": "plant",
  "dryRun": false,
  "campaignId": "rva-hvac-nov",
  "plusAddressBase": "tests@youragency.com",
  "agencyName": "Your Agency",
  "ctaText": "Book a 15-minute fix call",
  "ctaUrl": "https://youragency.com/fix",
  "businesses": [
    {"url": "https://acmehvac.com", "name": "Acme HVAC", "ownerName": "Dana Lee", "industry": "hvac", "group": "Richmond HVAC",
     "ownerConsent": true, "consentReference": "Agreement #1042, 2026-11-03",
     "approvedTestWindows": ["mon-fri 08:00-18:00"], "doNotContactTimes": ["daily 21:00-07:00"]}
  ]
}
```

### Output

There is **one dataset row per business**. Each row includes the status (`form-ready`, `submitted`, `submitted-unconfirmed`, `no-form-found`, `widget-detected`, `captcha-blocked`, `multi-step`, `field-blocked`, `no-consent`, `outside-test-window`, `no-website`, `site-unreachable`, `error`), the form URL, mapped fields, detected widgets, the reply address, the submit time, a confirmation screenshot link, every timer, the grade, the local rank, the message log and a **scorecard link**.

The **Response Scorecard** is a one-page HTML report written to the owner who ordered it. It shows the grade, the stopwatch timeline, how they compare nearby (other businesses appear anonymously as Business A, B and so on), and an optional button to your offer.

### Pricing (pay per event)

| Event | Price |
|---|---|
| Business tested (one real request submitted, timed for the whole window, inbox checks and scorecard included) | $3.00 |
| Form check (dry run, or a business that couldn't be tested) | $0.05 |
| Inbox check (one check-mode run, all businesses in the campaign) | $0.02 |
| Scorecard report (report mode, per scorecard) | $0.05 |

Example: testing 50 consenting businesses for a week, with checks every 30 minutes, costs about $150 + $6.72.

### Limits

- Roughly 70–80% of small-business sites have a plain form that can be tested. The rest use widgets, captchas or multi-step flows, and are flagged for a manual test.
- A "submitted-unconfirmed" status means the form posted without a clear thank-you page. Check the screenshot.
- Review requests usually come only after a finished job, so the review result is a signal, not a full test.
- v1 tests email only. Phone calls and texts are not placed.

### Roadmap (v2, not built yet)

- **Callback decoy line:** a test phone number that answers the business's callback in persona (an urgent repair, a price shopper, or a routine follow-up). With consent covered by the owner's agreement, it records and transcribes the callback and scores how the staff handled it: greeting, qualifying questions, pricing, and whether they tried to book.
- **Calls and texts:** after-hours and weekend test calls and text-back timing.
- **Recurring tests:** monthly or quarterly retests on a schedule, with before/after trends.

### FAQ

**Does it email or call anyone?** No. It only submits the website form of businesses whose owner consented, and only when you turn off Dry run.

**Is my IMAP password safe?** It's a secret input field, so it's stored encrypted and never logged.

**Can I use it without an inbox?** Yes for dry runs. For check mode, you can pass `mockMessages` to try the scoring.

# Actor input Schema

## `mode` (type: `string`):

plant = find each business's contact/quote form and (unless Dry run) submit one test request. check = read the reply inbox and update every timer (schedule this every 30 minutes). report = rebuild the dataset and scorecards without reading mail.

## `dryRun` (type: `boolean`):

On by default. Finds the form on each site, maps its fields and tells you whether it can be tested, but never submits. Turn off only when you are ready to send real test requests.

## `businesses` (type: `array`):

Businesses whose OWNERS ordered and authorized this test. Website URLs or Google Maps place URLs, or objects like {"url": "https://acmehvac.com", "name": "Acme HVAC", "ownerName": "Dana Lee", "industry": "hvac", "group": "Richmond HVAC", "ownerConsent": true, "consentReference": "Agreement #1042, signed 2026-11-03", "approvedTestWindows": \["mon-fri 08:00-18:00", "sat 09:00-12:00"], "doNotContactTimes": \["2026-11-26", "daily 21:00-07:00"], "timezone": "America/New_York"}. A real test is only planted when ownerConsent is true and the current time is inside an approved window and outside every do-not-contact time; otherwise the row is skipped as no-consent or outside-test-window. Dry runs ignore consent (they only read the public site).

## `campaignId` (type: `string`):

Name for this batch of tests. Use the same ID for plant, check and report runs so they share timers.

## `defaultIndustry` (type: `string`):

Used to pick the service in the request when a business has no industry, e.g. hvac, plumber, roofer, dentist, med spa.

## `defaultGroup` (type: `string`):

Businesses in the same group are ranked against each other, e.g. 'Richmond HVAC'.

## `defaultApprovedTestWindows` (type: `array`):

Used when a business has no approvedTestWindows. Rules in the business's time zone: 'mon-fri 08:00-18:00', 'sat', 'daily 09:00-17:00', or an ISO range '2026-11-05T09:00/2026-11-05T12:00'. Empty = any time.

## `defaultDoNotContactTimes` (type: `array`):

Used when a business has no doNotContactTimes. Same rule format, plus whole dates like '2026-11-26'.

## `plusAddressBase` (type: `string`):

A Gmail or Google Workspace address, e.g. tests@yourdomain.com. Each business gets a unique address like tests+ls-default-acmehvac-1a2b@yourdomain.com. Use this OR a catch-all domain.

## `testInboxDomain` (type: `string`):

A domain or subdomain whose mail all lands in one inbox, e.g. shop.yourdomain.com. Each business gets ls-<campaign>-<business>@shop.yourdomain.com. Takes priority over plus-addressing.

## `firstName` (type: `string`):

First name used on the form. Use a test persona, not a real person.

## `lastName` (type: `string`):

Used only when the form asks for a last name.

## `messageTemplate` (type: `string`):

{firstName} and {service} are filled in. Keep it harmless: ask for a quote and availability; never book a real slot.

## `serviceByIndustry` (type: `object`):

Overrides the built-in service phrases, e.g. {"hvac": "a furnace check"}. Built in: hvac, plumber, roofer, electrician, dentist, orthodontist, chiropractor, med spa, veterinarian and more.

## `defaultService` (type: `string`):

Used when the industry has no phrase.

## `testPhone` (type: `string`):

Only used when a form requires a phone. Must be a number you control. Leave empty and forms that require a phone are skipped as field-blocked.

## `zipCode` (type: `string`):

Filled only when a form requires a ZIP.

## `disclosureLine` (type: `string`):

Appended to the message, e.g. 'This is a response-time test from Acme Agency.'

## `windowDays` (type: `integer`):

How long each test keeps timing replies.

## `imapHost` (type: `string`):

e.g. imap.gmail.com

## `imapPort` (type: `integer`):

SSL port.

## `imapUser` (type: `string`):

Usually the full email address.

## `imapPassword` (type: `string`):

For Gmail use an app password. Stored encrypted.

## `imapFolder` (type: `string`):

Folder to read.

## `imapExtraFolders` (type: `array`):

Also read these, e.g. \["\[Gmail]/Spam"] so auto-replies caught as spam still count.

## `openaiApiKey` (type: `string`):

If set, each reply is also labeled automated vs human by a small OpenAI model. Without it a header + wording heuristic is used.

## `agencyName` (type: `string`):

Shown on the Response Scorecard.

## `ctaText` (type: `string`):

e.g. 'Book a 15-minute fix call'

## `ctaUrl` (type: `string`):

Where the button goes.

## `timezone` (type: `string`):

IANA zone for times on the scorecard.

## `maxBusinesses` (type: `integer`):

Safety cap.

## `maxConcurrency` (type: `integer`):

1-5.

## `replant` (type: `boolean`):

Off: businesses already planted in this campaign are skipped.

## `stateStoreName` (type: `string`):

Named key-value store that keeps timers between runs.

## `proxyConfiguration` (type: `object`):

Optional. Helps when resolving Google Maps URLs.

## `mockMessages` (type: `array`):

For trying check mode without an inbox: \[{"to": "<reply address>", "from": "...", "subject": "...", "body": "...", "receivedAt": "+12m", "headers": {}}]. receivedAt can be ISO time or +Nm/+Nh after the submit.

## Actor input object example

```json
{
  "mode": "plant",
  "dryRun": true,
  "businesses": [
    {
      "url": "https://www.example-hvac-company.com",
      "name": "Example HVAC",
      "ownerName": "Dana Lee",
      "industry": "hvac",
      "group": "Richmond HVAC",
      "ownerConsent": false,
      "consentReference": "",
      "approvedTestWindows": [
        "mon-fri 08:00-18:00"
      ],
      "doNotContactTimes": [
        "daily 21:00-07:00"
      ]
    }
  ],
  "campaignId": "default",
  "firstName": "Jordan",
  "lastName": "Reed",
  "messageTemplate": "Hi, this is {firstName}. I'm looking for a quote on {service}. What's your availability over the next couple of weeks? Email is the best way to reach me.",
  "defaultService": "a quote for your services",
  "windowDays": 7,
  "imapPort": 993,
  "imapFolder": "INBOX",
  "timezone": "America/New_York",
  "maxBusinesses": 200,
  "maxConcurrency": 2,
  "replant": false,
  "stateStoreName": "lead-stopwatch-state",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `files` (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 = {
    "businesses": [
        {
            "url": "https://www.example-hvac-company.com",
            "name": "Example HVAC",
            "ownerName": "Dana Lee",
            "industry": "hvac",
            "group": "Richmond HVAC",
            "ownerConsent": false,
            "consentReference": "",
            "approvedTestWindows": [
                "mon-fri 08:00-18:00"
            ],
            "doNotContactTimes": [
                "daily 21:00-07:00"
            ]
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("growth-installations/lead-stopwatch").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 = { "businesses": [{
            "url": "https://www.example-hvac-company.com",
            "name": "Example HVAC",
            "ownerName": "Dana Lee",
            "industry": "hvac",
            "group": "Richmond HVAC",
            "ownerConsent": False,
            "consentReference": "",
            "approvedTestWindows": ["mon-fri 08:00-18:00"],
            "doNotContactTimes": ["daily 21:00-07:00"],
        }] }

# Run the Actor and wait for it to finish
run = client.actor("growth-installations/lead-stopwatch").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 '{
  "businesses": [
    {
      "url": "https://www.example-hvac-company.com",
      "name": "Example HVAC",
      "ownerName": "Dana Lee",
      "industry": "hvac",
      "group": "Richmond HVAC",
      "ownerConsent": false,
      "consentReference": "",
      "approvedTestWindows": [
        "mon-fri 08:00-18:00"
      ],
      "doNotContactTimes": [
        "daily 21:00-07:00"
      ]
    }
  ]
}' |
apify call growth-installations/lead-stopwatch --silent --output-dataset

```

## MCP server setup

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

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/rdeZjvUlBggjpY8oX/builds/gH5xi9smc81es4cIa/openapi.json
