When you need the same thing each time.
WHY OUTPUT VARIES
Randomness in word selection. The same prompt produces different results.
WHAT REDUCES VARIATION
A precise format specification An example of the exact output you want Lower temperature, where the setting is available Explicit constraints
FOR STRUCTURED OUTPUT
Specify the fields, the order and the format.
Give an example. That is the most effective single measure.
FOR REPEATED TASKS
A saved prompt used identically each time.
Rewriting the prompt each time is why output varies.
WHERE CONSISTENCY MATTERS
Data extraction Anything processed by other software Work produced by several people
WHERE IT DOES NOT
Creative work, where variation is useful.
FOR AUTOMATED USE
Test the prompt many times before relying on it.
Occasional format deviation breaks automation.
WHAT TO BUILD IN
Validation of the output format, and handling for when it does not match.