Free, independent guides since 2010

Build with AI

How to write prompts that get usable results

The prompt techniques that make the biggest difference on website projects: context, role, constraints, examples, output format, iteration and asking the AI to ask questions first.

<guide section="Build with AI" type="article" read="3 min"/>

The difference between a frustrating and a productive AI session is rarely the tool. It is usually the prompt. The good news: writing good prompts is a skill, not a talent, and a handful of habits make most of the difference. All examples below come from real website work; find ready-made ones in our prompt library.

Give context first

The AI knows nothing about your business, your visitors or your existing site. Compare:

WeakStrong
Write a homepage text for a bakery.Write a homepage text for “Bakkerij Lies”, a family bakery in Mechelen since 1987, known for sourdough and rice tarts. Visitors are locals who want to order for the weekend. Tone: warm, short sentences.

Upload or paste what exists: your current texts, a brand guide, a screenshot, a list of pages. Many tools let you store this permanently as custom instructions or project knowledge.

Be explicit about the task and the format

  • Say exactly what you want: “three options”, “one HTML file”, “a table with these columns”.
  • Set limits: “max 60 characters”, “no more than 150 words”, “only change the footer”.
  • Name what you do not want: “no exclamation marks”, “no frameworks”, “no stock phrases”.

Show an example

One example of the style you want is worth a paragraph of description. Paste a text you like, or an existing page that should be matched: “Write the new service pages in exactly the same structure as this one.”

Ask for questions and a plan

Plain text
Before you start, ask me up to five questions about anything that is
unclear. Then propose a plan. Do not write the final result until I
have approved the plan.

This simple instruction prevents most generic output, because the AI has to surface its assumptions instead of filling the gaps with averages.

Iterate in small steps

  • One change per message, especially with code.
  • Say what is good, not only what is wrong: “Keep the structure, change only the tone.”
  • When a conversation goes in circles, start a new one with an improved brief that includes what you learned.

Make the AI check its own work

Plain text
Review your answer against my requirements. List anything you did
not meet, any assumption you made, and any fact I should verify.

This catches a surprising number of mistakes, although it is no substitute for your own review – see the human review checklist.

Use roles sparingly and concretely

“Act as a senior front-end developer who cares about accessibility” helps set the level and priorities. Vague roles like “act as an expert” add little. Combine a role with concrete criteria.

Protect sensitive information

Never paste passwords, API keys, customer data or confidential contracts into a prompt. Replace names and numbers with placeholders, or use a local model for sensitive material.

A reusable prompt skeleton

Plain text
CONTEXT: <who I am, the website, the audience, what exists>
TASK: <exactly what you want>
CONSTRAINTS: <length, tone, technical rules, what not to do>
FORMAT: <list, table, HTML file, three options…>
EXAMPLE: <optional: a sample of the style or structure>
CHECK: list assumptions and facts I need to verify.

Frequently asked questions

Is there a perfect prompt template?

No, but a structure helps: context, task, constraints, format, examples. Short prompts are fine for small edits; big tasks deserve a proper brief.

Why does the AI ignore part of my prompt?

Long prompts with many rules can get partly overlooked, especially at the end of a long conversation. Put the most important rules first, repeat crucial constraints in later prompts, or start a fresh conversation with an updated brief.