All five AI workspace screens together, on one dataset and one shell: agent home and chat, workspace overview, revenue dashboard, customers with leads and records, and invoices, with working sidebar links between them and Quick chat on every screen.
This page holds the props and the code. See the template, its screens and a live preview.
- AI workspace app
- Agent first company tool
- Small business back office
- Starter for a multi screen app
Examples
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- screen / defaultScreen
"agents"|"workspaces"|"dashboard"|"customers"|"invoices"- Default
"agents" - The screen shown, controlled or not.
- onScreenChange
(screen) => void- A sidebar link was followed.
- layout
"page"|"fill"- Default
"page" - page: the window scrolls and the sidebar and topbar stick. fill: the page fills its parent and the main column scrolls.
- embedded
boolean- Default
false - For a page shown inside another page: no second main or aside landmark.
- labelPrefix
string- Prefixes the shell's landmark names so several previews on one page stay unique.
- className
string- On the outer box, for example a height with layout fill.
- Data
ai-workspace-data- Fernhill Supply Co., a made-up company: people, four agents, customers, contracts, leads, invoices and workspaces, dated to November 21, 2026. Every template reads it, so installed screens agree. Replace it with your own queries.
| Prop | Type | Default | Description |
|---|---|---|---|
| screen / defaultScreen | "agents" | "workspaces" | "dashboard" | "customers" | "invoices" | "agents" | The screen shown, controlled or not. |
| onScreenChange | (screen) => void | - | A sidebar link was followed. |
| layout | "page" | "fill" | "page" | page: the window scrolls and the sidebar and topbar stick. fill: the page fills its parent and the main column scrolls. |
| embedded | boolean | false | For a page shown inside another page: no second main or aside landmark. |
| labelPrefix | string | - | Prefixes the shell's landmark names so several previews on one page stay unique. |
| className | string | - | On the outer box, for example a height with layout fill. |
| Data | ai-workspace-data | - | Fernhill Supply Co., a made-up company: people, four agents, customers, contracts, leads, invoices and workspaces, dated to November 21, 2026. Every template reads it, so installed screens agree. Replace it with your own queries. |
Accessibility
- The sidebar is the App Shell's: a navigation landmark with groups. A module that is not installed is a disabled row, so it is announced but cannot be followed.
- Quick chat in the topbar opens a dialog sheet named after the agent, with the screen's context as its description. Focus moves into it and returns to the button on close.
- The five screens share one landmark structure, so moving between them keeps the sidebar and topbar in place.
What it handles
- 01Installs agent home, workspace overview, revenue dashboard, customers and invoices in one go.
- 02Switches screens in state, so the sidebar links work without a router.
- 03Marks every installed module as a link and keeps the rest dimmed, as each template does on its own.
- 04Shares one made-up company, so a customer in the chat is the same row in Customers and on its invoices.
- 05Puts Quick chat in every topbar with the screen's context.
- 06Takes screen and onScreenChange to drive it from your own state.
States
- First render
- The agent home; nothing moves
- none
- Follow a link
- The other screen shows in the same shell
- none
- Quick chat
- A sheet slides in from the right
- 280ms, ease out
| State | What moves | Timing |
|---|---|---|
| First render | The agent home; nothing moves | none |
| Follow a link | The other screen shows in the same shell | none |
| Quick chat | A sheet slides in from the right | 280ms, ease out |
Works with
When to use
When to use
- A whole AI workspace at once: agent home, workspace, dashboard, customers and invoices, linked.
- A starting point you split into routes, one template per page.
When not to use
- Just one of the screens: use Revenue Dashboard.
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 AI Workspace to my app and wire it to my own data.
- I need a whole AI workspace at once: agent home, workspace, dashboard, customers and invoices, linked. Set that up with the Knowns UI AI Workspace.
- Which AI Workspace props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "template-ai-workspace" }) and search_docs({ query: "ai workspace" }). Pro props, full examples and source come back once your license key is in the MCP config.