Menu
Loading...
Back to Home
🎯

Define Output Format

Get exactly the structure you need by specifying format upfront

Why Format Matters

Without format guidance, AI might give you a 500-word essay when you needed a bullet list. Or a paragraph when you needed JSON. Specifying format saves time and eliminates back-and-forth.

Think of format as the "container" for information. The same content can be organized as a table, list, JSON object, or prose—each suited for different purposes.

Lists & Bullet Points

Perfect for: Steps, features, recommendations, pros/cons

Simple List

"List 5 time management techniques for remote workers. Format: one sentence per technique."

Output:

  • • Time-blocking: Schedule specific tasks in calendar blocks
  • • Pomodoro: Work 25-min focused, 5-min break cycles
  • • Task batching: Group similar tasks together
  • • Priority matrix: Sort by urgent/important quadrants
  • • Deep work blocks: 2-hour distraction-free sessions

Structured List

"List 3 email marketing best practices. Format: Title + 2-sentence explanation + example."

Output:

1. Personalize Subject Lines

Include recipient's name or reference their recent action. Personalized subject lines increase open rates by 26%.

Example: "John, here's your guide to SEO"

Tables & Comparisons

Perfect for: Comparing options, feature matrices, schedules

Comparison Table

"Compare Notion, Asana, and Monday.com for project management. Format as table: Feature | Notion | Asana | Monday.com"

FeatureNotionAsanaMonday.com
PricingFree-$10/userFree-$24/user$9-$19/user
Best ForDocs + tasksTask workflowsVisual boards
Learning CurveSteepModerateEasy

JSON & Structured Data

Perfect for: API responses, data processing, programmatic use

JSON Object

"Create a user profile for a fictional character. Output as JSON with fields: name, age, occupation, skills (array), bio (string)."

{
  "name": "Sarah Chen",
  "age": 29,
  "occupation": "UX Designer",
  "skills": ["Figma", "User Research", "Prototyping"],
  "bio": "Passionate about creating accessible digital experiences"
}

Array of Objects

"Generate 3 blog post ideas for a fitness blog. Format as JSON array with: title, description, target_audience."

[
  {
    "title": "5 Morning Stretches for Desk Workers",
    "description": "Combat stiffness from sitting all day",
    "target_audience": "office workers"
  },
  {
    "title": "Meal Prep for Busy Parents",
    "description": "Healthy recipes under 30 minutes",
    "target_audience": "parents"
  }
]

Code Formats

Function Output

"Write a Python function to validate email addresses. Format: function with docstring and type hints."

def validate_email(email: str) -> bool:
    """
    Validate email format using regex.
    
    Args:
        email: Email address to validate
    Returns:
        True if valid, False otherwise
    """
    import re
    pattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'
    return bool(re.match(pattern, email))

SQL Query

"Write a SQL query to find top 5 customers by total purchases. Format: commented SQL with explanation."

-- Get top 5 customers ranked by total purchase amount
SELECT 
  c.customer_id,
  c.customer_name,
  SUM(o.total_amount) AS total_spent
FROM customers c
JOIN orders o ON c.customer_id = o.customer_id
GROUP BY c.customer_id, c.customer_name
ORDER BY total_spent DESC
LIMIT 5;

Template Formats

Create reusable formats for consistent outputs

Email Template

"Write a cold outreach email to potential clients. Format: Subject line | Greeting | Body (3 paragraphs: hook, value, CTA) | Sign-off"

Subject:

Quick question about your SEO strategy

Greeting:

Hi [Name],

Hook:

I noticed your site ranks well for [keyword]...

Value:

We've helped companies like [example] increase organic traffic...

CTA:

Would you be open to a 15-minute call next week?

Sign-off:

Best, [Your Name]

Meeting Notes

"Summarize this meeting transcript. Format: Date/Attendees | Key Decisions (bullet points) | Action Items (who/what/when) | Next Steps"

Format Specification Tips

✅ Do

  • • Specify exact structure upfront
  • • Provide example format when needed
  • • Use familiar formats (JSON, Markdown)
  • • State field names and types
  • • Indicate optional vs required parts

❌ Don't

  • • Assume AI will guess format
  • • Mix multiple formats in one output
  • • Use vague terms like "organize nicely"
  • • Forget to specify delimiters
  • • Over-complicate simple requests

Real-World Format Examples

Social Media Post Series

"Create 5 LinkedIn posts about remote work productivity. Format each as: Hook (1 line) | Body (3 bullets) | CTA question | Hashtags (3 max). Separate posts with '---'"

Product Comparison

"Compare iPhone 15 vs Samsung S24. Format: Feature name | iPhone 15 specs | Samsung S24 specs | Winner (with reason). Include: camera, battery, price, performance, design."

API Documentation

"Document a user authentication API endpoint. Format: Endpoint URL | Method | Request body (JSON example) | Response (JSON example) | Error codes (table)."

Practice Exercise

Challenge: Design a Format

You need to create a weekly meal plan for a busy professional. Design a format that includes breakfast, lunch, dinner, prep time, and ingredient list.

Hint: Consider using a table or structured JSON. Think about what would be easiest to scan and use in a real kitchen!

See Prompts with Great Formatting

Discover prompts that get perfect structured outputs

Browse Prompts