Skip to content

Spend Insights

What an agent noticed in the spending, as cards: a budget that runs out a week early, a bill taken twice, a category up 18%. Each card has its numbers, the transactions behind it and one main action. Open one for a chart and the evidence. Ask about the spending in a composer docked to the side (a bar at the bottom on a phone); the answer cites the transactions it used, and each number lights its row.

On this page

Examples

Installation

Installation is part of Pro

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

Props

insights
Insight[]
id, tone, kicker, title and body, plus meter, series (for the detail chart), evidence and actions.
onAction
(insight, action) => void
An action was pressed. The id "dismiss" also hides the card.
ask
(question, signal) => Promise<AskAnswer>
Answers from the transactions: text with [1], [2] markers and the sources they point at. Without it there is no Ask.
suggestions
string[]
Default[]
Questions offered as chips.
defaultThread
{ question, answer }[]
Default[]
A question already answered when the block opens.
today
string
YYYY-MM-DD, for the dates in the evidence.
categories / currency / locale
-
Defaultdefaults
As in the other expense blocks.

When to use

When to use

  • Cards with what an agent noticed in spending, each with the transactions behind it and one action.
  • Asking questions about your own spending and getting answers that cite the charges.

When not to use

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 Spend Insights to my app and wire it to my own data.
  • I need cards with what an agent noticed in spending, each with the transactions behind it and one action. Set that up with the Knowns UI Spend Insights.
  • Which Spend Insights props do I need for a minimal setup? Show me a short example.

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

Need help?

Stuck on Spend Insights, or found something off? We read every message.