How to build a website with AI: brief, build, check, publish
To build a website with AI, write a one-page brief (who it is for, which pages, what a visitor should do), paste it into an AI builder such as Lovable or a coding agent such as Claude Code, review the result on a phone and a laptop, then publish it on a host and connect a domain. Write the real text yourself. The AI’s job is layout and code.
What kind of website are you building?
Decide this before you open any tool, because it picks the route. A five-page site for a business needs very different things from a store or an app with logins.
| Kind | Example | Needs | AI route that usually fits |
|---|---|---|---|
| Brochure site | A freelancer’s or small shop’s page with contact details | A few pages, a contact form, fast loading | An AI website builder, or a coding agent and a static host |
| Content site | A blog, guide pages, documentation | Many pages from one template, titles and descriptions, a sitemap | A coding agent with content kept in files or a database |
| Store | Products and a checkout | Payments, tax handling, order emails | A store platform with its own checkout; use AI for the theme and copy |
| Web app | A tool with accounts and saved data | A database, logins, server code | A coding agent or a full-stack AI builder; see the guide to making an app |
This page is about the first two kinds, and about the build-and-publish process that every kind shares. If you want a comparison of the builders themselves, read the best AI website builder page. For turning a web app into something people pay for, see how to make money from an app.
Should you use an AI website builder or a coding agent?
Both write the site from a description. They differ in who holds the controls.
- AI builder (such as Lovable). You describe the site in a chat, the tool generates it, shows a live preview and hosts it. Lovable’s publishing documentation describes publishing from the project chat and connecting custom domains. This is the quickest path to a link you can share. The cost is that you work inside the platform’s limits and rules.
- Coding agent (such as Claude Code or Cursor). The agent writes the files on your computer; you run the site locally and choose where to host it. You own the code and can move it anywhere. It asks more of you: a terminal, a code editor and a willingness to read errors. The Claude Code guide walks through it.
- Template plus AI help. Start from a ready-made template in a site builder and use AI only to write text and make small changes. This is the lowest-risk route for a plain brochure site.
A reasonable rule: if nobody will ever need a feature the platform does not offer, use the builder. If you expect to grow the site into something more, or you want to avoid being locked in, use a coding agent from the start.
What goes in the brief?
The biggest difference in results comes from the brief, not the tool. A vague prompt such as “make a modern website for my business” produces a generic template with invented text. A specific brief produces something you can use. Write down the answers to these first.
- Who is the site for? One type of visitor, in a sentence.
- What should they do? One main action: call, book, buy, sign up. Everything on the page should lead to it.
- Which pages? For a first version, three to five is plenty: home, what you offer, about, contact. Add more only if a real visitor needs them.
- What text do you already have? Your real services, prices, hours and a short story. Paste them in.
- What should it feel like? Name two or three sites you like, and the colors and fonts if you have them.
- What must be true? Works on a phone, loads fast, readable text size, contact form that sends to your email.
Build a [3-page] website for [business or project name]. Visitor: [one sentence describing who comes and what they want]. Main action: [call / book / sign up / buy]. Put it above the fold on every page. Pages: 1. Home: [headline, three-sentence intro, three offers, one call to action] 2. [Services]: [list] 3. Contact: [form with name, email, message; sends to the address I give you] Use only the text I provide below. Where text is missing, leave a visible placeholder in square brackets. Do not invent testimonials, prices, numbers or team members. Design: [two or three words, e.g. plain, high contrast, one accent color]. Mobile first. Large readable text. Every image has alt text. Each page has a unique title and meta description. My text: [paste] When you finish, list what you did not build and what you assumed.
The line about not inventing testimonials matters. AI tools fill gaps with plausible fiction, and fake reviews on a real site are a legal and trust problem.
How do you build it step by step?
- Generate the first version from the brief. Expect to change a lot of it.
- Open it on your phone before anything else. Most visitors will.
- Change one thing per message. “Make the hero text shorter and move the button up” works. A list of ten changes in one message often breaks something else.
- Replace placeholders with your own words. Read every sentence aloud. If it sounds like nobody in particular wrote it, rewrite it.
- Add the form and test it. Send yourself a message and check that it arrives in your inbox, not in spam.
- Ask the tool to explain what it built if you use a coding agent: which files hold the text, which hold the style, and how to publish. Keep that answer.
If you are experimenting rather than building for a client, treat the first version as a draft you can throw away. Describing the site and iterating on it is what people call vibe coding a website, and what vibe coding is explains the method and its limits.
What should you check before publishing?
AI-generated sites look finished before they are. Go through this list.
| Check | How | Common problem |
|---|---|---|
| Phone layout | Open it on a real phone, in portrait | Text overflows; buttons too small to tap |
| Contact form | Send a test message from a different email address | Form looks fine but sends nowhere |
| Invented content | Search the pages for names, numbers and quotes you did not supply | Fake testimonials, made-up statistics |
| Titles and descriptions | Check each page has its own, in the page source or the tool’s settings | Every page titled “Home” |
| Images | Check alt text and file sizes | Huge uncompressed images; missing alt text |
| Links | Click every link and button | Placeholder links that go nowhere |
| Legal basics | Privacy page if you collect data; imprint where your country requires it | Collecting emails with no notice |
| Speed | Run it through a page-speed tool and read the top two findings | Heavy scripts the tool added |
For search, Google’s SEO starter guide covers titles, snippets and how Google finds pages. Add the site to Search Console once it is live so you can see what Google has indexed.
Where should you host it?
A builder like Lovable hosts the site for you. If you built it with a coding agent, you pick a host. Free tiers exist, but they come with terms that matter for a business site. As of October 2026, from the providers’ own pages:
| Host | What its documentation says | Watch out for |
|---|---|---|
| Vercel Hobby | The Hobby plan is free and restricts users to non-commercial, personal use only | A business site or anything that earns money belongs on a paid plan under those terms |
| GitHub Pages | The usage limits say Pages is not for running an online business or sites mainly for commercial transactions; sites may be no larger than 1 GB, with a soft limit of 100 GB of bandwidth a month | Fine for portfolios and project pages; not for a shop |
| Cloudflare Pages | The Free plan limits list 500 builds a month, up to 20,000 files per site and a 25 MiB limit per file | Large media files need a separate store |
Read the current terms yourself, since they change. The guide to hosting a website for free goes through the options and trade-offs, and how to make an app for free covers the wider costs.
A domain name is separate from hosting. You buy it from a registrar for a yearly fee, then point it at your host following the host’s instructions. Pick a name that is easy to say aloud, and buy it in your own account so no one else controls it.
What happens after the site is live?
- Look at it weekly for a month. Read your form messages and check that the site still loads.
- Add analytics that matches your legal setting, so you know which pages people read.
- Keep the source and the prompts. Save your brief and the final text in a document. If the tool changes or breaks, you can rebuild.
- Update with small, tested steps. Re-running a big prompt on a live site can overwrite things you fixed by hand.
- Back up the code if you use a coding agent, with version control such as git, so you can undo a bad change.
If the site is the front of an idea you are testing, a landing page with an email form is the lightest version. Landing page ideas shows layouts for that. If you have an idea but no plan to build it, you can post it on the board instead, free and with no account.
What goes wrong most often?
- Generic text. The site reads like every other. Fix it with your real details and a clear point of view.
- Too many pages. Each page you add needs content and care. Start with the minimum.
- No next step. A visitor finishes reading and has nothing to click. Give every page one action.
- Trusting the preview. A page that looks right in the builder can break on a phone or in another browser.
- Hosting terms ignored. Putting a commercial site on a personal-use plan risks it being suspended.
- Secrets in the code. Keep API keys and passwords out of files that get published.
Frequently asked questions
Can AI build a whole website for me?
It can generate the layout, the code and a first draft of the text from a good brief, and many builders also host the result. You still need to supply real content, check the site on a phone, test the forms and confirm you are allowed to host it where you put it. Treat the output as a draft.
How do I make a website with AI for free?
Several AI builders have free plans with limits, and coding agents can write a site you host on a free tier. Free hosting terms differ, and some prohibit commercial use, so read them. Check each provider’s current pricing page before you start, because limits and plans change.
What is vibe coding a website?
It means describing the site in plain language and letting an AI tool write the code, then reviewing and steering the result instead of typing the code yourself. It works well for simple sites. For anything with payments or personal data, have someone experienced review it before real visitors use it.
Which is better for a website: an AI builder or Claude Code?
An AI builder is faster to a live link and needs no terminal, but you work within its platform. A coding agent gives you the source files and any host you like, but you must run and read the project yourself. Choose the builder for a simple site and the agent if you want ownership.
Do I need to know how to code to build a website with AI?
No, but you do need to be precise. Write down who the site is for, which pages it needs and what text goes on them. You will also have to test the site and describe problems clearly. Anything involving payments or logins is a poor first project.
How long does it take to build a website with AI?
A simple three-page site can have a first version in an hour or two. Plan more time for writing real content, testing on devices, setting up the domain and checking the legal basics. Those steps usually take longer than the generation itself.
Created with AI assistance and edited for this site. Examples are illustrative and do not represent customer research. About the publisher.