โ† AI Product Building learning path
AI Product Building ยท Module 3 of 10

Prompt design for products

Product prompts are instructions you version, test and improve.

๐Ÿ“– Key ideas

  1. A system prompt sets role, rules, tone and output format.
  2. Give context and examples; be specific about what good output looks like.
  3. Ask for structured output (JSON) when code will read the answer.
  4. Keep prompts in version control and change them with tests.
  5. 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