Skip to content

AI Message

The AI message component displays the AI system’s response to a user’s input.

Usage

The AI message component visually distinguishes automated responses from user input. It supports optional actions or other content relevant to the user.

AI message

When to use

  • Displaying AI-generated content in chat interfaces
  • Providing system-driven assistance or explanations
  • Offering structured follow-up steps after user input
  • Surfacing links to related documents or knowledge sources

Best practices

  • Allow user interaction (feedback, retry, copy) when appropriate.
  • Always place the AI message directly in the background. Do not wrap it in an additional container.
  • Constrain the AI message to a maximum width of 720px for readability.

Except where otherwise noted, content on this site is licensed under MIT License.