โ AI Product Building learning pathAI Product Building ยท Module 3 of 10
Prompt design for products
Product prompts are instructions you version, test and improve.
๐ Key ideas
- A system prompt sets role, rules, tone and output format.
- Give context and examples; be specific about what good output looks like.
- Ask for structured output (JSON) when code will read the answer.
- Keep prompts in version control and change them with tests.
- Separate user input from instructions to reduce prompt injection.
๐ก Real-life example: Like a job description for a new staff member: role, duties, examples of good work and what never to do.
System promptInstructions that set the model's behaviour
Few-shot examplesSample inputs and outputs in the prompt
Structured outputAnswer in a fixed format like JSON
Prompt injectionUser text that tries to override instructions