What is prompt engineering?

Prompt engineering is the work of writing and testing the instructions you give an AI model so it reliably does what you want. In a product, the prompt is part of the spec: it sets the role, the rules, the examples and the output format.

A good prompt reads like a clear brief to a smart new colleague: who they are helping, what good looks like, what to avoid, and a few worked examples.

What works

  • Be specific about the goal and the audience. "Summarise for a busy executive in three bullets" beats "summarise".
  • Show examples. Two or three good input/output pairs often help more than a paragraph of rules.
  • Give it the context it needs. Missing information is the most common cause of bad output.
  • Ask for a structure. If code will read the answer, ask for JSON or a fixed format.
  • Explain why. Models follow a rule better when they know its purpose.

Why PMs should care

The prompt encodes product decisions: tone, what to refuse, when to ask a clarifying question. Those are product calls, so PMs should read and help write the system prompt. And never ship a prompt change on gut feel: run it against your evals first, because a fix for one case often breaks another.

All 27 terms in the AI glossary →