Best AI Prompts to Build a Website, from First Draft to Launch
Learn how to prompt an AI website builder with clear requirements, useful context, and focused follow-up requests. These practical examples take you from an initial idea to a fullstack website with authentication, payments, testing, and publishing.

What makes a good website-building prompt?
The best AI prompts describe the outcome you want without trying to dictate every technical implementation detail. In Coderblock, you chat with the AI while it builds a real fullstack application using React, TypeScript, Tailwind CSS, a backend, and a Postgres database.
A strong starting prompt usually covers five things:
- Purpose: What should the website help people accomplish?
- Audience: Who will use it?
- Pages: Which main screens are required?
- Features: What must visitors or administrators be able to do?
- Style: What should the experience look and feel like?
You do not need to specify API routes, database migrations, password hashing, or deployment scripts. Ask for the product in plain language, then let the agent handle the implementation.
Step 1: Start with a structured foundation prompt

Open a new Coderblock project or choose one of the available product templates. If you start from scratch, use this formula:
Build a [type of website] for [target audience].
Its main purpose is to [primary user outcome]. Create these pages: [page list]. Include [essential features]. Use a [visual style] design with [colors, typography, or layout preferences]. Make it responsive and easy to use on phones and desktops.
For example:
Build a website for an independent fitness coach. Its main purpose is to explain the coaching plans and let visitors request an introductory session.
Create a homepage, services page, coach profile, testimonials page, FAQ, and contact page. Add a clear Book a Session call to action throughout the site. Use a confident but welcoming style, with dark blue, off-white, and warm orange accents. Make it responsive and prioritize readability on mobile devices.
Coderblock generates the application and opens a live development preview at an address such as <app>.coderblock.dev. You can then refine the result through chat, with updates appearing in seconds.
Step 2: Prompt for a clear page structure
If the first version feels incomplete, avoid asking the AI to “make it better.” State what each page should communicate and what action it should encourage.
Improve the homepage structure. Add:
- a hero section with one clear headline and primary call to action
- a three-item benefits section
- a short how-it-works section
- testimonials
- an FAQ with five common questions
- a final booking call to action
Keep each section concise and avoid repeating the same claims.
For a multi-page business website, try:
Add separate pages for Services, About, Case Studies, and Contact. Keep the same navigation and visual system across every page. Give each service its own section with a short description, intended customer, and next step.
This is more reliable than requesting all possible pages and features at once.
Step 3: Use visual prompts with concrete direction
Words such as “modern” or “beautiful” are subjective. Add observable design choices instead:
Redesign the site with a clean editorial style. Use generous white space, large headings, restrained dark-green accents, subtle borders instead of heavy shadows, and a maximum content width that keeps paragraphs readable. Make the navbar sticky and turn the mobile navigation into a compact menu.
You can also refine individual components:
Make the pricing cards easier to compare. Emphasize the middle plan, align the feature lists, show the monthly price prominently, and place one clear button at the bottom of each card.
Request one visual change at a time when you want tighter control over the result.
Step 4: Add real data and user accounts
A website becomes a fullstack application when it stores data or gives users personalized access. Describe the behavior rather than asking for custom authentication code.
Add signup and login for customers. Protect the account dashboard so only logged-in users can access it. Let each customer view and update only their own profile and booking requests. Add an admin view where staff can review all bookings and change their status.
The agent wires Supabase Auth, session handling, protected routes, database tables, and Row Level Security. Every app already includes a profiles table and roles baseline, so you should not ask for a separate passwords table or custom JWT implementation.
For data modeling, be explicit about what users create and see:
Add a bookings table with service, preferred date, customer notes, status, and creation date. Customers should see only their bookings. Administrators should be able to see all bookings and set the status to pending, confirmed, completed, or cancelled.
You can inspect tables, authentication users, storage, and functions from the Backend tab.
Step 5: Prompt for payments in plain language

To sell a product or subscription, state the price, currency, billing interval, and post-payment behavior:
Add a Pro subscription for €9.99 per month. Create a pricing page and Stripe checkout. After successful payment, mark the customer as Pro and unlock the premium dashboard. Let subscribers view their current plan and manage their subscription.
By default, the agent can create a managed Stripe account after asking for details such as country and business name. No API keys are required, and Coderblock handles the payment webhook. You can complete payouts and KYC later through the hosted Stripe onboarding link.
If you prefer your own Stripe account, request BYOK mode. The agent will ask for STRIPE_SECRET_KEY through a secure environment-variable prompt and register the webhook automatically. Secrets remain in the project’s server-side store, not in code or chat. Start in test mode before switching to live payments.
Step 6: Improve usability with role-based prompts
Ask the AI to review the experience from a specific user’s perspective:
Review the booking flow as a first-time mobile visitor. Reduce unnecessary steps, make required fields clear, add useful empty and error states, and show a confirmation screen after submission. Do not remove any existing functionality.
Then check the administrative experience:
Improve the admin bookings view. Add search, status filters, sortable dates, and a clear empty state. Show the most important booking details in the table and put secondary information in a detail panel.
These prompts provide a measurable objective and help prevent broad, uncontrolled redesigns.
Step 7: Run a final pre-launch prompt
Before publishing, ask for a focused quality pass:
Prepare this website for launch. Check every page for responsive layout problems, broken navigation, unclear buttons, missing form validation, inconsistent spacing, loading states, empty states, and accessibility issues. Preserve the current visual direction and summarize the changes you make.
Follow with a content review:
Review all visible copy. Make headings specific, shorten long paragraphs, keep the tone consistent, and replace vague calls to action with clear next steps. Do not invent customer claims, statistics, or testimonials.
Test signup, protected pages, form submissions, administrator permissions, and Stripe test checkout where applicable.
Step 8: Publish and continue iterating
When the live preview is ready, select Publish to deploy the production version to <app>.coderblock.app with SSL. You can connect an existing domain under Settings → Domains using the guided DNS records, or buy a domain in Coderblock so DNS and SSL are configured automatically.
Publishing is not the end of prompting. Continue with small, precise requests such as:
Make the navbar sticky without changing its height.
Add a confirmation email step after a booking is submitted.
Show a useful empty state in the dashboard when a customer has no bookings.
The most effective workflow is iterative: establish the product, inspect the live preview, request one meaningful improvement, and verify the result before moving on.


