Skip to main content
Prompt Templates Interface

Prompt Engineering Basics

Structure

  • Clear organization
  • Logical flow
  • Specific formatting

Clarity

  • Unambiguous instructions
  • Specific requirements
  • Defined constraints
  • Clear objective
  • Context information
  • Output format
  • Quality criteria
  • Examples (if needed)

Prompt Structures

Basic Structure

Write a [type of content] about [topic] that includes:
- Point 1
- Point 2
- Point 3
Format as [desired format]

Advanced Structure

Role: [specific role/expertise]
Task: [detailed description]
Context: [background information]
Requirements:
- Requirement 1
- Requirement 2
Format: [specific format]
Additional Notes: [any constraints or preferences]

Iterative Approach

Initial draft: [topic/concept]
Current text: [existing content]
Next step: [what to add/modify]
Style guide: [formatting requirements]

Example Templates

{
  "name": "Academic Analysis",
  "template": "Write a detailed academic analysis of {topic} considering:\n1. Historical context\n2. Current research\n3. Future implications\n\nFormat using {style_guide} with {word_count} words.",
  "variables": {
    "topic": "string",
    "style_guide": ["APA", "MLA", "Chicago"],
    "word_count": "number"
  }
}

Best Practices

Be Specific

Avoid ambiguity in instructions

Provide Context

Include relevant background

Iterate

Refine prompts for better results

Quality Improvement Tips

  • Use precise language
  • Specify output format
  • Include examples when needed
  • Define success criteria
  1. Start with basic prompt
  2. Review output
  3. Identify gaps
  4. Refine constraints
  5. Add specific requirements
  • Vague instructions
  • Missing context
  • Unclear format requirements
  • Insufficient constraints
For more advanced prompt engineering techniques, visit Learn Prompting