diff --git a/src/lib/insights.ts b/src/lib/insights.ts index ffb1af2..1a1ac6c 100644 --- a/src/lib/insights.ts +++ b/src/lib/insights.ts @@ -112,8 +112,8 @@ function buildInsightPrompt(snapshot: Awaited ({ title: e.title, amount: centsToDisplay(e.amountCents), date: e.date, category: getCategoryLabel(e.category as CategoryValue) })))}`, + `Daily chart points: ${JSON.stringify(snapshot.chart.map((p) => ({ date: p.date, expenses: centsToDisplay(p.expensesCents), paychecks: centsToDisplay(p.paychecksCents) })))}`, "Do not mention missing data unless it materially affects the advice.", ] .filter(Boolean)