AI

25 AI prompts for building websites (planning, content, code, SEO)

Good prompts turn an AI assistant into a capable web team. Copy these, replace the brackets with your details, and use them in order. Always review and test what the AI produces. For the full process, read how to build a website with AI like a pro.

Planning

  1. “Act as a web strategist. My business is [description] in [town]. Ask me 10 questions to plan a website that brings in customers.”
  2. “Based on my answers, propose a sitemap, the goal of each page and the main call to action.”
  3. “List the words my customers in [town] would search on Google to find a business like mine.”
  4. “Compare these 3 competitor websites [paste links or text]: what they do well, what’s missing, how I can stand out.”

Content

  1. “Write the Home page using only these facts: [paste]. Headline, intro, 3 services, why us, call to action. Under 250 words.”
  2. “Write an About page that tells our story honestly: [facts]. Warm, not boastful.”
  3. “Write 8 FAQs with short answers for a [type] business, using these policies: [paste].”
  4. “Rewrite this page so a 14-year-old could understand it, keeping it professional: [paste].”
  5. “Translate these key sections into natural Kiswahili: [paste].”

Design

  1. “Suggest a colour palette with hex codes and two Google Fonts for a [type] brand that feels [adjectives]. Check text contrast.”
  2. “Describe a mobile-first layout for the Home page, section by section.”

Code

  1. “Write semantic, accessible HTML and CSS for a responsive navigation bar with a mobile menu button. No frameworks.”
  2. “Create a services grid with 6 cards using CSS Grid, 1 column on phones, 3 on desktop.”
  3. “Write a contact form with labels, validation for a Kenyan phone number, and a clear success message.”
  4. “Explain this code line by line: [paste].”
  5. “This doesn’t work: [describe]. Here’s the code and the error: [paste]. Find the cause and fix it.”
  6. “Add a WhatsApp chat button that opens a chat with a pre-filled message.”

SEO

  1. “Write a page title (under 60 characters) and meta description (under 155 characters) for this page: [paste].”
  2. “Generate LocalBusiness JSON-LD structured data with these details: [name, address, phone, hours].”
  3. “Suggest descriptive alt text for these images: [describe each].”
  4. “Plan 10 blog posts that answer questions my customers search for.”

Speed, security and launch

  1. “Review this page for performance problems and suggest fixes: [paste].”
  2. “Review this form handler for security issues (validation, spam, injection): [paste].”
  3. “Write a launch checklist for a small business website: testing, SEO, analytics, backups.”
  4. “Write a simple monthly maintenance checklist for this website.”

Prompts work better when you…

  • Give real facts and examples instead of asking the AI to invent them.
  • Build one section at a time and test each one.
  • Ask the AI to review its own work for accessibility, speed and security.

Learn the skills behind the prompts in our free HTML, CSS and prompting lessons, or read our prompt engineering guide.

Going live? Let Marzley Tech Solutions handle production

AI is great for drafts and learning. When your website needs to go live properly, bring in professionals. Marzley Tech Solutions, founded by Kelvin Wanyoike (Marzley), handles everything a production website needs:

  • Website creation: business websites, online shops with M-Pesa, booking systems, school, hospital and SACCO portals, built fast and mobile-first. See services and pricing.
  • Production launch: we take your AI-made draft or idea, fix the code, test it on real phones and launch it properly.
  • Domains: register and set up your .co.ke or .com domain, email and DNS.
  • Hosting: fast, reliable hosting set up and managed for you, with SSL (https).
  • Security: protected forms and logins, updates, backups and malware clean-up, with keys kept safely on the server.
  • SEO: page titles and descriptions, structured data, speed optimisation, Google Search Console and Google Business Profile, so customers find you.
  • Care plans: monthly updates, backups, monitoring and support. Why it matters.

Contact Marzley Tech Solutions: call or WhatsApp 0745 789 590, email info@marzleytechsolutions.co.ke, send us your project or book a free call. Not sure where you stand? Run the free website check first.

Frequently asked questions

Which AI is best for writing website code?

Most major assistants (ChatGPT, Claude, Gemini, Copilot) write good HTML, CSS and JavaScript. Coding tools like GitHub Copilot, Cursor and Claude Code work directly in your project.

Can Marzley Tech Solutions finish and host my AI-built website?

Yes. We review and fix the code, set up your domain and hosting, secure it, optimise it for SEO and keep it maintained. Call or WhatsApp 0745 789 590.

Can I trust AI-written website code?

Treat it as a draft: read it, test it on real phones, and ask for a security and accessibility review before going live.

Can AI write my website’s SEO titles and descriptions?

Yes. Give it the page content and target keywords, and check that each title and description is unique and accurate.

Related guides

AI

What is AI? A beginner’s guide for Kenyans (and how it can help you)

Artificial intelligence explained simply: what AI is, where you already use it, what it’s good and bad at, and how to start using it free today.

· 3 min read
AI

Prompt engineering guide: from beginner to pro

Learn prompt engineering properly: clear instructions, context, examples, structure, reasoning, system prompts, grounding and testing.

· 4 min read
AI

How to write good AI prompts (with examples you can copy)

A simple formula for great AI answers (role, task, context, format, examples), weak vs strong prompts for Kenyan situations, and a reusable prompt template.

· 3 min read
Chat with us