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:
- No website.
- A portal or franchise domain instead of the business's own site.
- An excluded category.
- A weak match to the category I actually want.
- 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
- The decision to send. Automated lists are for building a targeted list, not for blasting. My own outreach goes through drafts that a person reads before they go.
- Revenue and headcount. Maps can't tell you these. Use reviews, address and category as proxies, and check the shortlist by hand.
- Sending from your main number or inbox at volume. That's how accounts get flagged.
How I'd set this up for a B2B business
- 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.
- 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.
- Run a small test (one city) and read every lead in the output. Tighten the filter.
- Add the per-lead signal and read twenty of the opening lines. If any sound generic, fix the template.
- 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
- Where does the data come from, and can you see the raw list?
- What does the filter reject, and can you change the rules?
- What makes each message specific to that lead?
- Who decides what gets sent?
If the answer is "we have a database of 200 million contacts", it's a list, not a pipeline.
Want this built for your business?
Tell me about the work that eats your week. Book a 30-minute call, or email hello@asadulelah.com.
BOOK 30 MINUTES →Related answers
- Can AI follow up with leads without sounding like a robot?
- What should I automate first in my business?
- What business workflows are easiest to automate with n8n?
Hands-on lesson
More in AI automation and agents for business · All answers · About Asadulelah