Customers and leads for an AI workspace: four stats, a filterable table of companies with owner, ARR, stage and tags and an ARR total, a Leads tab, and the customer record with its header, open invoices, the activity timeline and company details the agent can fill in.
This page holds the props and the code. See the template, its screens and a live preview.
- Customer list with ARR
- Leads table
- Company record
- Account enrichment
Examples
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- defaultView
"customers"|"leads"|"record"- Default
"customers" - The tab, or a record.
- defaultOpenId
string- Default
the first customer - The record open with defaultView record.
- onEnrich
(customer, signal) => Promise<EnrichmentField[]>- Default
from the dataset - The agent's proposals for the company details.
- onAddNote
(customer, text) => void|Promise<void>- Save a note from the timeline.
- onAction
(id) => void- Export and Add.
- installed
ModuleId[]- Default
this module - Modules whose screen you installed. They are links in the sidebar; the rest are dimmed with a dashed mark.
- hrefs
Partial<Record<ModuleId, string>>- Default
"#/<id>" - The URL of each installed module.
- onNavigate
(id: ModuleId) => void- A sidebar row was picked. With it, hash links stay in the page (the bundle switches screens this way).
- 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 |
|---|---|---|---|
| defaultView | "customers" | "leads" | "record" | "customers" | The tab, or a record. |
| defaultOpenId | string | the first customer | The record open with defaultView record. |
| onEnrich | (customer, signal) => Promise<EnrichmentField[]> | from the dataset | The agent's proposals for the company details. |
| onAddNote | (customer, text) => void | Promise<void> | - | Save a note from the timeline. |
| onAction | (id) => void | - | Export and Add. |
| installed | ModuleId[] | this module | Modules whose screen you installed. They are links in the sidebar; the rest are dimmed with a dashed mark. |
| hrefs | Partial<Record<ModuleId, string>> | "#/<id>" | The URL of each installed module. |
| onNavigate | (id: ModuleId) => void | - | A sidebar row was picked. With it, hash links stay in the page (the bundle switches screens this way). |
| 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.
- A table row opens the record on click; the company name in the row is the record's name in its header.
- The record reuses the CRM parts: Record Header, Record Timeline and Enrichment Panel, with their own keyboard and live regions.
What it handles
- 01Shows four stats over a Data Table of companies with owner, location, ARR, stage and tags, filters by owner and stage, and an ARR total in the footer.
- 02Switches to the open leads on a Leads tab, with score, value and their totals.
- 03Opens a company's record from its row: Record Header with the contract, renewal and contact as facts.
- 04Lists the company's open invoices with the days late, from the same invoices as the invoices screen.
- 05Puts the activity in Record Timeline (add a note) and the company details the agent proposes in Enrichment Panel.
- 06Takes onEnrich and onAddNote for your own calls; without them it answers from the dataset.
States
- First render
- The table at its first sort; nothing moves
- none
- Open a record
- The record replaces the list; All customers goes back
- none
- Enrich
- The panel works, then lists the proposals to accept
- none
| State | What moves | Timing |
|---|---|---|
| First render | The table at its first sort; nothing moves | none |
| Open a record | The record replaces the list; All customers goes back | none |
| Enrich | The panel works, then lists the proposals to accept | none |
Works with
When to use
When to use
- Companies and leads in an AI workspace, with a record that shows invoices, activity and details the agent fills in.
- A customer list that shares its data with the invoices and dashboard screens.
When not to use
- A full CRM with a deal board and email drafts: use CRM.
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 Customers to my app and wire it to my own data.
- I need companies and leads in an AI workspace, with a record that shows invoices, activity and details the agent fills in. Set that up with the Knowns UI Customers.
- Which Customers props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "template-customers" }) and search_docs({ query: "customers" }). Pro props, full examples and source come back once your license key is in the MCP config.