Quick answer
Give a Nori agent read-only access to your ERP vendor master, open invoices and payment history. On a schedule it finds duplicate payees, stale or conflicting bank details and missing tax IDs, then proposes fixes as one change set for accounts payable to review. Before it proposes any merge, it checks open invoices, open purchase orders and recent payments on every record involved. People approve each change, a person verifies any bank detail change through a known channel, and every merge can be reversed.
Why a careless cleanup breaks the ledger
Every vendor master drifts. Two clerks create Acme Industrial Supply Inc and ACME INDUSTRIAL SUPPLY a year apart. A supplier changes banks and the old account stays on file. A contractor is paid all year with no tax ID on record, and someone finds out in January.
The fix sounds simple: merge the duplicates, delete the stale rows, fill the gaps. Done blindly, it causes worse problems than the mess it cleans.
- Merging re-points history. Open invoices, purchase orders and payment history sit on the losing record. If they do not move with the merge, the next payment run fails or pays twice.
- Deactivating hides liabilities. An inactive vendor with an unpaid invoice drops out of the payment run and the aging report looks better than it is.
- Tax reporting splits. Payments spread across two records for one payee produce two partial year-end forms instead of one correct one.
- Bank details are a fraud target. A change request to a remit-to account is the classic way to divert a payment. Nobody should accept one from an email alone.
Finding duplicates, checking dependencies and drafting the change set is repetitive work an agent does well. Deciding which record survives, approving the change and verifying bank details stay with people.
What the agent checks before it proposes anything
For every candidate pair or field fix, the agent gathers evidence from the ledger first and attaches it to the proposal.
- Open invoices on each record, with amounts and due dates.
- Open purchase orders and receipts awaiting an invoice.
- Payment history for the last 24 months, including the bank account each payment went to.
- Tax profile: tax ID present or missing, W-9 or W-8 on file, VAT number format, and whether the vendor is flagged for year-end reporting.
- Links elsewhere: contracts, intercompany flags, approved-vendor lists and any sub-ledger that keys on the vendor ID.
Bank details are flagged, never edited
The agent treats payment details as read-only, always. It flags a record when two vendors share a bank account, when one vendor has several active accounts, or when an account was changed shortly before a large payment. A person in accounts payable then calls the vendor on a phone number already on file, not one taken from the change request, and records the verification. The change set links to that record, and the bank field itself is changed by the person through the ERP's own screen.
How to set it up, step by step
- Give the agent read-only access. Create an ERP or warehouse role that can read vendors, invoices, purchase orders and payments, and nothing else. Connect it as an integration scoped to the finance agent only.
- Write the matching rules. A short YAML file in a repository lists what counts as a likely duplicate and what must always go to a person. Accounts payable leads are required reviewers on that file.
- Give finance its own agent. Pair a finance skillset with the integration and a Slack handle, so
@ap-agentin#ap-opsreaches an agent that knows your chart of accounts and your rules. - Run a first scan in Slack.
@ap-agent scan the vendor master for duplicates and missing tax IDs using vendor-rules.yml. Draft a change set, do not apply anything. - Review the change set. The agent posts a summary in the thread and writes the full change set as a file with before and after values for every row.
- Approve item by item. A reviewer replies with the items to approve. Rejected items stay open with the reason, and the reason is saved to shared memory so the agent does not propose the same merge again.
- Apply through the normal path. Approved items are applied by a separate job with narrow write credentials, or exported as a file for your ERP's standard vendor import. Either way, every write records the change set ID and the approver.
- Schedule it. A weekly automation reruns the scan and posts only new findings.
The rules file is short and readable by the people who own it:
# ap/vendor-rules.yml
duplicate_candidates:
- same tax_id, different vendor_id
- same bank account, different vendor_id
- normalized name match >= 0.92 and same remit-to postal code
normalize_name:
strip_suffixes: [inc, llc, ltd, corp, co, gmbh]
ignore: [case, punctuation, "the "]
survivor:
prefer: [has_tax_id, most_payments_24m, oldest_created]
always_queue:
- any record with open invoices or open POs
- any record with a payment in the last 90 days
- shared bank account across vendors
- bank account changed within 30 days of a payment over 10,000
never_touch:
- bank_account
- routing_number
- iban
- remit_to_email
Worked example: one duplicate payee, one change set
The weekly scan runs on 0 7 * * 1. All names, IDs and amounts below are made up.
#ap-ops
ap-agent 07:12
Vendor master scan, week of 2026-11-23. 4,318 active vendors checked.
Change set CS-2026-1123 drafted: 6 merges, 11 tax ID gaps, 2 bank flags.
Nothing applied. Details in thread.
Merge 1 of 6 V-10442 "ACME INDUSTRIAL SUPPLY" into V-03817 "Acme Industrial Supply Inc"
Same tax ID 12-3456789. Same remit-to postal code 60607.
V-10442: 2 open invoices (INV-88213 4,120.00 due 2026-12-01,
INV-88240 1,965.50 due 2026-12-08), 7 payments in 2026
V-03817: 0 open invoices, 41 payments since 2022, W-9 on file
Survivor: V-03817 (has W-9, most payments)
Plan: move 2 open invoices and payment history to V-03817,
set V-10442 to blocked with merged_into = V-03817
Rule: always_queue (open invoices). Needs approval.
Bank flag 1 of 2 V-05120 "Northgate Logistics"
Remit-to account changed 2026-11-18 (by user m.alvarez).
Scheduled payment 2026-11-26: 38,400.00.
Action for a person: confirm with the vendor using the phone
number on file since 2021. ap-agent has not changed anything.
Reply: approve 1,3,4 / reject 2 <reason> / hold
A reviewer replies approve 1,3,4 and reject 2 different legal entities, parent and subsidiary. The agent records both, saves the rejection reason to memory, and hands the approved items to the apply job. The change set file for merge 1 looks like this:
| Object | Field | Before | After |
|---|---|---|---|
| INV-88213 | vendor_id | V-10442 | V-03817 |
| INV-88240 | vendor_id | V-10442 | V-03817 |
| V-10442 | status | active | blocked |
| V-10442 | merged_into | (empty) | V-03817 |
| V-03817 | alias_names | (empty) | ACME INDUSTRIAL SUPPLY |
| Payments 2026 (7 rows) | reporting_vendor_id | V-10442 | V-03817 |
Nothing is deleted. The losing record stays, blocked, with a pointer to the survivor, so old reports and audit trails still resolve.
How a merge is reversed
Every change set stores the before value of every field it touched. Reversing is a new change set built from those values, reviewed and applied the same way. If an approver finds two weeks later that V-10442 was a separate entity after all, they write @ap-agent reverse item 1 of CS-2026-1123 and the agent drafts the exact undo: invoices back to V-10442, status back to active, alias removed, plus any invoices posted to the survivor since the merge, listed for a person to sort.
The audit trail stays in one place: the Slack thread, the change set file in the repository, and the session history in Nori.
Keeping the master clean
- Weekly scan. Posts only new candidates, so the channel stays quiet when the master is clean.
- New-vendor webhook. Your ERP or onboarding form calls a Nori webhook when a vendor is created. The agent checks it against existing tax IDs, names and bank accounts before the first payment run.
- Year-end tax ID check. A one-time reminder in early December lists every vendor paid this year that is missing a tax ID or a current W-9, sorted by amount paid.
- Counterparties too. The same rules work for customer masters and trading counterparties. Pair it with custodian reconciliation or an agentic security master when the same names appear in several systems.
For the general pattern behind this page, propose then approve with reversible change sets, see safe master data cleanup with agents. The agent runs on your own Claude or ChatGPT subscription, and Nori never charges for tokens. Start with the 30-day free trial, no card needed, from pricing.
Frequently asked questions
Can the agent change vendor records on its own?
Only if you give it write access and your rules auto-approve a change. The recommended setup gives the agent read-only credentials. It drafts a change set, a person approves each item, and a separate job or your standard ERP import applies the approved items.
Will the agent ever edit bank details?
No. Bank account, routing and remit-to fields are on the never-touch list. The agent flags suspicious changes and shared accounts, and a person verifies with the vendor through a phone number or contact already on file, then makes any change in the ERP directly.
What happens to open invoices when two vendors are merged?
The change set moves each open invoice and purchase order to the surviving record and lists them line by line with amounts and due dates. Any record with open items is always queued for a person, so nothing moves without an approver seeing it first.
How do we undo a merge?
Every change set keeps the before value of each field. Ask the agent to reverse an item and it drafts an undo change set from those values, including any transactions posted since the merge, for review and approval like any other change.
Which ERP systems does this work with?
Any system the agent can read through an API, a database view, a warehouse copy or a scheduled export. Teams often start with a warehouse copy of the vendor, invoice and payment tables, which needs no new access to the ERP itself.
Where does vendor data go during a scan?
It stays in your systems. The agent reads it from an isolated session with a scoped role, and change sets are written to your own repository. On Enterprise, the full Nori stack runs in your own AWS VPC or Azure VNet, or on-prem, with your identity provider and LLM gateway.