AI engineering · 12 May 2026 · 3 min read
Why did our AI lead finder need three versions?
Because asking AI to search the open web gives slow, inconsistent answers. What worked was starting from the official register of UK companies, filtering it exactly, and using AI only for the parts that need judgement.
- AI engineering
- AI in the product
- Data modelling
- Architecture
- For product and innovation leads
- For founders
In this article
Most businesses adding AI to a product start by handing the model the whole problem and seeing what comes back. That is a good way to learn whether an idea can work. It is a poor way to run something people rely on every day.
The problem
At Daedalus we are building a sales tool that finds companies worth contacting. A user describes the kind of company they want, by industry, location, size and age, and the tool returns a list of leads. I’m building it with one colleague, and the part that finds the leads is mine. It took three versions to get right.
Version one: let AI search the web
The first version gave the criteria to Google’s Gemini model and let it search the internet. It was always meant as a test, to show the idea could work, and it did that much. But it took a long time to find a handful of leads, and the same search could return different companies each time. A sales team can’t plan around a list that changes whenever it is run.
Version two: a stronger model
Next we moved to Claude, which produced better results. It was still searching freely, though, and still deciding for itself which companies matched. A better model made better guesses, but they were still guesses, and they were still slow.
Version three: start from the official register
What worked was to stop asking AI to find companies at all. The third version starts from Companies House, the UK’s public register of companies, which can be filtered exactly by industry code, location, age and status. Dormant companies and late filers are removed before anything else happens.
AI then does only the work that needs judgement:
Finding each company’s website. Claude searches in parallel rounds, and a website only counts if the company number on it matches the register.
Gathering further evidence. It can look at up to five extra sites per company, all from a short list of approved websites.
Because the hard filtering is now exact, the leads are far more accurate. Because the AI has much less open-ended searching to do, each search uses less of it and costs less.
Built for real use
A thorough search can take several minutes, which is too long to keep someone watching a loading spinner. So it runs in the background. Users can follow its progress on a page with a timer, stop it at any time, and carry on using the rest of the product, with a small indicator on every page showing that a search is still running.
Behind that sit some unglamorous rules that save money:
It skips companies it has checked recently before spending anything on AI.
It saves results as it goes, and picks up where it left off if something fails, so the same work is never paid for twice.
It refuses to start a second copy of a search that is already running.
We wrote the decision to run searches in the background down as a short design record, so the next engineer can read why it works this way instead of guessing.
Users can also save their search criteria and change them later, either in place or as a new version. That lets them compare one search with another without losing the original.
A small detail that mattered: industry codes
Companies House classifies every company with a standard industry code. Nobody remembers which number means which industry, so we loaded the full public list of codes into the database and gave users a searchable picker that works by name. Because the codes live in the database, we can also report how many saved leads fall under each industry.
The lesson for any business adding AI
AI is most useful when it is given a narrow job on top of data you already trust. If an answer can be looked up exactly, look it up. Save the AI for the judgement calls that are left.
Then plan for the practical side from the start. Searches that take minutes need to run without blocking anyone. Steps that fail halfway need to resume without paying for the same work again.
A useful test for any AI feature on your roadmap: which part of it could be a plain lookup? The answer is often most of it.
Related articles
How do you let AI into your systems without leaking secrets?
Assume the AI can see everything you give it, and give it nothing it doesn’t need. Then back that up with rules your tools enforce, so you aren’t relying on the AI, or a busy engineer, to behave.
For CTOs and tech leads, Founders
12 August 20263 min read
How do you demo an AI feature without live data or a live key?
Record good answers to the questions your demo will be asked, and have the app play them back instead of calling the model, on invented data. Keep the live model for a session you run yourself, and make demo mode something the real product refuses to start in.
For CTOs and tech leads, Product and innovation leads
9 November 20268 min read
Write down why, not just what
Code shows what a system does, not why it does it that way. Short, dated decision records keep the why available for new engineers and AI agents alike.
For CTOs and tech leads, Founders
5 June 20264 min read
Read something that sounds like your problem?
A free 15-minute intro with our CEO. Bring the article, and he’ll tell you which service fits, if any. If a spreadsheet and two rules would do the job, we’ll say so.