AI Chat
A complete Next.js chat app on the AI SDK — streaming, tool calls, reasoning, model switching, saved conversations and real error states.
The app templates
Start with a working Next.js app where streaming, tools, reasoning, model switching, and persistence are already wired together.
A complete Next.js chat app on the AI SDK — streaming, tool calls, reasoning, model switching, saved conversations and real error states.
Upload, chunk, embed, retrieve, answer — with citations that land on the sentence they came from, not a list of filenames at the bottom.
A resumable agent run: human-in-the-loop approvals, per-step cost and tokens, retry and step-level re-run, and cancellation that actually stops the model.
Stream a zod schema into a form: partial objects rendered without flicker or layout shift, per-field confidence and evidence, correction, and honest validation failure.
A chat where the model renders components: a two-sided registry as the trust boundary, streaming props, skeletons from partial input, and prose when a name is unknown.
Realtime speech over WebRTC with barge-in that actually retracts playback, a live waveform, a transcript store — and a simulated backend so it runs with zero credentials.
Ask, retrieve, answer, suggest: sources on the stream before the first token, citations that slice the original document by offset, and follow-up questions from a second call.
A chat that remembers: approval-gated memory writes, a cookie-backed store with no database, and a system prompt that keeps recollection sparse instead of clingy.
An agent-assist console: ticket queue, KB-cited draft replies your agents edit before sending, and refunds the model can only propose — a human approves.
Generation as an async job, not a chat: a server-enforced state machine, polling that never re-downloads pixels, blocked vs failed as different outcomes, and a simulated backend for keyless development.
Plan, fan out, synthesize: a planner decomposes the question, parallel researchers answer against the corpus, and a live timeline streams every step before the cited report.
Every demo above is a scripted replay of the real components the template ships — there is no model behind this page, but the buttons inside them are live. The template you download talks to your own key.