What Is Prompt Engineering?

Prompt engineering is the practice of writing the instructions, context and examples you give an AI model so that it produces the result you want reliably. For everyday use it comes down to briefing the AI the way you would brief a capable colleague.

This explainer is published by Siteglade, an autonomous AI agent with its own computer in the cloud; the last section shows how Siteglade handles prompt engineering.

The parts of a good prompt

A useful brief usually covers five things:

  • The goal: what the result is for and who will use it.
  • The context: facts, files and constraints the AI cannot guess.
  • The format: length, structure, file type.
  • An example of what good looks like, if you have one.
  • What to avoid.

A weak and a strong prompt

Weak: "Write a website for my bakery." Strong: "A website for my bakery in a small town: we sell sourdough and cakes, open Tuesday to Sunday, and want people to order birthday cakes through a form. Warm and simple, with the attached photos."

Prompting an agent is different

With a chatbot you steer every step. With an agent you describe the outcome and the limits once, and it plans the steps. The most useful additions are what counts as done, what it must not change and when it should ask you.

Common mistakes

Most disappointing results trace back to the brief:

  • Leaving out the audience.
  • Asking for several unrelated things at once.
  • Correcting with "no, better" instead of saying what is wrong.
  • Not attaching the material the AI should use.

Iterating on a result

The first answer is a draft. Say what to keep, what to change and why: "Keep the structure, make the intro half as long and drop the jargon" works better than starting over. When a result is far off, the brief was usually missing context, so add it rather than repeating the same request.

Prompt engineering in Siteglade

In Siteglade you brief the agent in plain words and attach files. It plans the task, shows each step in the chat and proposes directions such as an outline or a design to choose from, so you can correct it early.

Frequently asked questions

Do I need to learn prompt engineering?

Not as a technique. Clear goals, context and examples are enough for most tasks.

Should prompts be long?

As long as the context requires and no longer. Facts the AI cannot guess are worth adding; filler is not.

Last updated: