How to build a website with AI in 2026: step by step, with prompts
A step-by-step guide to building a website or app with AI tools like Lovable, Bolt, v0 and Wix, with copy-paste prompts, a worked example and a security checklist.

You can build a working website with AI in an afternoon: describe the site in plain English to a prompt-based builder like Lovable, Bolt, v0 or Wix, refine the draft one change at a time, then publish it to a free subdomain or your own domain. The hard part isn't the first draft. It's the checking afterwards (security, forms, mobile layout), and that's where most AI-built sites fall down.
This guide walks through how to build a website with AI step by step, with copy-paste prompts and one complete worked example. Prices and features below were checked against official pages in early November 2026. Nobody at The AI Future hands-on tested these builders for this piece; it's based on the vendors' docs and published independent research.
Before you start: the checklist
You don't need to code. You do need a few things ready, or you'll burn credits guessing.
- A one-paragraph description of what the site is for and who it's for.
- Your real content: business name, services, prices, opening hours, a few photos.
- Two or three websites you like the look of, so you can point to a style.
- A budget. Most builders have a free tier, but custom domains usually sit on paid plans.
- Optionally, a domain name you already own.
That's it. Honestly, the content list matters more than the tool choice.
Step 1: pick the right kind of AI builder
AI website tools split into two camps. Website builders like Wix generate a classic site you then edit by drag and drop. App builders like Lovable, Bolt, v0 and Replit write real code (usually React), so they can handle logins, databases and custom features. If you only need a brochure site for a café, I'd start with the first camp; if you want customer accounts or a booking system, you'll want the second. Our AI app builder explainer covers the difference.
| Tool | Type | Free tier | Paid plans from |
|---|---|---|---|
| Wix AI website builder | Website builder | Yes, no card needed | Annual plans (free domain for a year) |
| Lovable | App builder | 5 build credits a day, max 30 a month | $25/month |
| Bolt | App builder | 1M tokens a month, Bolt branding | $25/month |
| v0 by Vercel | App builder | 7 messages a day | Per-user team plans |
| Replit | App builder and coding workspace | Not shown on plans page | $20/month ($18 billed annually) |
Lovable's list price comes from CostBench's check on 5 November 2026: Pro is $25 a month for 100 credits, Business $50. On Bolt's plans page, Pro is also $25 and removes the Bolt badge and adds custom domains. If you want more options, our list of Lovable alternatives compares seven of them.
Step 2: write a short brief before you prompt
A vague first prompt gets you a generic template. A specific one gets you something close to usable. Spend ten minutes writing this down first:
Site: [name]. Audience: [who visits]. Goal: [the one thing a visitor should do, e.g. book, call, buy]. Pages: [list]. Style: [two adjectives plus a reference site]. Must have: [contact form, map, price list]. Must not have: [stock photos of handshakes, pop-ups].
Keep the goal to one action. Sites that try to do five things at once tend to come out cluttered, in my view.
Step 3: generate the first version
Paste your brief into the builder's chat box. If the tool has a planning mode, use it first. Lovable's Plan mode, for example, costs 1 credit per message and lets you agree the structure before any code gets written. Here's a starter prompt you can adapt:
Build a one-page website for a small bakery called Rye and Ember in Leeds. Sections: hero with a short headline and an "Order for pickup" button, this week's menu with prices, opening hours, a map, and a contact form. Warm, simple style with plenty of white space. Make it fully responsive on mobile. Don't use placeholder lorem ipsum; use the text I give you.
Don't judge the first draft too harshly.
Step 4: refine one change at a time
This is where people waste the most credits. Ask for one change per message, and say exactly where it goes. Small edits are cheap: in Lovable's own examples, "Make the button gray" costs 0.50 credits and "Remove the footer" 0.90, while a full landing page with generated images is 1.70.
In the menu section only, change the layout to a two-column grid on desktop and one column on mobile. Leave everything else as it is.
The phrase "leave everything else as it is" does a lot of work. Without it, builders sometimes rewrite parts you were happy with.
Step 5: add forms, data and logins
A static page needs nothing more. If you want orders, bookings or user accounts, you'll need a database and sign-in. App builders handle this by prompt; Lovable's own pricing examples include "Add authentication with sign up and login" at 1.20 credits.
Add a pickup order form with name, email, phone, pickup date and a list of items. Save submissions to the database. Only I, as the admin, should be able to see the orders. Customers must never see other people's orders.
Spell out who can see what. That last sentence matters more than anything else in the prompt (see step 6).
Step 6: check security and speed before you publish
AI-written code has a real security problem. A Cloud Security Alliance research note from April 2026 found that between 45% and 70% of AI-generated code samples fail security tests, depending on the method, with missing access controls and hardcoded credentials the most common flaws. That figure surprised me, and it's why I wouldn't skip this step even for a hobby site.
Many app builders store data in Supabase. Its row-level security guide is blunt: a table without RLS in an exposed schema "is readable and writable by any role with a grant on it." Lovable runs a Quick scan on every publish that flags tables without row-level security, and a Deep scan for logic and permission issues, though the docs say these "do not replace a thorough security review."
Review this project for security problems. Check that every database table has row-level security enabled, that no API keys appear in the front-end code, and that only the admin can read the orders table. List each issue and fix it.
Then open the site on your phone, submit a test form, and check it lands where it should.
Step 7: publish and connect a domain
Lovable, Bolt, v0 and Wix can all put the site online for you. Lovable publishes to a free lovable.app address; custom domains need a paid plan, and you can buy one inside the app or connect one you own under Project, Settings, Domains. Bolt's free tier also includes hosting, but with Bolt branding. Wix, meanwhile, throws in a free domain for a year with any annual plan.
Example: a complete worked example
Here's how the Rye and Ember bakery site from step 3 would come together in Lovable, start to finish. It's an illustration built from the vendor's documented features, not a record of a real build.
- Write the brief: one goal (pickup orders), four sections, warm style, real menu text pasted in.
- Open Plan mode and ask: "Before building, propose a page structure and colour palette for this brief." Approve or tweak the plan.
- Switch to building and paste the starter prompt from step 3.
- Refine in single steps: fix the hero headline, swap the font, tighten the mobile menu grid.
- Add the order form with the admin-only prompt from step 5.
- Run the security review prompt, then the Deep scan, and fix anything flagged.
- Test on a phone: place a fake order, confirm it appears in the admin view and not anywhere public.
- Publish to the free lovable.app address, share it with two friends for feedback, then upgrade and connect the bakery's domain.
On the free plan's 5 daily credits, a project like this would probably stretch over two or three days. On Pro's 100 monthly credits, you'd likely finish in one sitting with plenty left over, though complex fixes can eat credits faster than you'd guess.
Common mistakes and how to fix them
Rewriting the whole prompt every time
Each full re-prompt can regenerate the site and undo good work. Fix: make targeted edits and name the section.
Getting stuck in a fix loop
The AI breaks something, you ask it to fix it, and it breaks something else. If two attempts fail, roll back to the last working version if your builder keeps a history and describe the bug differently, with the exact error text.
Leaving the database open
It's the costliest mistake on this list. The CSA note cites one AI-built platform where a single Firebase misconfiguration exposed 406 million records in January 2026. Run the security prompt above before anyone real uses the site.
Shipping placeholder content
Fake testimonials and "lorem ipsum" make a site look abandoned. Paste your real copy in from the start.
Tips to get better results
- Give the AI a reference: "styled like a simple Scandinavian café site" beats "modern and clean".
- Ask for mobile layout explicitly in your first prompt; don't leave it to chance.
- Connect GitHub if the tool supports it, so you own a copy of the code (v0 lists GitHub sync on its free plan).
- Save prompts that work in a text file and reuse them.
- Watch the credit counter. Lovable's monthly plan credits expire two months after they're issued.
For more prompt patterns, our guide to prompts for vibe coding goes further.
Next steps
Once your site is live, you can keep going in a few directions. If you outgrow the chat builder, an AI code editor gives you more control; our Cursor review is a good place to start, and there's a list of free AI coding assistants too. If you'd like the site to answer customer questions or take actions on its own, read our guide on how to create an AI agent. And if you'd rather not touch prompts at all, a one-click builder like Durable might suit you better.
FAQ
How to build an app with AI?
Pick an AI app builder such as Lovable, Bolt, v0 or Replit, describe the app in a detailed prompt, then refine it one change at a time. Add a database and logins by prompt, run a security check on access rules, test it on your phone, and publish. Free tiers are enough to build a small first version.
Can AI build a website?
Yes. Tools like Wix's AI builder and Lovable generate a full, hosted website from a text description in minutes. You'll still need to supply real content, check the mobile layout and review security if the site stores data. I think AI gets you 80% of a simple site; the last 20% is your judgement.
How to build an AI app?
An AI app is one that uses AI features itself, like a chatbot or summariser. Builders such as Lovable let you add these by prompt.
They're billed from the same credit balance, and Lovable's free plan includes 4 credits for AI features inside your app. For anything bigger, you'll call a model provider's API directly.
How to use AI to build an app?
Write a short brief first: audience, one main goal, pages and must-have features. Use a planning mode to agree the structure, then build. Keep each follow-up prompt to a single change, say who can see which data, and ask the AI to review its own code for security problems before you publish.
Can AI build me an app?
For a simple app, probably yes, without writing code. AI builders handle layouts, forms, databases and hosting. Complex apps with payments, sensitive data or heavy traffic are another matter: the CSA's April 2026 research found many AI-generated code samples fail security tests, so a developer review is wise there.



