The Customer Link Build Standard
One customer across your job system, your ledger and your inbox. The AI suggests a link only when an ABN, an email or a phone matches. You approve it, and every step reads the same approved list. Nothing in your systems is merged or changed. Written so you can build it yourself.
Used by
- Office Manager
- Bookkeeper
- Accounts Officer
- Business Systems Analyst
- AI Officer
9 min read · Published by AI Pathway
Using Claude? This standard installs as a skill. Guides for ServiceM8, Xero and Simpro.
How to get this live in your business
Need a bot to do something?Not sure where to start or how to do it? Contact us and we'll help scope it and build it.What this is
An open build standard for knowing that customer 4471 in ServiceM8, ACME P/L in Xero and ops@acme.com.au in your inbox are the same business. It is one small list you own, with one row per link, and every step that deals with a customer reads it.
The core rule
The AI can only suggest a link, and only when an ABN, an email address or a phone number matches. A name never counts. Nothing treats the two records as one customer until you, or someone you named, says yes.
What it does not do
It never merges, renames or deletes a contact in ServiceM8, Simpro, Xero or your inbox. It never links two records with different ABNs, however alike they look. Tidying duplicates inside one system stays your job, in that system.
The hard part
Real records are messy. The ABN sits in a notes field, the email has a trailing space, and the job system holds the site contact while the ledger holds accounts. The stub can't show that. The pass test on your own systems can.
ACME disputed an invoice in March, and the bookkeeper put their Xero contact on the do-not-contact list. In April the job system raised a new job for “Acme Facilities”, customer 4471, and the chase bot read the job, found no flag on 4471 and rang them. A second bot, trying to help, matched on the name instead and stopped chasing Acme Plumbing, a different business with a bill 60 days overdue. Both bots were making their best guess. Nobody had decided which records were ACME.
The customer, as a map you own
Your systems
ServiceM8 or Simpro, Xero or MYOB, Outlook or Gmail. Each issues its own id. None of them is changed.
- servicem8:4471
- xero:C-ACME
- outlook:ops@
compared by
A scan proposes
Records in different systems compared on the ABN, the email and the phone. Never the name.
- refs
- evidence
waits for
A person decides
Someone on your approvers list links, rejects or later unlinks. The map keeps who and when.
- decided_by
- decided_at
is read by
Every other step
Debtor Chasing, Inbox Triage, the desks. Read fresh each run, by the ref on their own record.
- do-not-contact
- dispute
- memory
One link, through the gate
- A scan comes due, or a new record lands in the job system, the ledger or the mailbox.
- Each record is read by its ref, written as the system and the id it issued.
- Records in different systems are compared on the ABN, the email and the phone, each normalised. A name proposes nothing, and two different ABNs are two businesses.
- A pair that matches is proposed, with the keys that matched.
- Has a person on the approvers list linked it? If not, it stays proposed and every step still treats them as two customers.
- If linked, one row is written in the business's own map. Nothing in the job system, the ledger or the mailbox is changed.
- Is it still the same customer? If so, every step reads the link fresh by the ref it holds and applies customer rules, like do-not-contact, across both.
- If not, a person unlinks it, the link keeps its history, and the next run reads two customers.
Take the spec to Claude, ChatGPT or Copilot. The sentence to paste is one click away.
1. What this standard covers
A business whose customers live in more than one system, and whose bots apply rules about the customer rather than the job: who not to chase, who is in dispute, where the accounts team wants things sent. Every record is named by a ref: the system and the id that system issued, written servicem8:4471 or xero:C-ACME. A link says two refs are one customer.
The scan compares three keys, each normalised first:
- ABN: digits only, eleven of them. Two records with different ABNs are two businesses, whatever else matches, and the pair goes to a person.
- Email: trimmed and lower case, compared whole. ops@acme.com.au matches Ops@Acme.com.au; it does not match accounts@acme.com.au.
- Phone: digits only, with +61 read as 0. A shared office number is still a match, which is why a person decides.
A name is never one of them. Two Sam Nguyens are two customers until a person says otherwise, and “Harbour Builders” and “Harbour Builders (QLD)” can be two companies sharing an office email.
Out of scope. Duplicates inside one system: two ServiceM8 clients for the same business are ServiceM8’s to merge, by a person, in ServiceM8. What is known about a customer once they are linked belongs in Client Memory. Which job a call belongs to is Cash Seam’s.
What cannot meet it. A system that cannot be read by id. A job system with no API, like Tradify, gives a bot no ref to hold. A person types those customers’ refs into the map by hand, and the scan covers the systems it can read.
2. The records it keeps, in the shape your developer needs
One row per link, in four statuses. The two refs and the evidence never change after the proposal; only the status and who decided it do.
For your developer. Show the fields for your developer
Link # one row per pair, in every status
- id
- refs [a, b] # <system>:<id>, two different systems
- evidence[] { key: abn | email | phone,
value } # normalised, equal on both records
- proposed_at, proposed_by # the node that found it
- status proposed | linked | rejected | unlinked
- decided_at, decided_by # link or reject, from a person
- unlinked_at, unlinked_by # a later unlink, from a person
Approvers # who may decide, set by the owner
- person[]
Decision # made by a person, read by the build
- link_id, link | reject | unlink, by, at
The customer # derived, never stored
- every ref reachable from one ref through linked linksA link with no evidence, evidence that is only a name, a link between two ABNs and a row deleted instead of unlinked are the four defects this schema makes visible. In the Mesh Directory's vocabulary these are the customer.link_proposed, customer.linked and customer.unlinked events.
3. The checks, in order
The order follows one link through its life. It is proposed on a strong key, a person decides, every other step reads it, a person can take it back, and nothing in your systems is touched along the way.
- An agent proposes a link; it never makes one. Whatever an agent finds becomes a proposal: the two refs, each as <system>:<id>, and the keys that matched. Nothing an agent does sets a link to linked, and no write_link happens without a person's decision behind it.
- A link is proposed on an ABN, an exact email or an exact phone, never on a name, and never across two ABNs. The build compares refs from different systems on strong keys only: the ABN, the email address and the phone number, each normalised. A name, however close, proposes nothing. Two records whose ABNs differ are two businesses: the pair is not proposed, and is raised for a person with both refs and the key that did match.
- Only a decision by an authorised person links, rejects or unlinks, and the record says who and when. A proposal becomes linked or rejected, and a link becomes unlinked, only from a decision a person made on the approval surface, and only if that person is on the list the business set. The link carries the decision's time and the person's name. A decision from anyone else, including another agent, is escalated and changes nothing.
- Every other step reads accepted links by the ref it holds, never a proposal and never a name search. A step that applies a customer-level rule, like do-not-contact, reads the links for the ref on its own record and applies the rule across every ref linked to it. Only linked links count: a proposal, a rejected link or an unlinked one is never read as the same customer. No step finds the customer's other records by searching on a name or a phone number.
- Links are read fresh on every run, so an unlink takes effect on the next one and keeps its history. Before each step that applies a customer-level rule, the build reads the links again. A map read once and kept is not a read: an unlink made since would never reach it. An unlink changes the link's status, with who and when; it never deletes the link, and its refs and evidence stay as they were.
- Linking writes the map, never the records: no contact is merged, renamed or deleted in a system of record. Once two refs are linked, the build writes nothing to either system to make them agree. It does not merge the contacts, copy a name or an email across, or delete the one it thinks is a duplicate. Any tidy-up in the job system or the ledger is a person's, in that system.
- It survives the builder. Someone other than the builder can explain what it does, and it runs on an account the business owns.
- The pass test passes. On the business's own job system, ledger and mailbox: a real customer held in all three is proposed on a strong key, linked by the owner, and a do-not-contact flag on the ledger contact holds a chase raised from a job. Unlinked, the next chase goes. No record in either system was changed by the build.
4. How every other standard uses it
A step already holds a ref: the job it was woken for, the invoice it is chasing, the message it is filing. Before it applies a rule about the customer, it reads the links for that ref and applies the rule across every ref linked to it. Nothing else changes in those standards.
| Standard | What it reads the links for |
|---|---|
| Debtor Chasing | Whether the customer behind this invoice is on the do-not-contact list, in dispute or in hardship under any of their records. |
| Inbox Triage | Which job-system client and ledger contact a message from ops@acme.com.au belongs to, once a person has linked the address. |
| Client Memory | Approved notes kept against one record, found from another: the instruction on the ServiceM8 client applies to the Xero invoice. |
| Exception Desk | Every open exception for the customer, not just for the record in front of it. |
| Two Records | The pair a reconciliation joins on, when the two systems have no shared id of their own. |
In the Mesh Directory, a bot that runs this standard emits customer.link_proposed and nothing else. The customer.linked and customer.unlinked events come only from a person, and the directory’s gate refuses a bot that says it emits them.
5. One customer, from three records to one
- Monday, 10am. The scan. ACME P/L in Xero and Acme Facilities, ServiceM8 client 4471, share ABN 51 824 753 556: proposed. Client 4471 and the address ops@acme.com.au in Outlook share an email: proposed. The two Sam Nguyens share only a name: nothing. The two Harbours share an email but not an ABN: raised for a person, not proposed.
- Monday, 11am. Still two customers. A chase comes due on a 4471 invoice. The ACME Xero contact is on the do-not-contact list, but the link is only proposed, so the chase treats 4471 on its own. Until a person decides, the flag does not reach 4471. The proposal sits at the top of the owner’s list.
- Monday, 2pm. A person decides. Dana, the owner, links both ACME pairs and marks the two Harbours as different businesses. Each decision is kept with her name and the time.
- From then on. The next chase for 4471 reads its links, finds the Xero contact on the do-not-contact list, and holds, naming why. A message from ops@acme.com.au is filed against 4471. Neither the ServiceM8 client nor the Xero contact was changed.
- In June. Unlinked. Acme Facilities is sold and keeps trading under the same ABN with new owners, who are not in dispute. Dana unlinks 4471. The link row stays, marked unlinked with her name, and the next chase reads the map fresh and goes.
6. What stays with a person
- Linking, rejecting or unlinking every proposal, by someone on the approvers list.
- Who is on the approvers list. A bot's account is never one of them.
- Every pair raised because their ABNs differ.
- Tidying duplicates inside the job system or the ledger, in that system.
- Linking a record from a system with no API, by typing its ref into the map.
7. With a Grok Bot, Claude or your own code
Any of them can run the scan, on a schedule, with read access to the customer lists and write access to one thing: new rows in the map, marked proposed. The decision column sits where only the approvers can write, a tab or a list the bot’s connection cannot edit. Every other bot gets read access to the map and nothing else.
- Make the map: a sheet, a SharePoint list or a table with the columns in section 2, and an approvals tab or list only the approvers can write to.
- Give the scan bot read access to your job system, ledger and mailbox contacts, and append-only access to the map. Never write access to the contacts themselves.
- Tell every other bot, in its standing instructions, to read the map by the ref it holds each time it applies a customer rule, not once at the start of a run, and to treat only linked rows as the same customer.
- Run the checklist in section 9 against a real customer.
Where it runs. In SharePoint lists and Power Automate flows (the Microsoft 365 plan lays them out), a Google Sheet with an approvals tab, or a small table a coding agent builds from this page. All are held to the same checks.
Why not let the AI merge duplicates? Merging writes into systems other people use and other software reads, and a wrong merge in a ledger takes an accountant to undo. A map row is undone by changing one status, and the history shows who did it.
8. What your developer builds, and the step that needs care
There is no hosted step to buy. The map is yours, and so are the systems it points at. The hard part is reading real records well enough to find the strong keys, which is why the pass test runs on your own systems.
For your developer. Show the setup for your developer
provider:
stub: local.mock_customer_link
production: none # no hosted step; runs on your own systems
stays local # yours, and the standard
- the link map and its statuses
- the approvers list and the decisions
- the read by ref in every other step
- every contact in every system, untouchedAsk anyone selling AI that cleans up your customer list to show you every pair it has treated as one customer, the key it matched on, and who approved it.
The pass test. On the business’s own job system, ledger and mailbox, not a sample. Pick a real customer held in all three. Run the scan and check each proposal names the key that matched. Link them as the owner, put the ledger contact on the do-not-contact list, and raise an overdue invoice from that customer’s job: the chase must hold, naming the linked record. Unlink, and the next chase must go. Each system’s own audit history must show no write by the build. A stub cannot pass this. On a stub every ABN has eleven digits because the runner typed it; in a real ledger it is in a notes field.
9. A checklist to hold any build or supplier to
Hold a DIY build or a vendor to this. If a box is empty, it is not in production.
- 1. An agent proposes a link; it never makes one. Whatever an agent finds becomes a proposal: the two refs, each as <system>:<id>, and the keys that matched. Nothing an agent does sets a link to linked, and no write_link happens without a person's decision behind it.
- 2. A link is proposed on an ABN, an exact email or an exact phone, never on a name, and never across two ABNs. The build compares refs from different systems on strong keys only: the ABN, the email address and the phone number, each normalised. A name, however close, proposes nothing. Two records whose ABNs differ are two businesses: the pair is not proposed, and is raised for a person with both refs and the key that did match.
- 3. Only a decision by an authorised person links, rejects or unlinks, and the record says who and when. A proposal becomes linked or rejected, and a link becomes unlinked, only from a decision a person made on the approval surface, and only if that person is on the list the business set. The link carries the decision's time and the person's name. A decision from anyone else, including another agent, is escalated and changes nothing.
- 4. Every other step reads accepted links by the ref it holds, never a proposal and never a name search. A step that applies a customer-level rule, like do-not-contact, reads the links for the ref on its own record and applies the rule across every ref linked to it. Only linked links count: a proposal, a rejected link or an unlinked one is never read as the same customer. No step finds the customer's other records by searching on a name or a phone number.
- 5. Links are read fresh on every run, so an unlink takes effect on the next one and keeps its history. Before each step that applies a customer-level rule, the build reads the links again. A map read once and kept is not a read: an unlink made since would never reach it. An unlink changes the link's status, with who and when; it never deletes the link, and its refs and evidence stay as they were.
- 6. Linking writes the map, never the records: no contact is merged, renamed or deleted in a system of record. Once two refs are linked, the build writes nothing to either system to make them agree. It does not merge the contacts, copy a name or an email across, or delete the one it thinks is a duplicate. Any tidy-up in the job system or the ledger is a person's, in that system.
- 7. It survives the builder. Someone other than the builder can explain what it does, and it runs on an account the business owns.
- 8. The pass test passes. On the business's own job system, ledger and mailbox: a real customer held in all three is proposed on a strong key, linked by the owner, and a do-not-contact flag on the ledger contact holds a chase raised from a job. Unlinked, the next chase goes. No record in either system was changed by the build.
- 1
Hold the build to the checklist
The checks in this standard are what a working build looks like. Implement it yourself, hand it to a developer, or hand the page to an AI with the button below.
- 2
Do not hand-roll
There is no product for this step. Highest option: none. Checklist plus a build.
- 3
If you are stuck
Exceptions, three systems, a team that will not maintain a Zap, or an owner who wants it done. We implement when it has to survive the business.
Related reading
- The Client Memory Build Standard: what is known about each customer, approved by a person
- The Cash Seam Build Standard: one id from the call to the chase
- The Two Records Build Standard: two systems that should agree
- One Customer on Microsoft 365: the build plan
- The Mesh Directory: bots that pass work along by the same contract
Want the whole thing by email?
This paper, plus the rest of the library. One click to stop them.