DEV Community

Cover image for Day 89: Building a Savings Dashboard & Reusing AI Responses (FinOps)
Eric Rodríguez
Eric Rodríguez

Posted on

Day 89: Building a Savings Dashboard & Reusing AI Responses (FinOps)

Adding features to an AI-powered SaaS is easy. Doing it without increasing your LLM token consumption is the real architectural challenge.

Today, I replaced the "Transactions" navigation tab with a dedicated "Savings" view in my Serverless Financial Agent. I moved existing gamification widgets there and built a new Daily Savings chart using Recharts to visualize the user's daily pacing against their target goals.

The biggest win was the FinOps strategy. The new dashboard needed a financial recommendation. Instead of triggering a new, expensive Amazon Nova prompt, I decided to recycle data.

Every morning, my AWS Lambda generates a daily report email containing a financial "Advice" section. I modified the backend to extract that exact block of text and persist it in the user's DynamoDB profile as latest_daily_savings_advice.

Now, when the React frontend loads the Savings view, it simply fetches that cached string instead of pinging the AI. If there isn't enough signal, it defaults to a deterministic math calculation. By decoupling the AI generation from the UI rendering, I expanded the product's capabilities while keeping the marginal cost at exactly zero.

Top comments (0)