Step 4: Build Query with Azi

Goal: Create a Warm Query and build it with Azi in one governed conversation.


What is a Warm Query?

A Warm Query is the heart of the Control Plane:

  • Named, saved queries against your data
  • Each becomes an API endpoint automatically
  • Queries are governed - Azi proposes, you approve
  • Full audit trail of query creation and changes

The query doesn't run constantly. It runs when called - "warm" and ready.

Every query you build here will be accessible via API and MCP. That's the foundation for "Bring Any AI" - any MCP-native AI can query your governed data.


Option A: Ask Azi to Create and Build

The recommended approach - one conversation creates and populates your query:

  1. Make sure you're inside your Surface (BrewMonitor)

  2. Open the Azi chat panel on the left

  3. Type a complete request:

    "Create a warm query called temperature-avg that shows average temperature over the last hour"

  4. Azi proposes both the query container AND the KQL:

  1. Review the proposal, then click Approve
Azi proposal panel showing a proposed warm query node with gold/tan background indicating it's a proposal. The proposal includes the KQL query and reasoning. Accept, reject, and edit buttons are visible.

Option B: Create Manually, Then Build with Azi

If you prefer step-by-step control:

Step 1: Create the Query Container

  1. Inside the Surface, find Warm Query in the Node Bank
  2. Drag it onto the canvas
  3. Name it (e.g., "temperature-avg")
  4. Connect data to it from your connection
Warm Query node inside the surface, showing the query container ready to be configured with KQL.

Step 2: Connect Data to the Query

  1. Draw an edge from your connection node to the warm query node
  2. The edge automatically labels as "queries" - this shows the data relationship
Edge connecting the Connection node to the Warm Query node inside the surface. The edge displays the 'queries' label showing the data relationship.

Step 3: Open the Query Manager

  1. Click on the Warm Query node
  2. In the Inspector, click to enter the Query Manager
  3. This opens a modal with the query editor and Azi panel
Query Manager modal showing the KQL editor on the right side and the Azi chat panel (titled 'WARM QUERYS WITH AZI') on the left side.

Step 4: Ask Azi to Build the Query

In the Query Manager Azi panel, type:

"Show me the average temperature over the last hour"

Azi proposes the KQL, you review and approve.

Azi panel in Query Manager context, showing Azi's proposed KQL modification with reasoning explanation.

Review the Proposal

Before approving, you can:

  • Read the KQL - Understand exactly what will run
  • See the reasoning - Azi explains why she chose this approach
  • Test it - Click Run Query (coral button, bottom of editor) to preview results
  • Edit - Modify the KQL directly if needed
Results tab in Query Manager showing query output in table format with columns, pagination controls (Page 1 of N), and CSV export link. Query results panel showing the executed KQL query results with temperature averages displayed in a table format.

You don't need to know KQL - but we show it because AI and humans work together here. If you do know KQL, you can jump in to edit directly or guide Azi with more precision.


Approve, Reject, or Edit

Three choices:

ActionButtonWhen to Use
Approve✓ checkmarkThe query does what you want
Reject🗑️ trashStart over with a different request
Edit✏️ pencilMinor tweaks to the proposed KQL

Click the checkmark (✓) to approve and save the query.

Thinking Tip:

After approval, the query is saved to your warm query container. It becomes an API endpoint automatically.


The Audit Trail

Every interaction is logged:

WhatRecorded
Your request"Create a warm query called temperature-avg..."
Azi's proposalThe KQL and reasoning
Your actionApproved by [your identity]
TimestampWhen it happened

This is why governance matters. When something goes wrong, you know who approved what, when, and why.


Commit and Deploy

Save and deploy your query the same way you did in Step 2:

  1. Click the Save icon (upper-left)
  2. Click Deploy

Your query is now live and API-accessible.

Thinking Tip:

Your data pipeline is already flowing from Step 2! This deploy makes your new query accessible via API.


Verify

Your query is complete when:

  • KQL appears in the query editor
  • Status shows "Ready" or "Query saved"
  • Run Query returns expected results
  • Changes are committed and deployed

What You Built

You just did in one conversation what enterprise teams spend months building:

Data → Surface → Warm Query → Governed API

And here's what makes this different: That API is now accessible to ANY MCP-native AI.


What's Next

Your governed query is live. In the next step, we'll access it via API - the endpoint is ready and waiting.

Next: Step 5 - Use Your API →

On this page