
When an AI feature gives poor results, the prompt is a sensible first place to look. Treat prompts as part of your product: written with care, reviewed by the team and tested before every change.
Be specific about the task
Explain who the output is for, what it should include, how long it should be and what to do when the information is missing. Most vague answers come from vague instructions.
Provide examples and context
A couple of good examples often teach a format faster than a paragraph of rules. Give the model the relevant source material too, and tell it to rely on that material for its answer.
Test against real cases
Build a small test set from realistic inputs, including the awkward ones. Run it every time you change the prompt or the model, so that an improvement in one place does not quietly break another.
- Typical requests your users will really send
- Inputs with missing or conflicting information
- Requests the feature should politely decline
Remember prompts are not security
Do not rely on instructions alone to protect sensitive data or actions. Permissions and checks belong in your application, where a cleverly worded message cannot talk its way past them.


