Disclaimer: This website is currently in beta testing. Some features may not be complete, and content may be out of date.
Back to Development updates
Feature·March 2026·4 min read

Ophraxx AI's first live data tool: real-time weather

Ophraxx AI can now answer weather questions with real, current data — not guesses. When a weather query is detected, the bot fetches live conditions and injects them directly into the AI's context before generating a response.

Abstract code visualization on a screen

The problem: AI can't know current weather without help

Language models have a training cutoff. They do not inherently know what the weather is right now, and a model that guesses or disclaims will frustrate users who just want a quick answer. We built the weather tool to close that gap — not by giving the AI a browser, but by fetching the data ourselves and handing it to the model as structured context before the response is generated.

The result is that when a user asks 'what's the weather in London?' the bot does not say 'I can't access real-time data.' It says the actual temperature, conditions, humidity, and wind — because that information was fetched live and was sitting in the model's context when it generated the answer.

What the tool fetches

Each weather lookup retrieves a full snapshot of current conditions for the requested location: temperature in both Celsius and Fahrenheit, feels-like temperature in both units, today's low and high, humidity percentage, wind speed in both mph and kph with compass direction, visibility in kilometers, cloud cover percentage, atmospheric pressure in hPa, and sunrise and sunset times in UTC. The fetch timestamp is also included so the model can accurately say when the data was pulled.

All of this is injected into the system context as a structured block before the main model call. The model is explicitly instructed to use the live data to answer the question and to present temperatures in both unit systems. It is also instructed not to disclaim that it cannot access real-time data — because it can, and the data is right there.

How the tool activates

The tool dispatcher runs before every model call and checks whether the query appears to be a weather question. If it is, the fetch happens automatically. Users do not need to use any special command or prefix — they just ask naturally. The detection is intentionally permissive: 'what's it like outside in Tokyo' and 'weather NYC' both trigger the tool.

Weather is the first live data integration and serves as the foundation for expanding tool support in the future. The dispatcher architecture is built to support additional tools — the weather tool is the proof of concept that the pattern works end to end.