Step 3: Build a Warm Query
Goal: Crystallize a warm query - your first shared source of truth.
Step 3 of 5. A warm query is a named, saved query that automatically becomes an API endpoint that any AI can call. The query one teammate gets right becomes the one everyone's AI calls.
Go inside the surface
- Click your
GrowthMetricssurface, then the Manage Surface icon (layered squares) - You are now inside the surface - the breadcrumb shows
{workspace} / GrowthMetrics
Add and wire the warm query
- Drag a Warm Query node onto the surface
- Draw a line from your data to the warm query so it has something to read
Build it with Thinky
Open the Warm Query Manager (click the warm query). Its Thinky panel is scoped to this query. Ask for what you want:
"Average signups per hour over the last hour"
Thinky drafts the query into the manager and explains it. Click Run to preview real results, edit if you
like, then click the canvas Save icon (the manager has no Save of its own), then Deploy. Its address -
reachable over the API, and by any AI through call_api - serves the version you last deployed, so a saved
change serves after Deploy. Until its first Deploy the address answers "not deployed yet". Continue to Step 4.
Thinky: Here's
signups-by-hour- it averages signups in 5-minute buckets over the last hour. Run the preview, and save it when it looks right.
When you want more
What Thinky drafts is a query of one step: one query text on one engine, kql for your data connections or
cosmos-nosql for one container of a database. The manager's Steps tab shows it. When you need more, add a
step that reads another step's values (a Cosmos step that reads only the orders of the devices a KQL step found),
or add a parameter on the Parameters tab so a caller can pass a value such as a site. The
Warm Queries guide covers steps, engines and parameters.
What you built
Data -> Surface -> Warm Query -> API any AI can call. That is a shared source of truth. Next, read it back from any AI you like.
Next: Step 4 - Read from Any AI
On fathym.com: OpenX →