AI · Under NDA

Company AI Brain 

One governed data foundation and an AI layer on top, so a mid-size company can ask plain questions across sales, finance and operations.

Type

Company-wide AI and data platform

Scope

Data pipelines, storage, unification, retrieval, agent harness, analytics

Built for

Leadership and operations at a mid-size business

Client

Confidential, under NDA

The brief

A mid-size company ran on many systems that each knew part of the story. We built its company brain: the data pulled out of every system, unified into one model, and an AI layer on top that answers questions in plain language with the numbers and sources to back them.

The problem

Every system had its own version of the truth

Sales lived in Salesforce. Money lived in QuickBooks. The rest was spread across other tools, shared drives and spreadsheets. Each system was right about its own part and silent about everything else.

So the questions that matter most to an owner were the hardest to answer. Which customers are growing but paying late? Where is the pipeline strong and the cash weak? Answering meant exporting from three places and reconciling by hand, and by the time the spreadsheet was finished it was out of date.

  • No shared identifier for a customer across systems
  • The same metric defined differently by sales and finance
  • Knowledge locked in documents nobody could search

Sources

01

Where the business already keeps its data

Salesforce
QuickBooks
Other business systems
Documents and files

Ingest

02

Pulled on a schedule, changes only

Connectors per system
Incremental sync
Raw copy, kept unchanged

Store

03

One place, two shapes of data

Warehouse for records
Document store
Vector index for meaning

Unify

04

One version of each customer and number

Entity matching
Shared business model
Agreed metric definitions

Answer

05

How people use it

Ask in plain language
Dashboards
Alerts and summaries
Access rules travel with the data Every answer is checked and logged Freshness is monitored per source

The whole system, left to right: where data lives today, how it is brought in, stored and unified, and how people use it.

Step one

Getting the data out, and keeping it current

Each source gets its own connector. After the first full load, a connector only asks for what changed since its last run, so syncs stay fast and stay inside each vendor's limits.

Everything lands first as a raw copy, exactly as the source sent it. Nothing is cleaned or reshaped at this stage. That copy is what makes the rest trustworthy: any number can be traced back to the original record, and the model on top can be rebuilt without asking the source again.

  • Incremental sync with a recorded position per source
  • Raw copies kept unchanged for audit and replay
  • Alerts when a source changes its fields or stops updating

Step two

One customer, one record, one definition of each number

This is the part that decides whether the whole thing is useful. Salesforce and QuickBooks describe the same company under different names with no shared key. We match them on the details they do share, score each match, and send the uncertain ones to a person instead of guessing.

On top of the matched entities sits a shared business model: customers, deals, invoices, payments and the links between them. Each metric is defined once, in one place, so revenue means the same thing in a dashboard, in an answer and in a board report.

Salesforce

Acme Corp

Account · 2 open opportunities · Owner: sales

QuickBooks

ACME Corporation, Inc.

Customer · Invoices and payments · Terms: net 30

Other systems

acme.com

Contact domain · Tickets and emails · Contracts on file

Match

Name, tax and billing details, email domain, address

One customer record

3 sources

Acme Corporation

Open pipeline
from Salesforce
Billed and paid
from QuickBooks
Outstanding balance
from QuickBooks
Open issues
from other systems

Every field keeps a link back to the system and record it came from.

Sample names. The client's data is confidential.

Three systems describe the same customer in three ways. The unified model keeps one record, and every field remembers where it came from.

Step three

Two kinds of questions need two kinds of retrieval

A language model is good at reading and poor at arithmetic. So questions about numbers are never answered from the model's memory or from retrieved text. The model writes a query against the unified model, the database computes the result, and the model explains it.

Questions about what a contract says or what was agreed in an email are different. Those are answered with retrieval: documents are split, indexed by meaning and searched, and the passages that come back are quoted with their source. Most real questions need both, so a router decides which path each part takes and the results are joined before the answer is written.

Question

Which customers grew this quarter but are paying later than their terms, and what do their contracts say about late fees?

Router

The numbers

A query against the unified model

Growth and payment timing are computed from records. The model writes the query; the database does the arithmetic.

The documents

Search by meaning over contracts and messages

The relevant clauses are found by meaning, then filtered to the customers the query returned.

Answer with sources

  • Figures come from queries, never from the model's memory
  • Each statement links to the record or document behind it
  • Access rules are applied before anything is retrieved

One question, split into the part that needs numbers and the part that needs documents, then joined into a single sourced answer.

Step four

The harness: what turns a model into something a business can rely on

The model is the smallest part of the system. Around it sits the harness: the loop that plans an answer, calls the right tools, checks the result and only then replies. If the check fails, it goes back and tries a different plan instead of presenting a guess.

The harness is also where trust is enforced. Access rules from the source systems carry through, so a sales manager does not get payroll answers. A set of test questions with known answers runs after every change, so a new connector or a new prompt cannot quietly break an old answer. And every answer keeps a record of what was asked, what was queried and what was cited.

01

Understand

What is being asked, and by whom

02

Plan

Which data and tools are needed

03

Use tools

Query, search, calculate

04

Check

Do the numbers and sources hold up

05

Answer

Plain language, with sources

If the check fails, it goes back to the plan

Permissions

A person only gets answers from data they are allowed to see.

Test questions

A set of questions with known answers runs after every change.

Audit trail

Each answer keeps its question, queries, sources and timing.

Read first

The system reads and reports. Anything that changes a record needs a person.

Every question goes through the same loop, inside the same guardrails.

What the business gets

A full view, and a way to question it

Leadership gets two things. The first is a set of dashboards built on the unified model: revenue against collections, pipeline against capacity, customers ranked by what they are worth and what they cost. The second is a question box. Anything the dashboards do not show can be asked in plain words, and the answer arrives with its figures and its sources.

Because both sit on the same model, they agree with each other. The number in the chart is the number in the answer.

Company overview

Illustrative layout · sample data

Revenue, this quarter

$1.24M

up on last quarter

Open pipeline

$860K

weighted by stage

Cash collected

$1.02M

vs invoiced

Overdue

$74K

across 9 customers

Revenue and collections

Invoiced Collected

Pipeline by month

Ask: Why is collected cash behind invoiced revenue this month?

An illustration of the kind of view leadership works from. The layout is representative; every value shown is sample data.

What made it hard

The difficult parts were not the AI

Almost all of the effort went into the data underneath. A model can only be as right as the records it reads, and business records disagree with each other in ways that take judgment to resolve.

  • Matching companies across systems that share no identifier, without merging two different customers
  • Reconciling sales stages with accounting periods, so a deal closed in one month and invoiced in the next is counted once
  • Carrying each system's access rules through to the answers
  • Stopping the model from stating a figure it did not get from a query
  • Keeping answers stable as sources change their fields

What we built

Data UnificationRetrieval and RAGAgent Harness
  • Connectors that pull from Salesforce, QuickBooks and the company's other systems on a schedule
  • A central store: a warehouse for records, a document store and a vector index
  • A unified business model with one record per customer and agreed definitions for each metric
  • Retrieval that uses queries for numbers and search by meaning for documents
  • An agent harness that plans, uses tools, checks its work and cites its sources
  • Dashboards and a plain-language question box for leadership

A note on confidentiality

This project is under a non-disclosure agreement. The client is not named, no screens from the live system are shown, and every name and figure on this page is sample data. We are glad to walk through the approach in more depth on a call.

Let's Build Something That Moves Your Business Forward

Tell us what is slowing you down. We will show you where AI and better software can help.

  • Free consultation, no obligation
  • Clear recommendations in plain language
  • Transparent pricing agreed up front
Contact Us