← All work

AI agent that stress-tests fuel forecasts

An agentic layer on Snowflake Cortex that connects fuel-supply forecasts with macroeconomic and geopolitical developments, so analysts can see which forecast assumptions need a second look.

Context

A national logistics enterprise used fuel-supply forecasts to plan how much fuel to allocate to stations across its districts. Analysts usually accepted each forecast after a brief check and investigated further only when an external signal raised a concern. That limited scrutiny sometimes left allocations short, and a substantial error could pull analysts, logistics planners, ground operations and executives into coordinating revised allocations and routes.

The question was less “build a better forecast” and more “tell people when the forecast we already have deserves a second look, and why.”

My role and ownership

I proposed and built the solution, with support from colleagues and mentors. I worked with executives, logistics and operations stakeholders, analysts and data teams to scope what useful context meant, integrated the system with their forecasting platform, demonstrated the end-to-end workflow and mapped out implementation with them.

Constraints I worked under: explanations had to be grounded in real data, short enough for a non-technical audience, and delivered in the channels people already used.

Technical approach

  • Built agentic workflows on Snowflake Cortex that pulled metrics from the forecasting platform and retrieved current external information, including macroeconomic and geopolitical developments.
  • Used tool orchestration to explain how those developments could affect forecast assumptions, highlighting reasons to question a forecast or to place more confidence in it.
  • Kept the layer additive: it explained the existing forecast rather than becoming a second source of truth to reconcile.
  • Delivered the output through Microsoft Teams and email, and refined it through iterative testing with stakeholders.

Tradeoffs

The central tension was usefulness versus trust. A freer model writes richer narratives but risks inventing drivers; a tightly grounded one is safer but blander. I biased toward grounding, accepting less narrative flair for explanations a logistics team could rely on. The system supplies context; allocation and routing decisions stay with the people who own them.

Outcome

I delivered and demonstrated a working, integrated solution, and the client accepted it for implementation. It gives analysts and planners a way to spot assumptions that need scrutiny before allocation decisions are finalised, supporting reassessment of affected districts and contingency planning.

Reflection

The most valuable part was the framing: deciding that the problem was knowing when to trust the forecast, not making the forecast more accurate. That reframing made a lightweight, well-grounded layer the right answer instead of a heavier modelling effort. If I extended it, I would add an evaluation step so the quality of the generated explanations could be measured over time rather than judged by eye.