What's left before we close the month? A Xero list from Grok Bot or Claude
Each morning of close week, your AI reads the month in Xero and lists what is still open: invoices and bills nobody approved, costs that turn up every month but not this one, and balances that should be zero. You clear the list, sign off and lock the month.
How to get this live in your business
It is the third of the month and the accountant wants to know if October is closed. The rent bill is sitting in Awaiting Approval, two invoices are still drafts, and there is $612.40 in suspense that nobody has looked at. You find them one screen at a time, or after the report has gone out. Grok Bot and Claude can both read the month in Xero and put everything still open on one list. Closing it stays with you.
In short
- What you get
- In close week, one list of what is still open for the month in Xero: sales invoices and bills not yet approved, usual costs missing, suspense and clearing balances, bank closing balances to tick, and debts over 90 days.
- Connecting
- Sign in with Xero once and Grok Bot or Claude gets one AI Pathway key: free for 14 days, then Bot Starter at $19 a month per business.
- Your part
- Work the list, reconcile the bank, decide what matters, sign off, and set the lock date in Xero yourself.
- Never
- Posting a journal, approving an invoice or bill, coding a transaction, guessing an accrual, or setting the lock date.
Take the spec to Claude, ChatGPT or Copilot. The sentence to paste is one click away.
Want the whole thing by email?
This paper, plus the rest of the library. One click to stop them.
What's still open at the end of the month
The list comes in six groups, each with the figure from Xero beside it:
- Not in the month yet. Sales invoices still in draft or awaiting approval, and bills still awaiting approval. Xero leaves them out of the month’s figures until someone approves them.
- Usual costs missing. A line in your profit and loss with an amount in each of the last three months and nothing this month, like rent, wages or insurance. Usually a bill that hasn’t arrived or an accrual not entered yet.
- Should be zero. Suspense, clearing and undeposited funds accounts with a balance at the end of the month.
- Bank balances to tick. Each bank account’s closing balance in Xero, for you to compare with the statement.
- Old debts to look at. Customers with invoices 90 days or more overdue.
- Still with you. The same short list every month: reconcile, code anything uncoded, check GST, enter accruals and prepayments, sign off, lock.
Run it again the next morning and anything you have cleared is marked “cleared since last run”, so the list gets shorter as the week goes.
This is the light version, built for a bot. The full Month End Close standard is the version a practice runs at scale: every checklist item checked against the ledger with its evidence, accruals proposed from your own schedule, a named sign-off, then the approved journals posted once each and the lock date moved forward.
Connect Xero so your AI reads the month but never changes it
It lists what is left before the month can close. It reads the month’s invoices and bills still waiting for approval, your profit and loss beside the three months before, the balance sheet, the bank summary and the debts over 90 days. You decide whether each item matters and what to do about it, you enter any accrual your schedule doesn’t hold, and you sign off and set the lock date. Your Xero login stays yours.
The key is free for 14 days, no card to start, then Bot Starter at $19 a month per business.
What each piece of access is for
- The AI Pathway key: reads the month’s sales invoices and the bills awaiting approval, the profit and loss, balance sheet and bank summary as Xero works them out, and the overdue customers. It reads only, so nothing on this list gets approved, posted or locked by the bot.
- A folder for the files: not access to Xero at all. Each run saves its list there, so the next run can show what you have cleared.
The steps for each tool are under Build it below.
What it can’t see. The key does not read your bank statement lines, so it cannot tell you what is unreconciled or uncoded, and it does not read aged receivables, aged payables or the lock date. Those stay on the Still with you part of the list. Xero’s own free connector for Claude reads only and has aged receivables and payables, so in Claude you can add it alongside and ask for both against the balance sheet. Its listing names no tool for reconciliation status or the lock date. More in our guide to Claude with Xero.
Several clients? Put the organisation’s name in the first line of the prompt and run it once for each. Give each bot its own key, so you can switch one off without touching the rest.
Build it
Pick where you want to build it. Grok Bot, Claude and ChatGPT take a prompt; Microsoft 365 and Google Workspace run the same steps as a flow or a script. Each step can run somewhere different, and the steps stay the same wherever they run.
Build this in
Every step runs here. To run a step somewhere else, change it on that step below.
Connect, once
Grok Bot
- Go to connect.aipathway.com.au, click Sign in with Xero and pick your organisation. Your key is made and shown with the MCP address.
- Click + beside Bots to make a Bot, then paste the message below into its chat and click Add it when it asks. Enter the key in the secure secret card it shows, never in the chat.
Add a custom MCP server called AI Pathway at https://connect.aipathway.com.au/api/mcp It needs an Authorization header: the word Bearer, a space, then my AI Pathway key. Ask me for the key with a secure secret card. Do not ask me to type it in this chat.
The steps
Step 1 · Grok Bot
List what is still open for the month
In close week, lists the month's invoices and bills not yet approved, usual costs missing, balances that should be zero, bank closing balances to tick and debts over 90 days, with the figure from Xero beside each.
- Reads
- Xero: the month's sales invoices and bills awaiting approval, the profit and loss beside the three months before, the balance sheet, the bank summary and customers 90 days overdue
- Writes
- A dated list, close-YYYY-MM, marking anything cleared since the last run
- Never
- Create, approve, edit or post anything in Xero, guess an accrual, set the lock date, or email anyone
In Grok Bot
Paste the prompt into the Bot's chat.
Use the AI Pathway tools for [organisation name]. Read only: do not create, approve, edit or post anything in Xero, and do not email or message anyone. First work out the month to close. If today is the last weekday of a month, close this month. If today is one of the first five weekdays of a month, close last month. On any other day, reply "Not close week." and stop. If I name a month, use that one. For that month, call: 1. list_invoices with since set to the first day of the month. Keep the invoices dated in the month with status draft or awaiting_approval. 2. list_bills. Keep the bills dated on or before the last day of the month that are still awaiting approval. 3. read_report with report profit_and_loss, from the first to the last day of the month, periods 3 and timeframe MONTH. 4. read_report with report balance_sheet and date set to the last day of the month. 5. read_report with report bank_summary, from the first to the last day of the month. 6. list_overdue with min_days_overdue 90. Put what you find in these groups: - Not in the month yet: each invoice and bill from steps 1 and 2, with the customer or supplier, the number, the date and the total. They are not in the month's figures until someone approves them. - Usual costs missing: each expense row in the profit and loss with an amount in all three earlier months and none this month, such as rent, wages or insurance. Show the three earlier amounts. Do not suggest an amount for this month. - Should be zero: each balance sheet row whose name includes suspense, clearing or undeposited funds, with a balance at the end of the month. Show the figure. - Bank balances to tick: each bank account's closing balance from the bank summary, for me to compare with the statement on the last day of the month. - Old debts to look at: each customer from step 6, with the total overdue and the oldest invoice's days overdue. - Still with me: reconcile every bank and card account to its statement, code anything uncoded, check GST against the return, enter the month's accruals and prepayments, sign off, and set the lock date in Xero. Quote every figure as Xero gives it. Never recompute a report total, and never call a difference too small to matter. If a call fails or returns an error, write "could not check" for that group, never "nothing left". Save the list as close-YYYY-MM.csv with the group, the item, the figure and the tool it came from. If an earlier file for the same month is in this folder, mark anything no longer there as "cleared since last run". Give me a count for each group at the top, then the groups in the order above.
Schedule: When the result looks right, ask it to "save this as a skill called month-end close, and create a routine that runs it every weekday at 9am Brisbane time."
Step 2 · You
Clear the list, then close the month
The list tells you where to look. Every decision on it is yours.
- Not in the month yet: approve, fix or void each one in Xero, or leave it for next month.
- Usual costs missing: chase the bill or enter the accrual. The amount comes from your accruals schedule or from you, never from last month's figure.
- Should be zero: work out what each balance is. Anything uncoded goes to the person who knows what it was.
- Bank balances to tick: reconcile each account in Xero and tick its balance against the statement.
- Old debts to look at: decide whether to chase, take a payment plan or write one off.
- When the list is down to Still with you, sign the month off and set the lock date in Xero yourself.
Let Claude Code set this up in Grok Bot for you
Paste the message below into Claude Code and it drives the Grok Bot app for you: it reads this page, saves the prompt as a skill, adds the routine and tests it before you rely on it. No clicking through the app.
Set up this Grok Bot recipe for me: https://aipathway.com.au/explore-ai/close-the-month-xero-grok-bot-claude Read the page, then follow https://aipathway.com.au/explore-ai/grok-bot-claude-code to drive my Grok Bot desktop app: open it with the debugging port on, save the prompt as a skill called "month-end close", create a routine that runs it every weekday at 9am Brisbane time, and test that it drafts and never sends. Never take a password or key in chat. Close the port when you're done.
Compare where it can run
| Where it runs | What you need | |
|---|---|---|
| Grok Bot | On its own cloud computer, laptop closed | A plan that includes Grok Bot, plus the AI Pathway key |
| Claude | On Anthropic's side, computer asleep or app closed | A paid Claude plan for scheduled tasks, plus the AI Pathway connector |
| ChatGPT | On OpenAI's side | ChatGPT Business or Enterprise, plus the AI Pathway connector |
| Microsoft 365 | In your own tenant, on an account the business owns | Your Microsoft 365 plan; calling the connector from a flow needs a premium Power Automate licence |
| Google Workspace | In your own Workspace, on an account the business owns | Your Google Workspace plan, plus the AI Pathway key |
Once connected, ask your AI to call read_report for the bank summary of last month. The closing balances should match Xero’s own Bank Summary report for the same dates. Then check the first run by hand against a month you have already closed: name that month, and every bill you know was approved late should show under Not in the month yet. If your suspense or clearing accounts have other names, add them to the Should be zero line.
Neither Grok Bot nor Claude offers “the last business day of the month” as a schedule, so it runs every weekday and the first step stops it with “Not close week.” on the other days. On Claude, once you pick a folder for the files, the task runs only while your computer is awake and the Claude desktop app is open.
Anything uncoded: the Uncoded Query standard sets out how to ask. Old debts: the Monday debtor call list ranks who to ring. Xero’s API lets an app read the lock date but not set it, so locking stays with a person.
Questions
Can Grok Bot or Claude close the month in Xero for me?
Not with this recipe. It reads the month and lists what is still open. Approving invoices and bills, posting journals, reconciling and setting the lock date stay with you. The full Month End Close standard goes further: after a person signs off, the approved journals post once each, and the lock date is still set by a person in Xero.
Can it tell me what is unreconciled or uncoded?
No. The AI Pathway key does not read bank statement lines, and Xero keeps those behind restricted API access. The list gives each bank account's closing balance in Xero for you to tick against the statement, and anything sitting in suspense, so reconciling and coding stay with you.
Why does it run every weekday and not only on the last business day?
Claude's scheduled tasks run hourly, daily, on weekdays, weekly or by hand, with no monthly option, and Grok Bot's help shows weekday and hourly schedules. So the routine runs every weekday at 9am and the prompt stops on any day outside the last weekday of the month and the first five weekdays of the next.
Will it work out my accruals?
No. It tells you when a cost that appears every month is missing this month, with the last three amounts. The amount you accrue comes from your own schedule or from you. Guessing it from last month is how a wrong accrual gets into a closed month.
Is this the same as the Month End Close standard?
It is the light version. The full standard checks every item on the close checklist against the ledger with its evidence, proposes accrual journals from your schedule, records a named sign-off, posts the approved journals once each and hands the closed month to the monthly report.
Steps as each tool set them out on 23 November 2026. Menus move, so expect the odd label to differ.
Connect Xero
Sign in with Xero and your AI Pathway key is made and shown with the MCP address. Add it to Grok Bot, Claude or ChatGPT. Free for 14 days, no card to start, then Bot Starter at $19 a month per business. It reads your Xero and never approves, sends or pays.
Building it properly, at scale? The rules are open. Take the full Month End Close standard.