Menu

Connect

📝 Post

Building an AI-Powered Lead Gen Machine: From Ugly Websites to Paying Clients

aiautomationlead-generationweb-development
By Ryan Cwynar6 min read

Last week I built something I've been thinking about for a while: an automated pipeline that finds local businesses with outdated websites, generates modern redesigns using AI, and reaches out with a compelling before/after pitch. Here's how it works.

The Problem

Most local businesses—plumbers, dentists, roofers, chiropractors—have websites that look like they were built in 2008. They know it's bad, but they don't have time to fix it. Meanwhile, they're losing customers to competitors with cleaner online presence.

What if I could:

  1. Automatically find these businesses
  2. Generate a working redesign without any manual work
  3. Show them exactly what their site could look like
  4. Make it dead simple to say yes

The Tech Stack

  • Google Maps API — Find businesses by niche and location
  • Puppeteer — Screenshot existing sites and scrape content
  • Claude API — Analyze site quality and generate new designs
  • Next.js + Tailwind — The actual redesign sites
  • GitHub Pages — Free hosting for mockups
  • Stripe — Payment links ($200 per site)
  • Twilio — SMS outreach
  • Mailgun — Email outreach
  • Convex — CRM to track prospects
  • ElevenLabs — AI phone calls for follow-up

Total monthly cost: ~$50 (mostly API usage). Everything else is self-hosted or free tier.

Step 1: Finding Ugly Websites

The Google Maps API lets you search for businesses by type and location:

```javascript const response = await fetch( `https://maps.googleapis.com/maps/api/place/textsearch/json?query=${niche}+in+${location}&key=${GOOGLE_MAPS_KEY}` ); const { results } = await response.json(); ```

For each result, I extract the business name, phone, address, and website URL. Then I feed the website to an AI analyzer that scores it on a 1-10 scale and identifies specific issues:

```javascript const analysis = await analyzeWebsite(url); // Returns: { score: 3, issues: ["no mobile responsive", "outdated design", "slow load time"] } ```

Sites scoring below 5 go into the pipeline.

Step 2: Scraping Content

Before generating a redesign, I need the business's actual content—their services, about text, contact info, and images. Puppeteer handles this:

```javascript const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto(url, { waitUntil: 'networkidle0' });

// Extract text content const content = await page.evaluate(() => document.body.innerText);

// Download images const images = await page.$$eval('img', imgs => imgs.map(img => img.src).filter(src => src.startsWith('http')) ); ```

I also take a full-page screenshot of the original site—this becomes the "before" image in outreach.

Step 3: AI-Generated Redesign

Here's where it gets fun. I feed the scraped content to Claude with a prompt like:

"Create a modern, mobile-responsive website for this business. Use their actual content. Output clean Next.js + Tailwind code."

The AI generates a complete single-page site with:

  • Hero section with their business name and tagline
  • Services grid pulled from their content
  • About section with actual business info
  • Contact form
  • Professional footer

The output is a ready-to-run Next.js app that I deploy automatically.

Step 4: Automated Deployment

Each generated site gets its own GitHub repo and deploys to GitHub Pages:

```bash gh repo create ${businessSlug} --public git init && git add . && git commit -m "Initial site" git push origin main

GitHub Actions handles the rest

```

Within 2 minutes, the prospect has a live URL showing their redesigned site: `ryancwynar.github.io/walton-dental`

Step 5: Before/After Outreach

Now I have:

  • Screenshot of their current ugly site
  • Live preview of the modern redesign
  • Their phone number and email

I generate a side-by-side comparison image using ImageMagick and fire off outreach via both channels:

SMS (via Twilio):

"Hi! I built a free redesign of your website. Check it out: [link]. If you like it, I can have it live on your domain for $200. No obligation—just thought you might like to see what's possible. - Ryan"

Email (via Mailgun):

Subject: I redesigned your website (for free) [Before/After image] "I noticed your website could use a refresh, so I went ahead and built you a new one..."

Step 6: AI Phone Calls

For prospects who don't respond to text/email, I have an ElevenLabs conversational AI agent that can call them. The agent:

  • Introduces itself
  • Mentions the redesign I built
  • Answers basic questions
  • Directs them to check their email for the link

All calls are logged with full transcripts to Convex, so I can review conversations and improve the script.

The CRM Dashboard

Everything flows into a custom admin panel where I can:

  • See all prospects by stage (found → contacted → replied → paid)
  • View SMS/email/call history per prospect
  • Send follow-up messages with one click
  • Track conversion rates by niche and location

Results So Far

In the first week of testing:

  • 47 businesses found and analyzed
  • 12 redesigns generated and deployed
  • 8 outreach messages sent
  • 2 responses (both interested)
  • 1 paid conversion ($200)

The conversion rate will improve as I refine the outreach copy and follow-up timing. But even at current rates, this is profitable—I'm spending maybe 2 hours per week on oversight, and the pipeline does the rest.

What's Next

A few improvements I'm working on:

  1. Multi-page sites — Right now it's single-page only. Adding service pages and galleries.
  2. Better niche targeting — Some industries (dental, legal) convert better than others.
  3. Automated follow-up sequences — 3-touch campaigns instead of single outreach.
  4. Portfolio site — Showcase all the redesigns to build credibility.

The Takeaway

This isn't about replacing human designers—it's about reaching businesses who would never hire a designer because the friction is too high. By showing them a finished product upfront, the decision becomes "do I want this?" instead of "should I start a project?"

The entire pipeline cost me a weekend to build. The tools exist. The APIs are cheap. The only question is whether you're willing to wire them together.

If you want help building something similar, reach out. This is exactly what Byldr does—custom AI-powered automation for businesses who want to move fast.