Google AI Studio: fast mini-apps with prompts
How to specify instructions to get stable behavior and predictable output formats.
1) Define the output format
Specify a JSON schema or strict template.
Add input/output examples (few-shot).
2) Split system vs user prompts
System: rules, tone, prohibitions.
User: data/context and the task.
3) Add error handling
Ask the model to return explicit errors.
Add length limits and allowed values.