How to write an effective prompt
MIT Sloan Teaching & Learning Technologies frames prompting as a way of programming with words and emphasises three practical habits: provide context, be specific, and build on the conversation.[1]
Provide context
Describe the domain, assumptions, audience, and available inputs so the model knows what frame it should operate within.[1]
Be specific
State the task, the constraints, and the expected output structure as clearly as possible.[1]
Build on the conversation
Use iteration deliberately: refine the request, keep what worked, and ask clarifying questions when requirements are underspecified.[1]
A practical way to operationalise that guidance is to write prompts as explicit contracts: context, task, constraints, output schema, examples when needed, and an iteration hook that tells the model how to handle missing information.[1][2]