Prompt EngineeringIntermediate17 August 2026
An AI application must always return JSON containing exactly "summary", "risk", and "next_action". What is the best prompting approach?
Pick an answer to see the explanation.
Answer
Clearly define the required output schema and provide the expected field names and constraints
When downstream software depends on a predictable response, the prompt should explicitly describe the expected structure, required fields, allowed values, and relevant constraints. Structured-output features offered by the model or API can provide even stronger guarantees, but clear schema instructions remain an important part of the prompt design.
Learn more: Learn prompt engineering for real work →