Sample Chats

Example conversations you can drop into chat UIs, tests, or mocks. Pick a format tab to copy structured data, or use the preview to eyeball layout.

[
  {
    "role": "user",
    "content": "How do I make a simple pasta sauce?",
    "timestamp": "2026-04-05T12:00:00Z"
  },
  {
    "role": "assistant",
    "content": "Sauté garlic in olive oil, add canned tomatoes, salt, pepper, and simmer for 15–20 minutes. Add basil at the end.",
    "timestamp": "2026-04-05T12:00:02Z"
  },
  {
    "role": "user",
    "content": "Can I add cream?",
    "timestamp": "2026-04-05T12:00:08Z"
  },
  {
    "role": "assistant",
    "content": "Yes, that turns it into a creamy tomato sauce—just add a splash at the end.",
    "timestamp": "2026-04-05T12:00:10Z"
  }
]

Fields

role

Defines the sender of a message in the chat. user is a user message, assistant is an AI-generated message, and system is optional system-level instructions.

content

The actual message text. Can include plain text, markdown, or formatted content depending on your UI.

timestamp

ISO 8601 formatted date string (e.g. "2026-04-05T10:00:00Z").

Extensions

Depending on your use case, you can extend the format with additional metadata:

type ExtendedChatMessage = {
  role: "user" | "assistant" | "system";
  content: string;
  timestamp: string;

  // optional
  id?: string;
  name?: string;
  delay?: number; // simulate typing latency (ms)x
  usage?: {
    promptTokens?: number;
    completionTokens?: number;
    totalTokens?: number;
  };
  model?: string; // e.g. "gpt-4.1"
};