The review step after an agent looked a record up. Each field shows the value now against the proposal, where it came from and how sure the agent is. You accept or reject, and only what you accepted is written.
On this page
- Company enrichment
- Contact lookup
- Lead qualification
- Data cleanup
- Agent proposals
Examples
With proposals you already have
On a phone
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- fields
EnrichmentField[]- What the agent proposed: key, label, current?, proposed, source? { label, href? }, confidence (0 to 1), note?. Empty values and repeated keys are dropped and confidence is clamped. A new array replaces the proposals unless a run is in flight.
- onEnrich
(signal: AbortSignal) => Promise<EnrichmentField[]>- Asks the agent. The signal fires on Cancel, on a new run and when the panel unmounts. Without it there is no Find details button.
- onApply
(changes: { key, value, from? }[]) => void|Promise- Called once per Apply with the accepted changes that differ from the current value. If it throws, the decisions stay and Apply can be pressed again.
- onUndo
() => void- Called when Undo opens the rows again. Reverting the write is yours.
- onDecide
(key, decision | undefined) => void- Every accept, reject or cleared decision.
- subject / title
string- Default
- / Enrich this record - The record the panel is about, and its heading.
- minConfidence
number- Default
0.5 - Below this a field is low confidence and shows its caution line. Never accepted for you.
| Prop | Type | Default | Description |
|---|---|---|---|
| fields | EnrichmentField[] | - | What the agent proposed: key, label, current?, proposed, source? { label, href? }, confidence (0 to 1), note?. Empty values and repeated keys are dropped and confidence is clamped. A new array replaces the proposals unless a run is in flight. |
| onEnrich | (signal: AbortSignal) => Promise<EnrichmentField[]> | - | Asks the agent. The signal fires on Cancel, on a new run and when the panel unmounts. Without it there is no Find details button. |
| onApply | (changes: { key, value, from? }[]) => void | Promise | - | Called once per Apply with the accepted changes that differ from the current value. If it throws, the decisions stay and Apply can be pressed again. |
| onUndo | () => void | - | Called when Undo opens the rows again. Reverting the write is yours. |
| onDecide | (key, decision | undefined) => void | - | Every accept, reject or cleared decision. |
| subject / title | string | - / Enrich this record | The record the panel is about, and its heading. |
| minConfidence | number | 0.5 | Below this a field is low confidence and shows its caution line. Never accepted for you. |
Accessibility
- Accept and Reject are toggle buttons (
aria-pressed), named with the field: "Accept Industry". Every control is a native button, so Tab and Enter or Space do it all. - The diff has a text twin for a screen reader: "Now: Design. Proposed: Brand and packaging design." The tint is never the only signal.
- Confidence is read as "Confidence 93%, high", and the meter is decoration.
- One polite live region says each decision, the run state and the apply result. An error is an alert.
What it handles
- 01Shows what an agent proposes for each field next to what the record holds now, marked word by word: removed words struck on a red tint, added words on a green one.
- 02Gives every proposal its source (a link when it has one) and a confidence as a meter and a word: high from 80%, medium from 50%, low below, with a caution line under a low one.
- 03Lets you accept or reject per field, or all pending fields at once. Pressing the same button again clears the decision, and a field that already matches has no buttons.
- 04Writes nothing until you press Apply, and then hands only the accepted changes to your callback. Undo opens the rows again.
- 05Runs the agent for you when you give it a callback: a loader with the elapsed time, Cancel, Retry on an error, and a late answer after a cancel is dropped.
- 06Says each decision, the run state and the result to a screen reader through one polite live region.
States
- First render
- Nothing. The proposals paint as they are
- none
- Running
- The loader shows Searching, then Reading sources, with the time spent. The rows dim while an earlier set is replaced
- agent loader, 120ms colour
- Accept or reject
- The pressed button takes a green or red tint
- 120ms, ease out
- Hover on a button
- Standard button states
- 120ms, ease out
- Applied
- The accepted rows show Applied and the buttons lock until Undo
- none
- Error
- A red line with Retry, over the proposals you already had
- none
- Reduced motion
- Nothing moves in this block
- 0ms
| State | What moves | Timing |
|---|---|---|
| First render | Nothing. The proposals paint as they are | none |
| Running | The loader shows Searching, then Reading sources, with the time spent. The rows dim while an earlier set is replaced | agent loader, 120ms colour |
| Accept or reject | The pressed button takes a green or red tint | 120ms, ease out |
| Hover on a button | Standard button states | 120ms, ease out |
| Applied | The accepted rows show Applied and the buttons lock until Undo | none |
| Error | A red line with Retry, over the proposals you already had | none |
| Reduced motion | Nothing moves in this block | 0ms |
Works with
When to use
When to use
- Reviewing what an agent found about a company or contact before it is written to the record.
- Cleaning up a CRM record field by field, with the source and a confidence for each value.
When not to use
- One suggested edit in a long text: use Inline Diff.
- A single yes or no on an action: use Approval Prompt.
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 Enrichment Panel to my app and wire it to my own data.
- I need reviewing what an agent found about a company or contact before it is written to the record. Set that up with the Knowns UI Enrichment Panel.
- Which Enrichment Panel props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "enrichment-panel" }) and search_docs({ query: "enrichment panel" }). Pro props, full examples and source come back once your license key is in the MCP config.