Back
Lesson 3 of 5

Prompt Training — Lesson 3

Constraints, Output Format, and Examples

13 min read

Learning Objectives

  • 1Use constraints to control quality, tone, and scope.
  • 2Specify output formats that make AI responses immediately usable.
  • 3Use few-shot examples to establish patterns and standards.

Constraints as quality controls

Constraints limit what the AI can produce, which paradoxically improves quality. Word count limits force conciseness. Tone requirements prevent inappropriate style. Content restrictions keep output on topic. Required elements ensure completeness.

Effective constraints include: word or sentence limits, required tone (professional, casual, technical, accessible), topics to include or exclude, claims that must be supported by evidence, audiences that must not be alienated, terminology to use or avoid, and compliance requirements.

Negative constraints — what not to do — are sometimes more powerful than positive instructions. "Do not use marketing buzzwords. Do not make unsupported claims. Do not exceed 300 words. Do not address competitors by name." These clear prohibitions prevent the most common output problems.

Output format as a force multiplier

Format instructions change whether AI output is usable or requires significant reformatting. "Return the analysis as a table with columns for Issue, Impact, Recommendation, and Priority" produces output you can paste directly into a presentation. "Give me your thoughts" produces a wall of text you have to restructure.

Useful format specifications: bulleted lists, numbered steps, tables with defined columns, email format, executive summary format, comparison matrices, pros-and-cons lists, FAQ format, slide-by-slide outlines, and structured JSON for technical applications.

When you need output in a specific structure, provide a template: "Format your response as follows: FINDING: [describe the finding]. IMPACT: [business impact]. RECOMMENDATION: [specific action]. PRIORITY: [high/medium/low]." Templates dramatically improve output consistency.

Few-shot examples

Few-shot prompting means including examples of the desired input-output pattern in the prompt. Instead of describing what you want, you show what you want. "Here are three examples of the analysis format I need" followed by actual examples is often more effective than lengthy instructions.

Examples are particularly useful for establishing tone, format, level of detail, and analytical approach. If you want AI to write product descriptions in your brand voice, include three examples of descriptions you consider excellent. The AI will pattern-match against your examples.

The quality of your examples directly affects the quality of the output. Use your best examples, not average ones. Two or three excellent examples are better than five mediocre ones. And ensure your examples are consistent — if they contradict each other, the AI output will be inconsistent too.

Case Study

The template that standardized quality

Situation

A consulting firm used AI to draft client deliverable summaries. Quality was inconsistent — some were excellent, others were generic and unfocused. The team created a standard prompt template with role, context fields, required sections, format specification, and two examples of strong summaries. Quality became consistent across all team members.

Analysis

The template eliminated the variability in prompt quality across the team. Junior analysts using the template produced summaries comparable to what senior analysts produced with ad hoc prompts. The examples were the key — they showed the AI exactly what "good" looked like.

Takeaway

Standardized prompt templates with examples produce consistent quality across teams. The template is a team asset worth maintaining and improving.

Reflection Questions

  • 1. Think of an output format you frequently need. Write a format specification you could include in a prompt.
  • 2. Do you have examples of excellent work that could be used as few-shot examples in prompts?

Key Takeaways

  • Constraints improve quality by limiting what the AI can produce.
  • Format specifications make AI output immediately usable without reformatting.
  • Few-shot examples are often more effective than lengthy instructions.
  • Standardized templates with examples produce consistent quality across teams.