Don't build static websites: how to build an AI automated website

A website that makes you reply to every inquiry is just a brochure. Here's how I added a free AI chatbot, lead capture and automatic follow-ups to a static site.

Don't build static websites, build AI-automated websites video thumbnail by Ali Amin
On this page
  1. Watch the video
  2. What we're adding
  3. Step 1: Plan it with ChatGPT
  4. Step 2: Let AI implement it
  5. Step 3: Connect Google Sheets with Apps Script
  6. Step 4: Add a free Groq API key
  7. The test
  8. Why this matters
  9. Follow along

If your website still needs you to reply to every inquiry, collect every lead, send every email and schedule every call by hand, it isn't a smart website. It's an online brochure. In this post I'll turn a static real estate site into an AI automated website that talks to visitors, captures leads, follows up by email and books calls, even when nobody is online.

Watch the video

Watch: Don't Build Static Websites: Build Fully AI-Automated Websites

▶ Watch "Don't Build Static Websites: Build Fully AI-Automated Websites" on YouTube

What we're adding

Anyone can build a beautiful website with AI now. The real opportunity is a website that works for the business. To this static site, we're adding:

  • An AI chatbot that answers visitors and collects their details, using a free API key from Groq
  • A lead capture pop-up and an inquiry form
  • Automatic follow-up emails with a booking link, sent until the lead books a call
  • Google Sheets as the place where every lead lands

I use Google Sheets because everybody knows how to use it, including your client. I also have a video on replacing Supabase and Firebase with a simple Google Sheets database.

Step 1: Plan it with ChatGPT

I asked ChatGPT for a prompt covering a chatbot, a lead pop-up, an inquiry form and automated follow-ups, with Google Sheets for lead capture. It also mapped out the sheet's structure.

You'll need a booking link. I use Calendly, but Google Calendar or anything else works. Put the link into the plan so it ends up in the follow-up emails.

Step 2: Let AI implement it

I'd built the site in VS Code, but for this part I used Google's Antigravity. Claude Code or Codex work too. Paste the plan and say "implement this plan".

Antigravity came back with an implementation plan: a floating AI chatbot, inquiry validation and a smart lead pop-up, all connected to Google Sheets. A timer in Google Sheets checks every few hours and follows up with any lead that hasn't been contacted yet.

When it finished, the site had a chatbot, a free consultation button, and a pop-up with a dropdown for what the visitor needs, like selling a home in Manchester or searching for a property.

Step 3: Connect Google Sheets with Apps Script

  1. Create a new sheet by typing sheets.new in your browser.
  2. Go to Extensions → Apps Script, delete the sample code and paste the Apps Script code your AI generated.
  3. Click Deploy → New deployment, choose Web app, add a description, and set who has access to Anyone so your website can send leads to it.
  4. Click Deploy and authorize your account. Because it's your own script, Google shows an "unverified app" warning. Click Advanced and continue.
  5. Copy the web app URL and paste it into your .env.local (or .env) file. Do this yourself rather than handing your keys to the AI.

Step 4: Add a free Groq API key

Create a free account at groq.com, open API keys, create a key and paste it into the same file. Groq gives you free access to open-source models like Llama, which is plenty for a website chatbot. Then ask your AI to restart the server.

The test

The pop-up: I filled it in and got a confirmation with a link to book a call. In Google Sheets, a new Leads tab appeared on its own, with a lead ID, date, name, email, source, the page the lead came from, status and follow-up tracking. I didn't create a single column.

Follow-ups stop when they should: change a lead's status to show a meeting is booked, and the follow-ups stop. Everything runs inside Google Sheets.

The chatbot: I asked it to book a valuation. It collected my name, phone and email, and a new row appeared in the sheet, marked as coming from the chatbot.

The email: the automatic reply arrived, matching the site's branding. One catch: it still had a leftover business name from my template, so always proofread your automated emails before going live.

Why this matters

Every business with a website gets inquiries, and most of them are answered late or not at all. An AI automated website answers instantly, captures every lead in one place and keeps following up until the lead books. That's an easy upgrade to sell to any client with a static site.

If you sell online, add an AI chatbot for ecommerce that recommends products. And for another system that runs on Google Sheets, see my pharmacy ERP built for free with AI.

If you want to learn AI web development in depth, my community takes you from beginner to pro: AI Engineer Academy. Here's what's inside.


Follow along

Keep building.

Ali Amin

The community

Learn it with me, not alone.

AI Engineer Academy on Skool is where the courses, live calls and other builders are. Learn at your own pace, with people who are building too.