Ballmac UI home

Agent 16: answer workspace

A support-style answer workspace: ask in plain words, watch the assistant work, read an answer where every claim points to its source, and correct or switch off what it remembers about the person.

State

The normal view. Pick a state to see what the block shows while it loads, is empty or fails.

Open in v0 (opens in a new tab)

Installation

$ pnpm dlx shadcn@latest add @ballmac/agent-16

Usage

Example: agent-16-demo.tsx
"use client"

import { Agent16 } from "@/components/ballmac/blocks/agent-16/agent-16"

export default function Agent16Demo() {
  return <Agent16 />
}

States

Pass state and the block does the rest: skeletons that match its layout, a clear empty message, an error you can retry, and announcements for screen readers.

  • Loading

    Skeleton conversation and memory under the real heading, announced as loading.

    state="loading"
  • Ask your first question

    Says to ask a first question; emptyState sets the copy.

    state="empty"
  • Could not load

    An alert saying nothing was sent, with Try again (onRetry). A question that fails to answer comes back into the box with the reason.

    state="error"

Dependencies

Use with AI

Answer workspace. <Agent16 title description turns={[{ id, question, answer?: { paragraphs, sources } }]} memories={MemoryItem[]} onAsk={(q) => Promise<{ paragraphs, sources }>} onFeedback={(turnId, value, reason?) => void} onForget={(id) => Promise} />. A turn without an answer shows the thinking loader. Paragraphs cite sources with [1] markers. On a phone the memory panel sits behind a Show memory button. A rejected onAsk removes the pending turn and puts the question back in the box. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Agent 16: answer workspace (@ballmac/agent-16) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • A customer-facing or internal assistant that answers from a knowledge base
  • Any chat where trust depends on seeing sources

Not for

  • A chat with no sources; use ai-chat-1
  • Watching a long agent run; use agent-11

Registry JSON: https://ui.ballmac.com/r/agent-16.json

Free to use in personal and commercial projects.

Ballmac UI Pro

Need the whole screen, not one piece?

150 premium blocks (dashboards, settings, calendars, mail, shops, onboarding), a private shadcn registry and Figma tokens. Blocks that show data come with loading, empty and error states built in.

Not ready? Try three Pro blocks free

Leave your email and the blocks appear right here, ready to copy. Yours to use in any project.