ASADULELAHBOOK A CALL →

Home / Answers / AI automation and agents for business

AI automation and agents for business

How do I automate lead generation for a B2B business?

By Asadulelah, a Kerala-based builder of custom software and AI systems for businesses.

Automate it as a pipeline with three stages: find real businesses, filter them hard against your ideal customer, and give each one a specific, checkable reason to talk to you. You don't need an expensive data subscription to start. My open-source pipeline, lead-machine, produced 448 qualified B2B leads, 285 of them with verified emails, for about $6 in one night. The alternative I'd been quoted was a $99-a-month data tool.

Stage 1: find real businesses

Google Maps is the most honest B2B database there is: real businesses, real addresses, real review counts, and with contact scraping switched on, emails and social links pulled from their own websites. Most paid lead tools resell this kind of data with a nicer screen.

I pull it through one Apify scraper, queued city by city. A ten-city sweep costs a few dollars on pay-as-you-go pricing. One practical note from real runs: free accounts cap how much memory runs at once, so I queue three runs at a time instead of launching everything together.

Stage 2: filter hard

This is where most lead lists go wrong. They keep everything. My filter rejects in a fixed order and logs how many each step removed:

  1. No website.
  2. A portal or franchise domain instead of the business's own site.
  3. An excluded category.
  4. A weak match to the category I actually want.
  5. A duplicate domain.

Then it sorts: leads with an email first, then by review count. Review count is a free signal for "established business that's been around a while".

Log the counts at every step. Silent filtering lies to you. If 80% of your list vanished at step 2, you want to know why.

Stage 3: a reason to talk, per lead

The third stage is the one people skip. It runs each lead's website through Google's free PageSpeed test and writes the first line of the email from the result: how their site scores on mobile and how long it takes to show its main content. Every opening line is personal, checkable and about their money, because a slow site loses customers.

You can swap in whatever signal fits your offer: missing online booking, no reviews replied to, an outdated site, a job opening that shows a gap.

What I don't automate

How I'd set this up for a B2B business

  1. Write your ideal customer in plain words: category, city, size signals, what they must have (a website, a physical location) and what rules them out.
  2. Turn that into search queries and filter rules in one config file. Mine are all config-driven, so a new niche is a new config, not new code.
  3. Run a small test (one city) and read every lead in the output. Tighten the filter.
  4. Add the per-lead signal and read twenty of the opening lines. If any sound generic, fix the template.
  5. Feed the list into your CRM or a sheet, and follow up from research, not from a timer. For the email-writing side, my n8n workflows include a pipeline that researches each prospect and writes the sequence.

What to check before you pay someone for this

If the answer is "we have a database of 200 million contacts", it's a list, not a pipeline.