Worked example

Building a trusted AI Agent

We show how to build out a governed, trusted chat agent - using nothing but natural language chat.
  1. Discuss
  2. Implement
  3. Connect
  4. Ontology & ContextTransformLineageData Quality
  5. Data Products
  6. AI AgentsReportsML Models

Step 1

Customer Brief

Gather the requirements and specification documents. Ziggy will use these as the basis for the implementation discussion.

Step 2 · 1 hour

Discuss

  • Have a natural conversation about what you want to implement in Ziggy.
  • The brief contains some or all of the things to implement in Ziggy.
  • Add your own implementation requirements.
  • When you're ready, ask for the Implementation Plan.

Step 3 · 5 minutes

Implementation Plan

  • At the end of your discussion, you tell it to create an implementation plan, which you can see below.
  • The plan contains the full details of what you want to implement. It is what Ziggy uses to perform the actual implementation.

Step 4 · 3 hours

Implement

  • Ziggy takes the implementation plan and implements it in one go, or one phase at a time. Whichever you prefer.
  • Once finished, about 3 hours later in this case, your Ziggy platform is fully configured.

Step 5 · 1 hour

Check

  • Now is a good time to see everything in Ziggy.
  • You can tweak everything from the same chat session or a new one.
Select a chapter

Step 6

The AI Agent in action

  • Let's see the AI Agent in action in a web page or in Ziggy's playground.

Step 7

Maintain

  • Ask any question about any aspect of the data. See the video below for an advanced example.
Scroll to read the whole chat

Which contracts will renew automatically unless we give notice in the next 90 days, and which should we think twice about?

Finding the right Ziggy API calls
Listing the tables and columns of each source

Contract register found; now pulling its tables, plus the related data products, checks and reports.

Fetching data products, quality checks, reports and table rows
Profiling the contract register
Working out notice deadlines for auto-renewing contracts
Matching those contracts to supplier profiles and the risk scorecard

Eleven contracts qualify; now checking actual spend, disputes, owners and control exceptions against each.

Comparing each contract with spend, disputes, orders and exceptions
Checking supplier record changes
Fetching policies and contract concepts
Reading contract attribute definitions

Ten contracts renew automatically unless we give notice by 28 Feb 2027 (I said eleven earlier; that was a miscount). I'd think twice about four.

GroupContractsValue a year
Think twice4$1.4m
Sort something out first3$10.7m
Nothing pressing found3$1.6m
Give notice bySupplierValue a yearInvoiced, last 12 monthsHow badWhy
29 JanGranite Metals$460k$0SeriousLast invoiced April 2025
9 JanBlack Country Sealing£180k$15k (7%)SeriousHigh risk, worst financial score; barely used
10 JanKraichgau Antriebstechnik€450k$19k (4%)SeriousLast invoiced May 2026; already marked under renewal
13 JanPennine Crate & Pallet£150k$30k (17%)SeriousHigh risk: worst financial score, poor delivery score
23 FebAppalachian Precision Castings$10.5m$6.0m (57%)MediumCritical and our only source: don't let it lapse, but revisit the value
16 JanWrekin Sealing£100k$23k (19%)MediumOpen $11k dispute: price differs from contract rate
3 JanKocher Werkzeuge€100k$49k (43%)MediumModern slavery questionnaire outstanding
9 FebDonau Wälzlager GmbH€300k$51k (15%)SmallMedium risk; weak delivery score
14 FebBodensee Elektromotoren€1.0m$192k (16%)SmallCritical supplier, low risk
27 FebMercer Controls$120k$34k (29%)SmallLow risk, but weak financial score

Already missed: Filder Metallwerke (€260k a year) needed notice by 16 Nov, so it renews on 15 May 2027 unless they agree otherwise.

Before acting: I worked out each deadline as end date minus notice period, so confirm it in the signed contract. Ziggy doesn't show how long each renewal runs or any minimum commitment. Invoicing well below value is common here (the middle contract is at 35%), so I counted low use as a reason only below 10%.

Ziggy sources: Global Contract Register (matches the warehouse contract table), Supplier Risk Scorecard, and the warehouse's supplier profile and invoices. Checks Q02 (dates) and F11 (freshness) pass. Q01 (supplier codes) fails on 10 contracts, none of them listed here. Percentages use Treasury's October 2026 rates.

I recommend asking the owners of the four serious contracts to decide before Christmas, as three deadlines fall by 13 Jan. Shall I draft that note to them: Patrick Doyle, Harry Watson, Jonas Weber and Hannah Cole, yes or no?

What do Ziggy's data quality checks say about the contract data behind that list, and does anything they found change it?

Fetching the latest result of every check
Listing contracts not matched to a supplier
Checking failing rows, register age, incidents and scores

The checks don't change the list: all ten contracts and deadlines stand, as does the one already missed. One of my reasons gets weaker, and no check tests the fields the list depends on.

ResultChecks on the contract register and contract table
Pass3: end date after start date (Q02), and both loaded today (F11, F19)
Fail1: supplier codes (Q01)
No checkAuto-renewal flag, notice period, how old each entry is
What was foundHow badChanges the list?
Ten of 128 contracts can't be tied to a supplier (Q01): nine blank codes, one mistypedMediumNo: none auto-renews, and all ten have notice dates from April 2027 on
Register entries are old: nothing edited since May 2025, and these ten were last edited between Aug 2022 and Dec 2024SeriousNot the list, but a later change to terms wouldn't show
Treasury rates last loaded 23 Nov (F17 fails); I used October'sSmallNo: a currency would need to move by about a third to lift a contract past my 10% cut-off
One active supplier has no risk scorecard (Q08)SmallNo: not on the list
A supplier's invoice number appears twice (Q07)MediumNo: it is Beaver Valley Forge, whose notice date is Aug 2027
Warehouse finished late today (T01): 20 tables missed 06:00 New YorkSmallNo: it finished before I read it

Correction: I gave "already marked under renewal" as a reason on Kraichgau, but that entry was last edited in January 2023, so don't rely on it. The low spend still stands: 4% of value, last invoiced May 2026.

What passing means: F11 shows that the register was copied today, not that anyone has kept it up to date. The table of passes therefore doesn't vouch for a notice period or renewal flag.

Ziggy sources: the checks named above, the contract register and the warehouse's contract, invoice and SOX exception tables. The age and which-contract findings are my own comparison of those tables. Three SOX exceptions are open (C01, C05, C06), none for these suppliers.

I recommend the note to the four owners also asks them to confirm the end date, notice period and renewal terms from the signed contract. Shall I draft it that way, yes or no?

How many failing data quality checks are there in total?

12 of the 64 checks are failing, by each check's latest result in Ziggy.

ResultChecks
Failing12
Passing (one, Q17, is still learning its normal range)50
Not run yet (M01, M02: manual sign-offs)2

The failing ones are C01, C05, C06, F17, Q01, Q07, Q08, Q09, Q10, Q11, Q13 and T01.

Ask anything about your data

Step 8

Observe

Everything is now in Ziggy and observable. For example...
  • Data Quality Dashboard
  • Ticketing for failed data quality checks, pipelines, schema drift detection
  • Lineage and Impact analysis

See it built on your data.

Book a demo and we'll walk through it live.

Book a live demo