An agentic energy-reporting system that turns raw IoT consumption data into trustworthy, plain-language reports, by giving the LLM deterministic tools and context instead of the data itself, with structured outputs for idempotency.
Setup
The Smart Energy Report was a GenAI-powered product built on the electrical-energy data from an IoT device developed by Huna, an early-stage startup that had recently joined Corporate Hangar. The device was a small, round unit that clamped onto a building's main electricity cable in a completely non-invasive way, and from that single point it captured every detail of consumption, even disaggregating the flow into sub-sections: individual rooms, specific machines, and so on.
The data was a goldmine for anomaly detection and for technical users. The problem was everyone else. For a non-technical building owner the readings were impossible to interpret, and turning them into prioritized, actionable insight took an expert data analyst with real field knowledge. That does not scale.
Why it was hard
The spark came from the CEO, an engineer himself. He had taken one installation's data, pasted it straight into ChatGPT, and gotten back a slick report of findings and anomalies. He was thrilled: the model had done, in one prompt, the analysis we had been planning to build with bespoke algorithms. He reached out to me, and since I was already deep in this data (working on anomaly detection and energy disaggregation, identifying which machines were running from their consumption patterns), I was the natural person to take it further.
I was excited and immediately suspicious. What people forget about LLMs is how desperate they are to please you, happy to hand over confident, fluent analysis with no factual basis whatsoever.
Impact
The pipeline ran on a schedule across more than 50 installations spanning very different sectors, from schools to factories to hospitals, generating a Smart Energy Report for each in the background. Because every installation shared the same instructions, schema, and sector knowledge, prompt caching kept cost and latency down as it scaled. Non-technical owners finally got the prioritized, plain-language insight that previously needed an expert analyst, at a scale no analyst could match.
Takeaways
Hand an LLM raw data and it becomes a confident liar. Ground it: give it deterministic tools and context, not the data itself.
Context is what turns a number into a finding. The same reading is routine for a kitchen and an alarm for a day-shift factory.
Structured output is not a nice-to-have. It is the backbone of an agentic system you can actually trust and reproduce.
Reliability is layered, not a single trick: retrieve real context (RAG), constrain the shape (structured output), and verify the claims (a fact-checker). Each catches what the others miss.