Output Format Selection

Output format selection is an AI UX pattern that lets users choose how the answer should be delivered—Markdown, JSON, CSV, slides—before or after generation. Structure becomes a user-controlled contract.

Share

Interactive demo

Headers, lists, and links

# Q2 renewal playbook

Three steps for account managers before Friday.

Overview

The design problem

How might we design output format selection so people can trust and act on AI output?

Use this pattern

When this pattern fits

  • Perfect for data processing tools, content generation platforms, and applications where output format selection improves usability and integration.

Avoid this pattern

When to skip or lighten it

  • Casual Q&A where format chrome is overkill.
  • Formats the model cannot reliably produce.
  • Downstream systems that already coerce format via API only.

States

State model coming soon

Key UX elements

Key UX elements coming soon

Anti-patterns to avoid

  • Claiming JSON mode while returning prose fences.

  • No validation that the output matches the selected schema.

  • Changing format mid-stream without restarting cleanly.

  • Hiding format options in buried settings.

How products use it

ProductImplementation
ChatGPTCanvas and code/json oriented outputs on request.
ClaudeArtifacts and structured output styles.
API platformsResponse format parameters for JSON mode.
Data analysis toolsExport-as controls for tables and files.

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 "Output Format Selection" AI interface design pattern.

Pattern Definition:

Frequently asked questions

Where should format selection live?

Near the composer or on the answer toolbar. Power users also need it in API/docs.

Select before generate or after?

Before for strict schemas; after for “convert this answer to CSV.” Support both.

How do you verify structured output?

Schema-validate on the client or server and show errors with a fix action.

How does this relate to export conversation?

Format selection shapes a single answer. Export packages the whole thread.

Weekly AI UX in your inbox

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

Subscribe on Substack