All templates
AI

AI Chat Workspace

A provider-independent conversation interface with a local demo and an optional response handler.

Conversation history and new chatsAttachments, keyboard composer and cancellationSources, code preview and copy actionsDemo responses or your own async handler
Template style

Plan a product release

Demo

Fieldnote

Let’s put the next release in order. Share your goals, paste a brief, or attach the documents you want to work with.
export const release = {
  version: "0.6.0",
  status: "in-progress",
}

Local demo · attachments are not sent or read

Usage

tsx
import { AiChatWorkspace01 } from "@/components/templates/ai-chat-workspace-01"

export default function Page() {
  return <AiChatWorkspace01 />
}

Connect your application

Without onRespond, responses are simulated locally and attachments are not read or transmitted.

Pass an async onRespond(messages, { signal, files }) handler returning { text, sources?, code? }. Forward the AbortSignal to your request so the Stop action cancels network work.

Keep provider credentials in a server route. The template owns the conversation UI; it does not include a model SDK, backend persistence or token streaming.