Case study · AI-supported buyer search
Finding and scoring 3,572 potential buyers from free public data
A new B2B equipment supplier needed to know who to contact first. An automated pipeline, built with AI-assisted development, produced a scored and sourced account list across three locations.
At a glance
- Problem
- A new equipment supplier didn't know which buyers to contact first.
- What was built
- A step-by-step pipeline using free public data, with a person checking the results.
- Result
- 3,572 organisations scored in about 4 hours. 584 rated A or B.
- Lesson
- Great at finding and ranking. Weaker at finding a named contact.
The full method and results are below.
- 3,749raw records collected from open map data across three locations
- 341accredited hospitals added from the register, with bed counts read from 137 certificate PDFs
- 3,572unique accounts after cleaning and merging
- 584accounts scored A or B (282 A, 302 B)
- 589excluded as not a fit, such as clinics and laboratories
- 186A and B accounts enriched in the pilot location
01The problem
The client is a new supplier of commercial equipment, selling to hospitals, hotels, resorts and care homes. It was entering a regional market with established national competitors and had no list of who to approach.
The usual options were both poor. Bought contact lists are costly, often out of date, and give no reason why one organisation matters more than another. Building a list by hand, one search at a time, would take weeks and could not be repeated for the next location.
The brief was to build a repeatable way to find likely buyers, estimate how large each one is, and identify the right person to contact, using free sources first.
02The pattern
This is a fixed, step-by-step pipeline, not an autonomous agent. The path through the work is known in advance, so each step is a script with a defined input and output, and every step can be checked. That was a deliberate choice: the task is predictable, and a predictable task does not need an agent deciding what to do next.
- CollectPull each source
- Clean and merge3,572 organisations
- Score584 scored A or B
- Enrich186 in the pilot location
- AssembleOne row per account
Every raw response is saved, and every row records its source.
- Step 1
Collect
Three public sources per location
Open map data (OpenStreetMap) for hospitals, hotels, resorts, care homes and hostels; a national hospital accreditation register, including bed counts read from each certificate PDF; and a regional tourism authority's approved lists and trade-fair registrant PDFs.
- Step 2
Clean and merge
One record per organisation
Names are normalised, and records are matched across sources on name similarity plus postcode. Every row keeps a source column showing where it came from.
- Step 3
Score
A transparent rule set
Each account is scored A, B, C or excluded, with the reason written beside it: for example "120 beds" or "4 star". No model decides the score.
- Step 4
Enrich
Only the A and B accounts
A search-results API fills in phone numbers, websites and social pages. A crawler then reads each organisation's own website for named managers and published contact details.
- Step 5
Assemble
A call-ready sheet
One row per account with the best-matched decision-maker first, ranked by role: purchasing, materials, housekeeping, engineering, then general management.
- Step 6
Review
A person checks before any contact
Rows the pipeline is unsure about carry a "needs check" flag. Nothing is sent automatically.
A second track covered buyers who do not exist yet: 60 hotel projects under development were researched and compiled with their developers, operators and expected opening dates. A script then checked how recently each project had been in the news, so stalled projects could be told apart from active ones. A further 67 consultancies and design firms that specify this kind of equipment were listed and enriched in the same way.
03The tools
- Python, in 13 scripts of about 2,700 lines, using the standard library where possible
- AI-assisted development (Claude Code) to write, test and revise the scripts against a written project brief
- OpenStreetMap Overpass API for location and category data
- A search-results API for phone numbers, websites and public profile links, with 813 queries cached
- A purpose-built website crawler that follows only contact, about and management pages on each organisation's own site
- PDF and spreadsheet libraries to read certificates and registrant lists, and to produce the final workbooks
Every raw response is saved before processing, so no query is paid for twice and any result can be traced back to its source.
04Where people approve
- One location first. The pipeline was run on a single location and the row counts and samples were reviewed before it was extended to two more.
- Scoring rules are written by a person. The rules are plain to read, and each score carries its reason, so a wrong score can be traced to the rule that produced it.
- Uncertain matches are flagged. Where a search result may not be the right organisation, the row is marked for a manual check.
- No automatic outreach. The output is a sheet for a person to work from. The pipeline sends nothing.
Data handling was set as rules before any code was written: robots.txt is respected, requests are spaced 1.5 seconds apart, professional networking sites are never fetched, and email addresses are taken only from published pages and never guessed. Each named contact carries its source, a consent note and an opt-out field.
05How results were measured
The measures here are about coverage and data quality. Outreach had not started when this was written, so there are no reply or sales figures yet.
| Measure, pilot location | Result |
|---|---|
| A and B accounts taken forward | 186 |
| Matched to a map listing by the search step | 161 of 186 (87%) |
| Phone number found by the search step | 112 of 186 (60%) |
| Website found by the search step | 120 of 186 (65%) |
| Websites crawled for named contacts | 84 |
| Accounts with a named contact | 45 of 186 (24%) |
| Accounts with a published contact email for that person | 10 of 186 (5%) |
Compared with other approaches
Most sales teams do not build lists purely by hand. The usual practice is to filter a paid contact database, enrich and verify the results, and fill the remaining gaps manually. Fully manual research is the fallback in local markets where those databases are thin. Only the pipeline was run in this project, so the other two columns describe how those approaches generally work, based on published sales guides and surveys, and were not tested on this market.
| Standard practice paid data tools, with gaps filled by hand | Fully by hand the fallback where databases are thin | AI-built pipeline this project | |
|---|---|---|---|
| How the list is built | Define the ideal customer, filter a contact database or professional network, enrich and verify the contacts, then fill the gaps by hand | A person searches maps, directories and websites one organisation at a time | Scripts pull official registers and open map data, then merge, score and enrich |
| Time for this list | Hours where the database covers the market; days where gaps are filled by hand (estimate; not tested here) | About 180 to 300 hours (upper-bound estimate: 3 to 5 minutes each for 3,572 organisations) | About 4 hours in one sitting, including writing the scripts (from file timestamps) |
| Cost | A monthly subscription, often charged per user, plus usage credits, plus staff time for the gaps | Staff time only | Close to nothing: 813 searches, covered by the search provider’s free starting credits, and AI-assisted development on an existing monthly plan. No data bought and no new subscription |
| Coverage of local organisations | Strong for larger companies in major cities; often thin for small regional organisations (reported generally; not tested here) | Good, but slow and uneven | Strong: 3,572 organisations across three locations |
| Size and fit scoring | General filters such as employee count and industry | Judged by eye, inconsistently | Sector-specific: bed counts, star ratings and accreditation, with the reason recorded |
| Named contacts and emails | The main strength: verified emails and job titles, though one provider rarely finds everyone | Slow but possible, by phone and website | The weak point: a named contact for 24% of accounts, a published email for 5% |
| Traceability | Provider is named; original source usually is not | Rarely recorded | Every row carries its source, and every raw response is kept |
| Repeating it for a new area | Change the filters, then fill the gaps again | Start again | Change one setting and run it again |
Scoring the pipeline
These scores are my own assessment against the figures above, on a scale of 1 to 5. They are not an independent benchmark.
- Time saved4/5
Far faster than manual research, and likely faster than standard practice in a regional market where gaps are filled by hand. Where a database already covers the market, the difference would be small.
- Cost4/5
No data was bought. The searches used the search provider’s free starting credits, and the AI development tool was an existing monthly plan.
- Finding the right organisations5/5
Broad local coverage, built from official registers and map data.
- Ranking them4/5
Clear, sector-specific rules. Hospitals are ranked on bed counts; many hotels rely on weaker signals, such as having a website.
- Finding the right person2/5
Named contacts for about one account in four.
- Reaching them by email1/5
A published email for one account in twenty.
The verdict: the pipeline is very effective at finding and ranking organisations, quickly and at low cost. It is weak at the last step, reaching a named person. The sensible next step is to combine it with standard practice: use the pipeline to decide which accounts matter, then use a contact database only for the top-scored accounts. Whether the list produces replies and sales is not yet known.
06What was learned
- Finding organisations is the easy part. Free sources gave thousands of accounts. Finding the right named person is the real bottleneck: only about one account in four had one, and one in twenty had a published email.
- Official registers beat map data for sizing. Map data rarely records bed or room numbers. The accreditation certificates did, which is what made the scoring meaningful for hospitals.
- Most records are not buyers. Two thirds of accounts scored C, and 589 were excluded outright. Without scoring, most outreach effort would have gone to organisations too small to buy.
- Matching names across sources needs care. The same hospital appears under several spellings, and one site can be listed many times as separate blocks and departments. The matching rules were revised several times.
- A fixed pipeline was enough. Nothing in this task needed an agent choosing its own steps. That kept every result traceable and the running cost low.
07The outcome
- What was delivered. A scored and sourced list of 3,572 organisations across three locations, with 186 enriched and ready to call in the pilot location, plus a second list of 60 hotel projects and 67 consultancies.
- Where it is strong. Finding the right organisations and ranking them, quickly, at low cost, and with every result traceable to its source.
- Where it is weak. Reaching a named person. A named contact was found for about one account in four, and a published email for one in twenty.
- What comes next. Adding a contact source for the top-scored accounts only, then reporting what the outreach produces.
Is this the kind of tool you are looking for?
This project ran as a set of scripts. The same approach can be built to suit how you work.
- Option 1
A one-off project
A scored buyer list for your market, delivered as a spreadsheet you can use straight away.
- Option 2
An application
Something your team runs themselves for each new location or sector.
- Option 3
An API
The search connected to the systems you already use.
Options 2 and 3 would be built for you, not bought off the shelf. Tell me which is closest and I'll say whether it is feasible.
Have a different task in mind? Describe it in a 10-minute form, anonymously if you prefer.