Learn
Once an A.I. assistant is connected to the books (Lesson 13), it can change things: a category, a draft bill, a journal entry. A.I. doesn't change who's responsible. The person who approves a change is, so the record has to show what changed, who approved it, and how to put it back.
- When, and who: the A.I., or the person who made the change
- The tool or prompt: the connector's tool, like
update_category, or the request - What changed, and which record: the bank line, the bill, the entry
- Before and After: the value before the change, and after it
- Status: draft, applied or posted, and approved by: the person, by name
- Undo: exactly how to reverse it, and undone by: the row that reversed it
- A draft (an entry, a bill or an invoice not posted yet): delete or void the draft.
- A category or another field: set it back to its Before value. That's why the log keeps it.
- A posted entry: post a reversing entry, with the debits and credits swapped, dated in an open period. Never delete or edit posted history: the audit trail must show the entry and its reversal.
- Money sent, a filing, an email sent: no button can undo these. A person approves each one before it happens.
- Every undo is a log row too, naming the row it undid. Then run the Admin checks again.
Build it with Claude. Your practice workbooks have an A.I. action log sheet with Before, After and Undo columns, beside a December activity sheet with the records it changed. Part 4 of the starter prompt tells the assistant to write a row for every change, and how to reverse each kind:
PART 4. THE A.I. ACTION LOG (IF YOU CAN CHANGE MY BOOKS) If you're connected to my books and can change anything, like a category, a draft or an entry, add a sheet called "A.I. action log". Write one row for every change you make, as you make it: - When, the tool you used or the request I made, what changed, and which record. - Before and After: the value before your change, and after it. - Status (draft, applied or posted), and who approved it. - Undo: exactly how to reverse it. A draft: delete or void the draft. A category or another field: set it back to its Before value. A posted entry: post a reversing entry, dated in an open period. Never delete or edit a posted entry. Never send money, file anything or send an email unless I've approved that exact action first. A button can't undo those, so ask me and wait. When I ask you to undo a row, do it the way its Undo says, log the undo as a new row that names the row it undid, and run the Admin checks again. Add this check to the Admin page: "Every A.I. change has a log row and an undo path": the changes you made, minus the log rows with an Undo. It passes only at zero.
Then the Admin page checks the log: count the records the A.I. changed, and the A.I. log rows with an Undo. If they're not the same, some change has no log row or no way back, and that's a red flag.
Open Settings, then Connected apps, then A.I. action log. It lists every change the Claude connector made, with its before and after values and an Undo button. Undo removes a draft or a suggestion and puts back the old value. A posted or approved item can't be undone silently: Leah Books offers a reversing journal entry draft for a person to approve instead. Each undo is logged too, and only owners and admins can see the log.
Do it
Practice tasks with the practice company's files. Try each one, then check your work: the answer opens after you check.
Undo the A.I.'s two wrong changes
✓ Done- Through the connector, the A.I. recategorized 6 December bank lines and posted 1 journal entry, and Jen Alvarez approved them. Here's its log.
- Open the A.I. action log and December activity sheets of your starter workbook, and compare 6000 Fuel with the fuel card statement. Click the two changes that are wrong.
- Then undo each one the right way, in the workbook: put the record back, and log each undo as a new row (rows 8 and 9).
- Starter workbook (.xlsx)Reports, Bills and the lines to investigate, with an empty Dashboard sheet and an empty Admin sheet for your formulas.
| Picked | # | Record | What changed | Before | After | Status |
|---|---|---|---|---|---|---|
| 1 | T1 Chevron 0091, $412.00 | Category | Not categorized | 6000 Fuel | Applied | |
| 2 | T2 Shell 7740, $388.00 | Category | Not categorized | 6000 Fuel | Applied | |
| 3 | T3 River Grill, crew lunch, $96.00 | Category | 6900 Meals | 6000 Fuel | Applied | |
| 4 | T4 Clark County PUD, $362.00 | Category | Not categorized | 6800 Utilities & Phone | Applied | |
| 5 | T5 Valley Tool Rental, $185.00 | Category | Not categorized | 6100 Equipment Rental | Applied | |
| 6 | T6 Columbia Fuel Supply, fuel card, $640.00 | Category | Not categorized | 6000 Fuel | Applied | |
| 7 | JE-AI-1201, $640.00 | Journal entry | No entry | Debit 6000 Fuel, credit 2300 Accrued Liabilities, $640.00 | Posted |
The two wrong changes: click each one in the table above
The answer
Row 3 is wrong: River Grill was already 6900 Meals, and the A.I. moved a $96 crew lunch into Fuel. Row 7 is wrong: the bank already paid Columbia Fuel Supply's $640 on Dec 15 (T6), so accruing it again counts it twice.
Before: $1,536 of bank lines in Fuel + $640 from JE-AI-1201 = $2,176, against $1,440 on the fuel card statement. Undo row 3 by putting back its Before value (Fuel falls to $2,080). Undo row 7 with a reversing entry, never by deleting it, because it was posted (Fuel falls to $1,440). In the finished workbook, rows 8 and 9 log both undos, and rows 3 and 7 say which row undid them. Fuel in the books on the December activity sheet: =SUMIF($E$5:$E$10,"6000 Fuel",$D$5:$D$10)+SUMIF($D$13:$D$14,"6000 Fuel",$F$13:$F$14)-SUMIF($E$13:$E$14,"6000 Fuel",$F$13:$F$14)
Check that the Admin page ties again
✓ Done- On the Admin sheet, write rows 20 and 22's formulas: every A.I. change has a log row and an undo path, and December Fuel ties to the fuel card statement.
- Run them before and after your undos.
- Starter workbook (.xlsx)Reports, Bills and the lines to investigate, with an empty Dashboard sheet and an empty Admin sheet for your formulas.
The Admin page's checks, after both undos
Next month, the activity sheet shows 8 changes by the A.I., and the log has 7 rows with an Undo
The answer
2,176.00 − 1,440.00 = 736.00 before the undos: a red flag. After them, 1,440.00 − 1,440.00 = 0: it passes. The log check counts 7 records the A.I. changed and 7 A.I. rows with an Undo, so it passes. The undo rows are a person's, so they aren't counted as A.I. changes. With 8 changes and 7 rows, one change has no log row or no way back: a red flag until it's logged.
| Cell | Formula |
|---|---|
| E20 | =COUNTIF('December activity'!$F$5:$F$10,"Yes")+COUNTIF('December activity'!$H$13:$H$14,"Yes") |
| F20 | =COUNTIFS('A.I. action log'!$C$5:$C$13,"A.I.",'A.I. action log'!$K$5:$K$13,"<>") |
| G20 | =E20-F20 |
| H20 | =IF(G20=0,"Pass","Red flag") |
| E22 | ='December activity'!$D$21 |
| F22 | ='December activity'!$D$20 |
| G22 | =E22-F22 |
| H22 | =IF(ABS(G22)<=$B$5,"Pass","Red flag") |
What a button can't undo
✓ Done- Here's what an A.I. assistant could do through a connection. Click every one that no Undo button can reverse.
| Picked | What the A.I. did |
|---|---|
| Drafted a bill, not approved yet | |
| Changed a bank line's category | |
| Posted a journal entry | |
| Sent a $2,480 vendor payment | |
| Filed the quarterly sales tax return | |
| Emailed a payment reminder to a customer |
Can't be undone by a button: click each one in the table above
The answer
Drafted a bill, not approved yet: Delete or void the draft. Changed a bank line's category: Set it back to its Before value. Posted a journal entry: Post a reversing entry, dated in an open period; never delete it. Sent a $2,480 vendor payment: None: the money has left. A person approves every payment before it's sent. Filed the quarterly sales tax return: None: the state has it. A person approves every filing first. Emailed a payment reminder to a customer: None: it can't be unsent. A person approves every email first.
Money that has left, a filing the state has, and an email in a customer's inbox can't be called back by a button. So they need a person's approval before they happen, not an undo after.
Tell Claude to log and undo
✓ Done- Set up your own A.I. assistant the same way. Tick each one when it's done.
- Starter prompt (.txt)Copy it into Claude, attach your exports and fill in the square brackets.
The answer
Keep the log with the month's workbook and workpapers, for as long as you keep them. A chat history can be deleted, and it isn't kept with the workpapers.