Turns a list of local businesses with a website into a list you can send from. For each domain it finds the published generic inbox (info@, contact@, hello@, or the Gmail address a one-truck shop put on its site) and, where the shop is big enough to show up in a contact database, the owner or general manager by name with email and phone. Every address is verified before it is written. One command, hard spend cap, re-runs free from cache.
Input: the CSV from /google-maps-list-builder (name, website, company_domain, ...) or any CSV with a company_domain or website column. Output: the same rows, in the same
order, plus generic_email, generic_email_source, generic_email_status, mx_provider, gateway, role_account, owner_first_name, owner_last_name, owner_title, owner_email, owner_email_status, owner_phone, owner_linkedin, contact_note. Rows that share a domain are looked up once and get the same contact fields.
mx_provider, gateway and role_account come free with the verification (Google Workspace, Microsoft 365,
Proofpoint, Mimecast...). Use them to split sends by mailbox provider and to route gateway-protected domains to a
warmer sequence; see /email-gateway-detection.
Why the generic inbox comes first
For a local business the generic inbox usually is the owner's inbox: a six-person plumbing shop has no receptionist triaging email, info@ forwards to the owner's phone, and they read it between jobs because quote requests land there. It is also the most reliable address you will get, because the business published it themselves. The owner's personal email is often in no database and a guessed firstname@ on a tiny domain is a bounce. So the generic inbox is the primary contact, and the owner lookup is for shops big enough that someone screens info@, or for rows where no inbox was published. (This is the local-outbound playbook from @shaw_gtm; the tooling below is ours.)
The waterfall, per domain, cheapest first
| Stage | Source | Cost | Stops the waterfall when |
|---|---|---|---|
| 1 | QuickEnrich Contact Finder (free), home_page_email field and the titled-staff count | $0 | it has the site's published email |
| 2 | Plain fetch of /, /contact, /contact-us, /about, /about-us; mailto: and text emails | $0 | an email is found |
| 3 | crawl4ai render of / and /contact, for sites the plain fetch could not read | $0.00025 a page | an email is found |
| 4 | QuickEnrich Domain Search, titles Owner, Founder, President, CEO, General Manager, has_email=1 | ~$0.005 per titled contact with an email, misses free | runs by --owners rule, skipped for chains |
| 5 | Filtrat verify on every email found; MX provider and gateway kept from the same payload | $0.00018 verified or invalid; catch-all and unknown free | always |
Email ranking inside a page: addresses at the company domain first, then generic prefixes (info, contact, hello,
office, ...) before personal ones, and platform noise (sentry, wix, image file names, template placeholders like
info@yourclinic.com) dropped. Up to three candidates are verified in rank order and the best status wins, so an
invalid info@ falls through to a verified contact@.
Two filters keep wrong-entity addresses out of the sendable count:
- Rows whose "website" is a Facebook, Instagram, Yelp, Thumbtack, Justdial, Practo, Google Sites, Wix, WhatsApp
(
wa.me), Linktree or similar listing, platform page or shortener are markedsocial_or_directory_domainand cost nothing; fix the domain or call them. Before this filter, 14 Pune "verified" rows were one SaaS vendor's Gmail scraped from 14*.getmy.clinicpages. - An address at neither the company domain nor a freemail host (Gmail, Yahoo, Outlook, Rediff...) is written with
status
other_domainand not verified: it is the web agency, the font credit or the booking platform, not the business. Freemail is kept because a one-truck shop's Gmail on its own site is the owner's inbox.
--owners:
auto(default): owner lookup only for rows with no verified generic inbox (invalid, catch-all and unknown count as missing). Cheapest, matches the playbook.all: every row, for a measurement run or when the offer needs a named person.none: inbox only.
Chains and franchises are the expensive rows, and are skipped automatically. Domain Search bills per titled
contact on the page, and rotorooter.com or mrrooter.com has dozens, so one call can cost $0.10 and the "owner" it
returns is a manager in another city. The owner stage is skipped, with contact_note=chain_skipped_owner, when the
domain appears on more than one input row (several locations) or the free Contact Finder page shows 10 or more
titled staff. On the Austin run four such pages were 67% of all owner spend and three of them returned an
out-of-town franchise manager or an invalid address.
Measured: 50 Austin plumbers, 1 Dec 2026 (--owners=all)
| Rows | Share | |
|---|---|---|
| Generic inbox found | 26 | 52% (14 site fetch, 11 QuickEnrich free, 1 crawl4ai) |
| Generic inbox verified | 23 | 46% (2 catch-all, 1 invalid) |
| Owner named | 24 | 48% |
| Owner email found | 21 | 42% (18 verified, 2 catch-all, 1 invalid) |
| Owner phone | 6 | 12% |
| Rows with at least one verified email | 35 | 70% |
| Site unreachable | 5 | 10% |
Spend $0.44, of which $0.43 was Domain Search; verification and crawl4ai were under a cent together. Time 3 min
with 8 workers. Of the owner hits, 3 were franchise managers at another location (Mr. Rooter, Roto-Rooter, Benjamin
Franklin), and 2 of the 35 "sendable" rows are those franchise HQ addresses. This run predates the chain skip and
the other_domain rule. Re-measured from the call log: --owners=auto alone would have cost $0.34 ($6.80/1,000);
the chain skip alone $0.14 ($2.80/1,000); both together about $0.09 ($1.80/1,000). Owner search paid for 92 titled
contacts and used 21 of them.
Measured: 976 Pune dentists, 1 Dec 2026 (--owners=auto, default)
| Rows | Share | |
|---|---|---|
| Rows with a usable domain | 522 | 53% (434 had no website, 20 were Facebook or directory links) |
| Generic inbox found | 334 | 64% of usable domains (274 site fetch, 52 QuickEnrich free, 8 crawl4ai) |
| Generic inbox verified, as run | 253 | 48% of usable domains, 26% of all rows (40 invalid, 24 catch-all, 17 unknown) |
| Verified after the v1.1 filters | 226 | 23% of all rows, 190 unique addresses: 22 rows were platform pages (getmy.clinic, Practo, Justdial) and 5 were agency or font-credit addresses |
| Owner named | 2 | ~0%: QuickEnrich's database is US-heavy. 157 lookups, $0.02 charged, all on two wa.me links that are now skipped |
| Site unreachable | 51 | 10% |
Spend $0.04 new for the whole file, 7 minutes with 16 workers; about $0.02 of it was the two WhatsApp links. The whole file had 436 distinct domains on 522 rows (chain clinics appear up to 12 times), which v1.1 fetches once. About 190 of the real verified inboxes are Gmail addresses the clinic published itself, which is normal for Indian SMBs and is the address the dentist actually reads. Outside the US, plan on the inbox stages doing all the work and the owner stage costing nothing; a dedicated Indian people database would be the upgrade if named owners matter.
Honest read of the two benchmarks: count unique verified addresses, not rows. Pune's 253 rows were 201 unique addresses before filtering and 190 real inboxes after; sending to all 253 would have put 14 emails into one vendor's Gmail. The report now prints the unique count next to the row count.
Steps
- Confirm the input has
company_domainorwebsite, and thattregis logged in (treg balance). - Dry run:
uv run scripts/local_contacts.py INPUT.csv --out out/contacts.csv --dry-run. Prints row count, typical and worst-case cost, spends nothing. - Test on 50 rows for real: add
--limit 50 --cap-usd 2. Read the report. - Full run:
uv run scripts/local_contacts.py INPUT.csv --out out/contacts.csv --cap-usd N. The cap is a hard stop on new spend, reserved per call so parallel workers cannot overshoot it together; rows after it are markedcap_aborted, keeping any free-found email. A re-run with the same cap replays everything already fetched at $0, without counting it, and continues where it stopped. A row that threw (treg timeout, bad page) is written withcontact_note=error:<type>and retried next run; the CSV and report are always written. - Report the
<out>.report.mdnumbers: inbox coverage by source, owner coverage, verification split, MX and gateway split, spend by endpoint, unique sendable addresses, and five sample rows. Onlyverifiedaddresses go to Smartlead, deduped on address;catch_allandunknowngo to a call or LinkedIn track;other_domainrows are treated as no email; rows with neither stay as phone-only (the Maps pull gave 93%+ a phone). - Hand off to
/cold-email-starter-kit. Write to the business by name when sending to the generic inbox; use the owner's first name only onowner_emailrows.
Do not: guess firstname@domain when both stages miss, send to a catch-all because the count looks small, or run
--owners=all on a list that still contains chains.
Quick reference
| Flag | Meaning | Default |
|---|---|---|
--out PATH | output CSV; report at <out>.report.md | required |
--owners auto|all|none | when to run the owner lookup | auto |
--titles "A,B" | owner titles for Domain Search | Owner, Founder, President, CEO, General Manager |
--cap-usd N | hard stop on new spend; cache replays are free and uncounted | 5 |
--limit N | first N rows only | all |
--workers N | parallel domains | 8 |
--crawl-always | run crawl4ai even when the plain fetch read the site but found no email | off |
--dry-run | count and estimate, no calls | off |
--selftest | offline checks of the parsers |
Cache: .cache/calls.jsonl holds every successful call (emails included), loaded into memory once per run. It is
git-ignored; delete it when a project ends. Errors and refusals are not cached, so a re-run retries them. The owner
lookup is keyed on domain and titles only, so changing other request parameters does not re-bill it.
contact_note values: no_domain, social_or_directory_domain, site_unreachable, chain_skipped_owner,
cap_aborted: ..., error:<ExceptionType>.
Files
skills/local-contact-finder/
SKILL.md
scripts/local_contacts.py # the whole pipeline, stdlib only, calls treg via the CLI
tests/test_local_contacts.py # --selftest plus five end-to-end runs against a fake treg: fallthrough, cap abort
# and $0 replay, chain/duplicate skip, other_domain and platform rows, per-row errors
tests/fake_treg.py # the stand-in CLI; no network, no spendRelated skills
/google-maps-list-builder, the step before this one/email-waterfall, for lists that already have a person's name or LinkedIn URL/list-quality-scorecard, to grade the output
