Khoa Pham

Hands-free data science with Hermes Agent

I asked Hermes two questions out loud. How much had I spent on Shopee? In months when I spent more there, did I also spend more on Grab?

I usually start a question like that by opening a SQL editor. This time I opened a conversation. I asked Hermes to draw the tables behind my bank statements, then to plot my Shopee purchases by month and weekday. When one cell stood out, I could stay with the question and ask to see the calculation.

2:12 · Voice prompts and tool calls, with captions.

One dark cell was worth a second query

Hermes found 75 Shopee purchases totaling ₫36.49 million. Mondays in May accounted for ₫9.17 million across the years covered by my statements. That was enough to catch my eye. It also raised a question a chart alone couldn’t answer. Where had that number come from?

The agent had reconstructed some cells in its first draft. It went back to the database, grouped the purchases by transaction month and weekday, then checked that the cells added up to the purchase total. When I asked for the SQL, I could see which dates it grouped and which transactions it counted. That made the correction inspectable.

Did shopping and rides move together?

The next voice prompt turned a descriptive question into a statistical one. Hermes paired the monthly totals for Shopee and Grab and plotted one dot per month. Across 30 months with purchases from either merchant, the correlation was −0.26. In the 15 months when I used both, it was −0.08.

Choosing which months to include changed the answer. Some statement periods were missing altogether, and a missing statement tells me nothing about what I spent. The months I could observe gave me little reason to use spending on one merchant to predict spending on the other.

Why I call this AI-native analytics

The most useful moment was being able to say “show me the SQL” while I was still looking at the heatmap. I could change the question by speaking. Hermes carried forward the merchant definition, chose the next query and produced a different kind of chart. I didn’t have to move the data into a notebook or rebuild a dashboard to try the follow-up.

That’s where a hands-free agent earns its place in my analysis. It handles the mechanical work between a question and the next piece of evidence. I still decide whether a comparison makes sense, which total to check and when the data is too thin to support a conclusion.

The stack behind a spoken question

The boundary that mattered most was between asking the question and defining what counts as spending. I wanted the question to change freely while the purchase rules stayed consistent. The slides trace that path from the original statement to the agent’s answer.

Slides 3–6 cover the live query path, data pipeline, tables and metric definitions.Open slidesPDF

Statement PDFs → SQLite → Neon PostgreSQL

The pipeline extracts the statement PDFs into SQLite, normalizes merchant labels and checks row counts, keys and signed amounts before publishing a snapshot to Neon. Each transaction links back to its billing statement. That gives the agent a stable table to query and me a way to trace an unexpected result back to its source.

The semantic layer defines “spend”

YAML and Markdown describe the metrics, joins and time rules. For this heatmap, spend means positive purchase amounts after excluding payments, fees and installments. The grid uses the transaction date. A billing-month analysis would answer a different question, even with the same rows.

Hermes asks, the gateway checks, PostgreSQL computes

Hermes uses the Model Context Protocol (MCP) to call the query tools. A Cloudflare Worker authenticates the caller and permits read-only SQL. Neon executes the aggregation, while Cloudflare D1 records who ran the query and its status. Hermes can try a follow-up without gaining permission to change a transaction. SQL produces the monthly pairs, and Python computes the correlation from those pairs.

The recording shows an interactive session. Scheduled reporting and an automated check before publishing a report are proposals in the slides. For this demo, the evidence you can inspect is the query, the reconciled total and the chart.