Skip to content
caliper ui pro docs

AI side panel

An assistant docked beside the app it helps with. It opens alongside the page so the work stays visible, says what it is looking at, offers starting questions for that context and keeps one conversation. In a narrow space it slides over the page instead.

Pro

Deals / Enterprise

Northwind renewal

Stage
Negotiation
Value
$118,800
Seats
120
Owner
Mara Lindqvist
Close date
19 December
Last activity
18 November

Latest activity

  • 18 Nov · Legal asked for a data processing addendum
  • 12 Nov · Quote sent for 120 seats
  • 4 Nov · Call with Priya Raman, champion

When to use

  • Record pages in a CRM, helpdesk or finance tool, where questions are about what is on screen.
  • Dashboards and documents that need an assistant without a separate chat screen.

When not to use

  • A full chat product; use the chat shell.
  • One-shot actions such as summarise; put a button where the content is.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/ai-side-panel

Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

AiSidePanel

13 props
PropTypeDefaultDescription
open *boolean—
onOpenChange *(open: boolean) => void—
children *ReactNode—The app the panel sits beside.
idstring—Id of the panel, for the opening button's aria-controls.
titlestring"Assistant"
context{ label: string; detail?: string | undefined; }—What the assistant can see, shown as a chip under the title: the open record, page or selection.
suggestionsreadonly string[][]Starting questions shown while the conversation is empty; choosing one sends it.
messages *readonly AiPanelMessage[]—
onSend *(text: string) => void—
streamingbooleanfalse
onStop(() => void)—
onNewChat(() => void)—Shown as New chat in the header once there are messages.
classNamestring—

Keyboard

Escape
Closes or cancels, then returns focus to where it came from.

Accessibility

It is built on native elements and keeps aria-hidden, aria-label, aria-live and aria-busy in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/ai-side-panel.md

The index of every part is at /llms.txt.

More in Assistant screens