Example Prompts Library

Example prompts library is an AI UX pattern that offers a browsable, searchable collection of curated prompt examples organized by use case or category. Users can copy a prompt directly or adapt it for their own needs, which teaches effective prompting by example and reduces trial-and-error compared to a blank input field alone.

Share

Interactive demo

Example Prompts Library
Example

Create a React component for a login form

Example

Write a Python function to sort a list

Example

Generate a SQL query to find top customers

Overview

The design problem

How might we design example prompts library so people can trust and act on AI output?

Use this pattern

When this pattern fits

  • Ideal for AI text generation tools, image creation platforms, and applications where prompt quality significantly impacts AI output quality.

Avoid this pattern

When to skip or lighten it

  • Narrow single-purpose tools where there is really only one way to prompt the product.
  • Products whose capabilities change quickly, where a stale library actively teaches outdated techniques.
  • Highly expert audiences who already know the prompting patterns and would find a library redundant.

States

State model coming soon

Key UX elements

Key UX elements coming soon

Anti-patterns to avoid

  • A flat, uncategorized list that forces users to scroll through everything to find something relevant.

  • Example prompts that no longer work well with the current model version.

  • No one-click way to use an example, forcing manual copy-paste into the input field.

  • Examples that showcase edge-case tricks rather than the prompts most users actually need.

How products use it

ProductImplementation
ChatGPTExample prompt categories surface in the empty-state and Explore GPTs sections.
MidjourneyCommunity and official prompt examples model effective image-generation phrasing.
ClaudePrompt library in the console shows categorized, copyable examples for common tasks.
Notion AITemplated prompt suggestions demonstrate writing and summarization tasks by category.

Real-world examples

How shipped products implement example prompts library, from our teardown guides.

All teardowns

Implementation

Copy this prompt to generate a production-ready implementation in Cursor, Claude Code, Lovable, or any AI coding agent.

Generate a production-ready implementation of the "Example Prompts Library" AI interface design pattern.

Pattern Definition:

Frequently asked questions

What is an example prompts library in AI products?

An example prompts library is a curated, browsable collection of prompt examples, usually organized by category or use case, that users can copy or adapt as a starting point instead of writing a prompt from scratch.

How is a prompt library different from empty-state prompt starters?

Prompt starters show a handful of examples directly on the empty chat screen for immediate use. A prompt library is a larger, searchable, categorized collection usually reached through a dedicated section, meant for browsing rather than a quick nudge.

Do prompt libraries need to be updated over time?

Yes. As models and features change, examples that relied on older behavior can mislead users or under-demonstrate current capabilities, so a maintained library should get periodic review against the current product.

Weekly AI UX in your inbox

Weekly AI interface UX notes and resources on Substack, no spam, unsubscribe anytime.

Subscribe on Substack