AI builds the structure; the structure becomes automation
The Brain connects your systems and gives you an open field to ask anything. But the real engine is the loop underneath: every good question the AI answers can graduate into a saved, structured report - fast, near-zero cost, and schedulable. Automate the routine, humanise the exception.
Connected data
One brain across every systemUnleashed is live now, connected through an integration layer we built ourselves - nobody else has this inside Unleashed. Xero is next, behind a hard financial wall. SharePoint and Shopify sit on the radar for later.
The AI copilot
Humanise the exceptionAn open field across all of it. The AI handles the one-offs and the new questions nobody set up a report for - the churn dig, the "what's going on with this customer" - turning unstructured questions into structured queries.
Saved reports and automations
Automate the routineAnything asked regularly graduates from AI to a saved, straight-API report - faster, costing cents not dollars, and schedulable weekly or monthly to managers without anyone prompting a thing.
Delivery order follows pain and accuracy, not this hierarchy - getting the data dead right comes before everything else.
Priorities, in order
Ranked by impact against effort, shaped by what Friday's live run taught us. Tap to expand. Nothing locked - we rank these together as the build moves.
Get the data dead right
Accuracy before everything - close is not correctThe pain
- Unleashed pages its data, and the first pass pulled 5 of 29 sales orders - a comparison built on one page is simply wrong.
- Every sales order carries three dates - order, required, completed - and which one a report uses changes the numbers.
- NZ timezone handling on date filters needs verifying end to end.
What we're building
- Every query pulls every page - 12 months means all 12 months.
- Every result states its source and exactly which date field was used, so you can correct us once, not repeatedly.
- Default date conventions agreed with Hadleigh, plus NZ time applied to all filters.
The report library, then automate it
The reports you already do by hand - plus the churn insight you can't get at allThe pain
- Churn insight - which customers, branches or products are trending out against a comparable period - is effectively impossible to pull from Unleashed today.
- Price review packs are stitched together across spreadsheets and ChatGPT by hand.
- At-risk customers are spotted by memory and gut feel, not by the data flagging them.
What we're building
- Customer and sales set: group roll-ups (Fulton Hogan as one, drill into 25 branches), segment reporting, at-risk detection on purchase rhythm, contextualised win-loss shifts, proactive replenishment, ABC customer focus, repeat-pattern recognition for marketing.
- Pricing set: price review packs across 3-4 sources, cost change triggers, landed cost impact analysis (plastics up 25-35%).
- Each one validated against live data, then saved as an automation.
Xero, behind a hard wall
Financial data for two or three people only - everyone else stays operationalThe pain
- Operational data is open to everyone in Unleashed by culture - but the financial picture must stay completely separate.
- Managers can't go into Xero themselves, so financial movement reaches them slowly or not at all.
What we're building
- An authentication link to you first, confirming we have the right permission scope.
- Xero connection gated by Xero's own login: everyone sees the option, only the two or three credential-holders can connect, and what each sees mirrors their Xero permissions exactly.
- Later: write-back - "make that, add that" - so updates flow into Xero without opening it.
Dashboards on a schedule
Weekly or monthly KPI packs to managers - and pre-visit summaries for repsThe pain
- Key managers don't get organised cross-system metrics; insight depends on someone pulling and consolidating reports.
- Reps walk into customer visits without a consolidated picture - open orders, contacts, thresholds live across three or four pages.
- Operational facts (like the freight threshold moving from $300 to $500) live in heads, not in front of newer staff.
What we're building
- A standing weekly or monthly dashboard to key managers across Unleashed and Xero - the system telling the manager, not the manager digging.
- One-tap pre-visit customer summaries for reps.
- Shaped by the example prompts and dashboard concepts Hadleigh is sending through.
Cost visibility and the right model
Know what each query costs before it becomes a habitThe pain
- One heavy multi-branch query cost roughly US$3; the session used about US$7 in total.
- A few dollars per query, multiplied by 50 people doing it daily, becomes real money fast.
What we're building
- Per-query cost shown in the interface, with usage logging behind it.
- "Save this as a report?" prompts so repeated questions stop burning AI dollars.
- An agreed position on the speed-accuracy-cost matrix - a newer Claude model exists at roughly twice the price, and "always use the most powerful" has a bill attached.
On the radar, not yet
Parked deliberately, not forgottenXero write-back ("make that, add that"), SharePoint and Shopify as additional data sources, and branch-level segmentation - the branch list in the sidebar is global-only today, and you told us you prefer global anyway. Plus whatever surfaces once the wider team starts playing with it.
Pain against ease of build
Accuracy sits first because everything else inherits it - a churn report built on one page of data is worse than no report. The report library follows immediately because the reports already exist as manual pain, so the value is proven before we write a line.
Hypothetical scenarios
Every query and use case raised across the discovery calls (14 April, 6 May and 28 May) - the test we hold the Brain to. Have a read through, rank what matters most, and where a scenario would benefit from sample or test data, send it through against that item - real data is what turns a hypothetical into a validated report.
Customer and sales analysis
Pricing
Inventory, purchasing and production
Finance (Xero)
Policies, HR and the niggly questions
Email and communications (future phase)
Managing the Brain itself
Cross-cutting constraints - true of every scenario above
Every query respects Unleashed role permissions, mirrored per user by email address (role is the fourth column in the users list; deleted users drop off). Xero stays restricted to the three licence holders - everyone else sees only Xero data already synced into Unleashed. OneDrive access is limited to a curated "discoverable" folder of authorised information, not the full drive ("a lot of noise in that folder... a can of worms"). Crystal Payroll is out of scope - payroll top-line arrives via Xero. Engage Solutions is likely API-limited or without an API; we'll investigate with low expectations. And the Unleashed API allows 500,000 calls per month - usage monitored.
The team, and how insight flows
Today, cross-system insight runs through one person exporting, consolidating and reconciling reports by hand. The Brain changes the shape of that. Toggle to see the shift.
From question to automation - the Brain loop
Ask
AnyoneA plain-language question in the copilot - no report builder, no exports.
Plan
The BrainAI turns the question into a structured query - which system, which fields, which dates.
Pull
Unleashed / XeroStraight API calls - every page, NZ time, source and date field stated.
Validate
Hadleigh + IncredibleChecked against live Unleashed reports until exactly right, not just close.
Save
The BrainA good query graduates into a saved report - structured in, structured out, near-zero cost.
Schedule
ManagersRoutine reports land weekly or monthly without anyone prompting.
The people
Hadleigh
NZ Brush - systems and reporting leadThe validation engine of this build. Knows the frogs - the three dates, the naming quirks, the report nuances - and is feeding the Brain prompts, live reports to validate against, and the users and roles export.
Sales reps
Consumers - on the road"Give me a summary of this customer before I go in and see them" - open orders, contacts, freight thresholds, all consolidated before the visit.
Branch managers
Consumers - scheduledStanding weekly or monthly dashboards on key metrics and KPIs across Unleashed and Xero - the system telling them, not them digging.
Finance (2-3 people)
Gated - behind the wallThe only Xero-credentialed users. What each sees in the Brain mirrors their Xero permissions exactly - in or out, no half measures.
Warehouse team
Context - statusesThe Parked, RTG and Placed flow they run is exactly what the Brain now understands when it reports what's live, what's picking and what's not to be touched.
Incredible
Andrés and Matt - build and tuningAndrés leads the build; together we tune accuracy, wire the integrations and turn the validated queries into automations.
The systems, and how they fit
Unleashed is home - all operational truth lives there and the whole company can see it. Everything else either feeds the Brain or stays deliberately walled.
An Unleashed brain nobody else has
Unleashed offers no off-the-shelf AI connection, so we built our own integration layer over its API - and it's live now, querying your real data across every dataset in plain language. That layer is the moat this whole build stands on.
Unleashed
Inventory, sales orders, customers, products and salespeople across every branch. Open to the whole team by culture - visibility is fine, bulk functionality is what eventually wants configuring.
Feeding the Brain now, through our own layerXero
Invoices, bills, expenses - the financial picture, kept completely separate from operations and seen by two or three people only.
Login-gated; authentication link coming to confirm permissionsClaude
Powers the copilot. Currently running a deliberately cost-controlled model while we tune accuracy; a newer model exists at roughly twice the price.
Speed-accuracy-cost call to make togetherChatGPT + spreadsheets
How price review packs get stitched together today - new price file plus customer sales history, combined by hand.
Retires into the Brain's pricing reportsSharePoint
Document storage raised as a future source.
On the radar, not yetShopify
Online sales channel raised as a future source.
On the radar, not yetOpen questions
A few answers sharpen the build considerably. We work through these together - some are yours, some are ours to chase.
Data and conventions
Access and permissions
Cost and models
Scale
Working assumptions
These shape the build. The first one is the big lever - and unlike most assumptions, it's been dug into, not guessed.
Unleashed exposes no AI connection and no users-permissions endpoint
Confirmed by digging, not assumed. We've built our own integration layer over the Unleashed API - live and querying real data now. Permissions ride on Hadleigh's users and roles export until Unleashed offers something better; salespeople data (archived flag, territories, email) is not the same thing as user permissions.
Xero access mirrors Xero's own permissions
Login-gated, in-or-out. No separate permission table to maintain on the financial side - if you can't see PAYE in Xero, you can't see it in the Brain.
Date filters run on New Zealand time
We believe Unleashed applies +12 to GMT at your end; we're verifying NZ time handling end to end on every date filter before any report is signed off.
Every query pulls every page
Unleashed pages data in 50-record chunks. Partial pulls produced wrong comparisons on the call, so full pagination is now the rule - 12 months means all of it.
Heavy queries cost roughly US$3 each today
About US$7 across the session, and barely a blip on the Unleashed API dashboard. Saved automations bring routine cost to near zero - that's the whole loop.
Current model is a cost-controlled Claude Sonnet
One generation back, chosen deliberately to hold costs while we tune accuracy. Upgrading is a dial we turn together, not a default.
Global beats branch-level, for now
The branch list in the sidebar is cosmetic today - all queries run global, which is your stated preference. Branch segmentation stays parked until you want it.
Next steps, both sides
You said it best: you're the customer and the information providers - we'll demand what we need, you sing out when something doesn't make sense. Here's the demand list.
Incredible
- Send the full report and query list through, so you can validate the highest-impact ones.
- Send the Xero authentication link (next week) to confirm permissions, then begin the Xero connection.
- Make every result state its source and date field; fix full pagination, the 12-months-means-12-months behaviour and NZ time handling.
- Start converting the regular reports into straight-API automations, with per-query cost visibility in the interface.
- Characterise the processing limit on heavy collations, and check the sales quotes data source.
NZ Brush
- Export users and their roles from Unleashed - exactly as it comes out, no amending.
- Send example report prompts and dashboard concepts across sales, finance and KPI metrics.
- For the highest-impact items on the list, pull the matching live Unleashed report so we can validate against it.
- Keep flagging the frogs - date fields, naming quirks, anything that doesn't line up.