Most accounting teams are organised around a handful of well-defined jobs: keeping customer accounts straight, issuing invoices, applying cash, reconciling, collecting.
We started handing those jobs to MyClaw.ai agents. Each agent owns one whole process, works on its own, and comes back to us only when something needs a person's judgment or approval. That lets us take on more work without hiring at the same rate.
One thing to get out of the way first: the ledger is one we built for this demo. The five customers and their invoices are made up, and so is the money. Everything else is real. The agents, the app and the controls are ours, the run below actually happened, and every number in it comes from the ledger's own audit log.
Five role agents, each with a tightly scoped remit:
- Provisioning Agent: checks the contract, opens or closes the customer account.
- Billing Agent: checks the contract terms, drafts and issues invoices.
- Billing Support Agent: answers billing questions and handles requests from the sales team, such as updating a customer's billing contact or pulling an invoice.
- Cash Applications Agent: matches payments to invoices, investigates differences, writes off bank fees, and hands short pays to collections.
- Collections Agent: handles billing enquiries from customers, and coordinates requests like refunds that need several roles to work together.
Building them taught us a lot about what an agent actually needs in order to be trusted with a business process that matters.

The org chart: five agents report to the finance lead, and refunds and credits only that person can approve
How we build and run these agents
When we first started doing this with MyClaw, we took a few wrong turns working out how to organise the work. What we settled on: give each agent one existing accounting process that is already well defined and well bounded, and make it own that process end to end.
We do not ask an agent to "help out with various things". We give it a specific job, one that would otherwise fall to someone on our team.
There is a common misconception about AI agents: that if you wire one up to the right systems, it should just start working. What we found is that an agent needs the same investment as a new hire: documentation, onboarding, ongoing coaching.
That takes time up front. But once they are up to speed they work around the clock, and handle far more volume than one person doing the same job. In MyClaw, teaching an agent a new skill means attaching a new Skill to it, like uploading a new capability that is available immediately.
Make the process reliable before you hand it over
If a process is not yet something a person can do reliably, handing it to an agent will not fix it. A process that is vaguely defined, or that depends on knowledge nobody wrote down, stays broken after the handover.
So we spent effort first on making the accounting processes more structured. We wrote a controlled application in MyClaw called acct.py it defines how each process runs and which actions are allowed. That gives an agent a controlled environment to work in, instead of making it improvise from scratch every time.
Take account provisioning. acct.py exposes one fixed path for opening a customer account: write each entitlement (entitle), then re-check and mark it provisioned (mark-provisioned). It limits what else can happen. The Provisioning Agent now operates that application.
What we get is a reliable process, and an audit trail that both people and agents write to: every call lands in an append-only audit log, including the calls that were rejected.
Write a job manual the way you would write an onboarding doc
Every agent has a job manual that serves as its operating instructions, attached to it as a Skill. The manual holds the knowledge and the instructions the job requires: from how to check contract terms before invoicing, to which billing adjustments need a person's approval.
The first line of every agent's setup is: read the whole manual before you start any task; anything the manual does not cover, escalate to a person. Agents cannot edit the manual; the file is read-only to them. Only the person who owns that process can change it.
When we change a policy, or find a better way to handle a kind of transaction, we update the manual and the agent learns the new approach. The person who knows the job best always owns the definition of how the job is done.

The Billing Support Agent's job manual: read-only for the agent, read in full before every task
One narrow door into the ledger
Accounting processes need tight controls, because they feed the financial statements and may be examined under audit or an internal-control framework. Our agents can read what they need, but their ability to change records is much narrower.
Every change an agent can make to a record is defined in our own acct.py, not configured somewhere in the platform. Each agent holds a role key; the key is bound to a role, and a whitelist written into acct.py decides which commands that role can run. Everything else is refused.
What each role can write:
- Provisioning Agent: entitle, mark-provisioned
- Billing Agent: draft-invoice, hold-invoice, set-po, set-vat-id, issue-invoice
- Billing Support Agent: set-billing-contact, export-recon
- Cash Applications Agent: auto-match, apply, write-off, hold-payment
- Collections Agent: open-case, inbox-status, email-out, request-refund, execute
- Sam Ortiz, finance lead (human): approve, reject
We also closed the back door. A newly created agent arrives with 14 apps connected by default: Browser Assistant, Computer Connect, Sheets, a credential vault, and ten more. None of our five roles needs any of them, so we disconnected all 14 for each of the five, 70 in total. Their only tool is acct.py.
In the main run, that one door recorded 83 calls, including the 23 that failed or were refused.
We let agents complete low-risk work on their own, while sensitive actions like refunds and credits require approval. We also control who can approve: without the finance lead's approval, the database itself refuses to mark a refund as sent, and a requester cannot approve their own request.
We also tried to go around the application entirely: on a copy of the ledger, writing straight to the database and self-approving a refund. The constraints held, and the production ledger never saw it.
Similarly, anyone on the team can ask the Billing Support Agent to explain an invoice, but changing a customer's billing contact is tightly validated: the new email's domain has to match the record exactly, or the agent cannot write it and has to escalate to a person.
Train first, then let the agent work on its own
We train a new agent the way we train a new employee: teach it how the job is done, show it how we do it, then hand over tasks one at a time until it is working independently. That gives us time to find gaps in its knowledge and correct its mistakes before it is on its own.
Our onboarding has three stages:
- Stage one: write the job manual and let the agent watch how we do the work.
- Stage two: have the agent propose the action it intends to take, with its reasoning, and wait for a person to approve before it executes.
- Stage three: let the agent handle routine work on its own and escalate exceptions.
We keep coaching after launch: correcting mistakes, updating instructions. The audit log is our coaching material. It records not only what an agent got right but every step it tried: an agent looking up the wrong field name, calling something outside its role, submitting before claiming the work.
Every one of those failed calls is still there, and every one is something the next version of the manual has to cover.
What follows is one full run through all five jobs, from a closed deal for one customer to a refund for another: five agents, one ledger. The channel views are rendered from the ledger's own message table; Slack is not wired up here.

Five agents, one demo run, start to finish: the timeline from this run
Provisioning Agent opens and closes customer accounts
The Provisioning Agent makes sure a customer gets the right product access once they sign, and loses it when the contract ends. It runs that process through the controlled application we wrote in MyClaw, work that used to fall to someone on our team by hand.
When a deal closes, the agent compares the signed order against the matching contract record in the CRM, line by line: start and end date, seat count, unit price, billing frequency, payment terms, PO, product list. Seven fields. Only if all seven agree does it open the account through the application. Then it re-reads the entitlements against the contract, and tells sales in the channel that the account is open.
In this run, the rep, Lena, announced in #deal-desk that Halden GmbH had signed OF-0001 (40 seats, 12 months, from 2026-12-01). Thirty-six seconds later the agent began its checks. All seven matched, it wrote four entitlements (Seats=40, SSO=ON, Usage analytics=ON, Billing=monthly), read them back to verify, moved contract K-1001 from signed to provisioned, handed off to Billing (HO-0001), and let Lena know the kickoff could be scheduled.
From Lena's message to a provisioned account: 1 minute 17 seconds.
If one of the seven does not match, the agent does not open the account. It lists the differences in the channel and @-mentions the account owner. It does not "just fix the contract record so the numbers line up." That keeps us out of both classic provisioning failures: a customer who never gets what they paid for, and access that stays live after the contract ends. (The revocation half, pulling entitlements at contract end, was not exercised in this demo.)

The Provisioning Agent checks the signed order against the CRM, writes entitlements, and tells sales the account is ready
Billing Agent drafts invoices, and checks them for errors
Once the account is open, the Billing Agent takes over. It checks the billing details against the signed contract terms before it drafts and issues anything.
Specifically, it compares the signed order with the customer record flowing in from the CRM: term, seats, unit price, payment terms, PO, billing contact. For Halden this round, all six matched, and it drafted invoice INV-0206: 40 seats × $300 = $12,000.00, period 2026-12, due 2026-12-31, with PO-4471 attached.
The Billing Agent also checks for missing tax information. Halden is a German customer, so cross-border B2B should go out under reverse charge, but the CRM had no VAT ID. The agent did not send the invoice. It put it on hold:
VAT ID missing (EU customer); 24h hold; flagged for tax review
Then it @-mentioned Lena: please supply the VAT ID within 24 hours. If it cannot be obtained, invoicing stays paused under this demo's rules and goes to a person for a tax decision. The agent will not change the tax rate itself.
Previously we might have sent the invoice and dealt with it when the customer asked. Now the problem is resolved before the invoice goes out.
Lena came back quickly with DE811234567. The agent wrote it to the CRM (format and country are validated; a bad value is rejected), then issued the invoice and told sales. From account provisioned to invoice sent: 3 minutes 22 seconds this round, including the wait for Lena's VAT ID.
Credits and re-issued invoices can also be handed to it, but they need approval, and the commands that write them are not on the Billing Agent's whitelist in acct.py for this run. The ledger already has a credit-note table and a constraint that no credit can be issued without approval.

The Billing Agent holds the invoice for a missing VAT ID, then issues it once the number arrives
Billing Support Agent answers the sales team
The Billing Support Agent handles the sales team's questions about customer billing. It can read the core accounting data, so sales get answers and routine updates without pulling someone from the accounting team into it.
For example: a customer sees an invoice amount that does not match their dashboard. In this run, Lena asked in #billing-help: Northwind received INV-0103 for $16,500, but their dashboard only shows $15,000, and they are withholding $1,500 pending an explanation.
The Billing Support Agent went to the underlying records and checked four sources, one at a time:
- Invoice lines: subscription 50 seats × $300 = $15,000, plus a one-line October seat true-up (peak 55 seats − committed 50 = 5 × $300) = $1,500. Total $16,500.
- Contract K-0901: 50 committed seats, with overage billed monthly in arrears at $300/seat.
- Usage: 55 active seats from October 14, for 18 consecutive days.
- Dashboard definition: the dashboard only shows the subscription portion, not the true-up.
Conclusion: the invoice is right, and the missing $1,500 is the October overage true-up. It also generated a one-page reconciliation (docx) that Lena could forward straight to the customer. From Lena's question to an answer plus the reconciliation: 1 minute 40 seconds, without changing a single ledger record.
The agent can also act. If sales needs to update a customer's billing email or add a recipient, they say so in the channel. The agent checks whether the new address matches the domain on the customer record, and updates the billing record if it does.
Lena forwarded a request from Northwind: send future invoices to [email protected], and copy [email protected]. The agent made the first change: same domain, CRM version v1 → v2. The second was refused by the system (northwind-billing.com ≠ northwind.com). It did not work around it; it escalated to the finance lead to verify, and noted that this customer had already produced a suspicious email from a lookalike domain the same day.
Requests like this used to be worked through one at a time by our team, even when the work underneath was simple. Now the agent resolves many of them end to end.

The Billing Support Agent explains the seat true-up behind the invoice, then applies the domain rule to a contact change
Cash Applications Agent applies customer payments
The Cash Applications Agent matches incoming customer payments to open invoices. Beyond automatic matching, it investigates differences and handles the routine adjustments that would otherwise need a person in the ledger.
Every weekday it checks the bank feed on a schedule (a MyClaw scheduled task, 07:00 UTC) and automatically applies any payment that matches an open invoice exactly. For payments that do not, it looks in the AR inbox for the customer's remittance note to work out which invoices the money is for.
The agent also automatically writes off the bank fees that cause a payment to differ from its invoice. When a customer underpays, it hands the short pay to collections. In this run it handled seven deposits:
- Three exact matches, applied automatically: $8,400.00, $22,500.00, $3,150.00.
- Two within $25.00, written off as a bank fee: Pinecrest sent $6,185.00 against a $6,200 invoice, a $15.00 difference; Orbis sent $9,981.50 against a $10,000 invoice, $18.50 short.
- Two exceptions, not a cent posted: Northwind's $15,000.00 against INV-0103's $16,500, short $1,500.00, with a remittance note saying they are withholding the October true-up pending an explanation; and a $5,000.00 payment against INV-0104, which was already paid in full, a likely duplicate. Both were held and handed to Collections (HO-0002, HO-0003).
While going through the inbox it also found an email from [email protected], claiming to have changed receiving bank details and asking for all open invoices. It did not reply. It escalated to a person: changing bank details is outside its manual, and until verified the email is treated as suspicious.
From first query to the channel report, the seven deposits took under a minute. The 07:00 scheduled task woke on time and ran again (starting 07:01): zero new deposits, and it re-checked the status of every payment from the previous pass.

The Cash Applications Agent applies payments, writes off fees, and hands short pays and a suspected duplicate to collections
Collections Agent handles billing enquiries from customers
The Collections Agent is our first accounting agent that talks to customers directly. It owns the AR inbox, answers billing questions, and coordinates requests that need other agents to pitch in.
When a customer asks for a refund, for instance, the Collections Agent works with the Billing Agent and the Cash Applications Agent to investigate the request and prepare the action that has to be taken. Before any refund, the agent must have an approver's sign-off.
This run, Northwind's accounts payable team ([email protected]) wrote in: their system had paid INV-0104 twice, and they asked for the extra $5,000 back to the original account. The Collections Agent opened case CASE-0002, then asked two roles to confirm at the same time:
- To the Billing Agent: should this invoice have been charged once? Confirmed: INV-0104 was $5,000.00 receivable, fully applied by the November 10 payment, with no credit note.
- To the Cash Applications Agent: which payment is the duplicate, and where should it go back to? Confirmed: PAY-0205 is the duplicate, to be returned to the originating account.
Only once both had confirmed did the system let it raise the refund (RF-0001, $5,000.00) and an approval request to go with it (APR-0001). It @-mentioned the finance lead, Sam, in the channel: I don't have permission to approve this myself.
We deliberately tried having it approve with its own key. It was refused: role collections is not allowed to approve.
Once Sam approved, the agent executed the refund against the ledger, emailed the customer to confirm, and marked the message handled. From picking up the email to the refund going out and the customer being notified: about 10 minutes, roughly 4 of which were spent waiting on Sam.
Talking to customers adds a security requirement. The most important one: the agent has to confirm that whoever is asking about an account is entitled to know about it.
It does that by matching the sender address against the approved contacts in the CRM and the contacts in the billing system. A domain that merely looks similar does not count.
That email from [email protected], asking to change receiving bank details and for all open invoices and balances, came from an address that is not an approved contact, on a domain that is not northwind.com. The agent did not reply, disclosed no invoices and no balances, and escalated straight to Sam for manual verification.
Same customer, same day: one duplicate payment refunded, one spoofed account-change request stopped at the door.

The Collections Agent verifies the sender, coordinates the duplicate-payment refund with two other agents, and executes once the finance lead approves
Toward an AI accounting team
In the team we are building on MyClaw.ai, agents run the routine processes while accountants focus on managing the work, improving the system, and handling exceptions.
In this run, the five jobs from opening Halden's account to issuing Northwind's refund took 20 minutes 17 seconds in total. What people did inside that window: three messages from Lena (reporting the deal, supplying the VAT ID, asking about an invoice) and one approval from Sam.
The most important thing we learned: building an effective AI team takes the same investment as building a human one. The responsibilities have to be drawn clearly, the processes written down, the training done properly. Once that is in place, agents can pick up the work that used to wait until someone had time.





