Skip to content

Agent Office

An isometric office floor where AI agents work as blocky figures. Each one shows its state by what it does, says what it is doing in a bubble, and a blocked agent opens its approval when you click it.

On this page
Used for
  • Landing hero
  • Agent team overview
  • Approvals at a glance
  • Launch videos
  • Status pages

Examples

Variant

As a hero

Two rooms

Six rooms, a desk for everyone

Figures your way

Your own approval panel

On a phone

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

rooms
OfficeRoom[]
Defaultfour demo rooms
One to six rooms: id, label, optional colour and kind (office, meeting, servers, lounge). Four rooms with no kind and room for their agents give the classic floor; anything else is laid out on a grid, up to three along the back wall and the rest along the front, with the Approval desk in the aisle between. Rooms past the sixth are left out.
agents
OfficeAgent[]
Defaultfive demo agents
id, name, room, state (working, thinking, blocked, done, idle) and optionally tool, say, handoffTo, approval, color, hair (cap, long, tall, bun, fringe) and accessory (headset, scarf, backpack, badge). Agents fill their room's desks in order, and a grid room gets as many desks or table seats as it has agents.
events
OfficeEvent[]
What agents report: { id, agent, text, tool?, at? }. The latest event of an agent is what its bubble says.
onApprove
(agent) => void
The person approved a blocked agent's request. Set the agent's new state; the figure walks back.
onDecline
(agent) => void
The person declined it.
renderApproval
(agent, { approve, decline, close }) => ReactNode
Your own panel for a blocked agent. By default it is the Approval Prompt with the agent's approval title and detail.
variant
"floor" | "hero"
Default"floor"
hero adds the headline above the floor and keeps the first waiting approval open under it.
headline
ReactNode
Default"Five agents. One floor you can watch."
The hero headline.
bubbles
boolean
Defaulttrue
Speech bubbles over the figures. Under 640px of width they become a list under the floor.
theme
"auto" | "light" | "dark"
Default"auto"
auto follows the page's dark class. Light has a wooden floor; dark uses the kit's card and foreground tokens.
labels
Partial<AgentOfficeLabels>
review, approvalDesk, close and floor, for other languages.
className
string
On the outer element.

Accessibility

  • The floor is one image with a title that names every agent and its state, for example "Ledger, blocked".
  • Each blocked agent is a button over its figure and bubble, named "Review: Ledger, Refund over the limit, need a yes", with aria-haspopup="dialog" and aria-expanded.
  • The approval opens as a dialog that takes focus; Escape or the close button shuts it and focus goes back to the agent.
  • State is a word in every bubble and list row, never only the colour of the dot.
  • Under reduced motion nobody walks: figures and bubbles are where they end at once.

What it handles

  1. 01Lays out one floor from your rooms: four departments, a glass meeting corner, a lounge and the Approval desk in the middle, all drawn from isometric boxes that follow the light and dark theme.
  2. 02Shows each agent's state by what its figure does: typing at its desk, standing at the board, waiting at the Approval desk with a hand up, or carrying a document to the agent it hands to.
  3. 03Puts what every agent says in a speech bubble with its state and tool, and places the bubbles so none covers a figure, another bubble or the handoff path. Under 640px the bubbles move into a list.
  4. 04Turns a blocked agent into a button that opens its approval: the Approval Prompt by default, or your own panel through renderApproval. The decision goes out through onApprove and onDecline.
  5. 05Walks a figure along the aisles, through the gaps in the glass and round the Approval desk when its state changes, with GSAP inside the block only.

States

First render
Nothing moves. Every figure is where its state puts it
none
State changes
The figure turns to face its way, walks one rounded path at a steady pace with its arms and legs swinging, turns at each corner, then takes its pose; its bubble rides along
120ms turn, then 140px/s with a 240ms ramp at each end
New words
The bubble's text settles in place
120ms, ease out
Open an approval
The panel rises in over the floor
180ms, ease out
Reduced motion
Figures and bubbles jump to where they end
0ms

Works with

When to use

When to use

  • A landing hero or launch video that shows a team of agents at work, with the approval a person has to give.
  • An overview of a small agent team where each agent's state reads at a glance and a blocked one is one click from its approval.

When not to use

  • Many agents with health, history and filters: use Agent Fleet.
  • Working through a queue of approvals: use Agent Inbox.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Agent Office to my app and wire it to my own data.
  • I need a landing hero or launch video that shows a team of agents at work, with the approval a person has to give. Set that up with the Knowns UI Agent Office.
  • Which Agent Office props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "agent-office" }) and search_docs({ query: "agent office" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Agent Office, or found something off? We read every message.