nextui.dev
Home
Docs
Saved
Pricing
Components37
  • Forms & inputs7
  • Cards13
  • Buttons, badges & avatars8
  • Feedback & display6
  • Effects3
Agents17
  • Chat inputNew
  • Task checklistNew
  • ReasoningNew
  • Tool callNew
  • Tool approvalNew
  • SourcesNew
  • Agent timelineNew
  • Artifact panelNew
  • Streaming messageNew
  • Conversation shellNew
  • Voice agentNew
  • Voice orbNew
  • Thinking ring
  • Thinking waveNew
  • Thinking sparkle
  • Thinking bot
  • Prompt deckNew
Blocks20
  • Agent chatNew
  • Pill heroNew
  • Grid hero
  • Moodboard generatorNew
  • Waitlist heroNew
  • Intro bannerNew
  • Creative home heroNew
  • Chat heroNew
  • App shelfNew
  • Usage card
  • Design resultsNew
  • Pricing tiers
  • Dashboard home
  • The shiftNew
  • Launch perksNew
  • Testimonials
  • Quote
  • Team
  • Leads tableNew
  • Sign in
Pages10
  • ASCII workspace$49
  • CRM overviewNew
  • Marketing dashboardNew
  • Developer portfolio$49
  • Particle landing$49
  • Particle story$49
  • Statement converter$49
  • AI photo studio$49
  • Group card launch$49
  • Month-end storyNew
Themes9
  • Default
  • Ember
  • Ocean
  • Forest
  • Grape
  • Rose
  • Amber
  • Clay
  • Brutal
Upgrade
nextui.dev

nextui components, blocks and themes you install with one command.

Product

  • Components
  • Blocks
  • Themes
  • Pricing

Resources

  • Docs
  • Roadmap
  • GitHub

Legal

  • License
  • Privacy
  • Terms
  • Refunds

nextUI

[ 200 OK ] · nextUI

© 2026 NEXTUI • All rights reserved.

Upgrade
BlocksAgent chat
Copy promptCopy prompt

Customize

Time stamp above the conversation

Bold first half of the reminder pill at the top

Rest of the reminder pill

Label of the select in the question card

Label of the choice tiles

Play the scripted conversation while the window is in view

Start the script over a few seconds after it finishes

JSX · copied with Copy prompt

<AgentChat />

Agent chatNew

AI assistant thread that types a request, thinks over a sparkle field, asks a follow-up with a select and choice tiles, then streams its answer word by word.

Installation

Set your access key from API keys as NEXTUI_TOKEN in .env.local and add the @nextui namespace below to components.json once. Then every item installs by name. Each install counts as a copy on a free account.

$pnpm dlx shadcn@latest add @nextui/agent-chat
1{
2 "registries": {
3 "@nextui": {
4 "url": "https://nextui.dev/r/{name}.json",
5 "headers": { "Authorization": "Bearer ${NEXTUI_TOKEN}" }
6 }
7 }
8}

Usage

1"use client";
2
3import { AgentChat } from "@/components/blocks/agent-chat";
4
5export function DeckAssistant() {
6 return (
7 <AgentChat
8 prompt="Build a 10 slide board update on Q3 revenue, burn and hiring."
9 onSend={(message) => console.log("send", message)}
10 onAnswer={({ slides, depth }) => console.log(slides, depth)}
11 />
12 );
13}

API reference

Edit props live in the preview above, or see all 14 props
PropTypeDefaultDescription
datestring"Today, 8:08 AM"Time stamp above the conversation
noticeTitlestring–Bold first half of the reminder pill at the top
noticestring–Rest of the reminder pill
promptstringQ1 investor deck briefText the demo types into the composer and sends
questionstring"How many slides would you like for this deck?"Label of the select in the question card
slideCountsnumber[][5, 10, 15, 20, 25]Options in the select; the demo picks the second one
depthQuestionstring"Choose your depth of coverage"Label of the choice tiles
depthsDepthOption[]Essential, In-Depth, Summary, Deep DiveChoice tiles: a label and skeleton line widths; the demo picks the first one
answerAnswerBlock[]Outline notesThe streamed reply: paragraphs or bullets, with **bold** runs
autoPlaybooleantruePlay the scripted conversation while the window is in view
loopbooleantrueStart the script over a few seconds after it finishes
onSend(message: string) => void–A message was sent from the composer
onAnswer(answer: { slides: number; depth: string }) => void–The question card was submitted with both answers
classNamestring–Extra classes on the outer element

Related

All blocks

Pill heroNew

Grid hero

Sign in to see the code

Preview it freely. A free account copies code and prompts a few times a day.

Sign in