DeepLedger
Menu

Bookkeeping

5 Grok Prompts for Xero Invoices, Bills, Bank Transactions and Reports

Five copyable Grok prompts for Xero: a draft bill, a spend money line, a draft invoice, a draft credit note and a profit and loss by tracking category.

Published by DeepLedger10 min read

These five Grok prompts save a supplier bill, record a spend money transaction, save a sales invoice and a credit note, and explain a profit and loss by tracking category in Xero, through DeepLedger's MCP server. New invoices, bills and credit notes are saved as drafts unless you ask Grok to approve them. Each prompt names the evidence to give Grok and the record to check in Xero afterwards. They are for bookkeepers and owners who already connect Grok to Xero and want prompts they can copy.

The examples use Kowhai Joinery Ltd, a fictional business. Replace the name, dates, accounts and amounts with your own. These are suggested workflows, not transactions we ran in a customer's books.

What makes a good Grok prompt for Xero?

Write the prompt the way you would brief a careful junior bookkeeper. Say which organisation, hand over the document, point to the client's rules and say whether the result stays a draft.

Part of the promptExample wordingWhy it matters
Organisation"For Kowhai Joinery Ltd"Every DeepLedger write must name its company, or it is refused.
Evidence"the attached supplier invoice"Grok works from the document, not from memory.
Client rules"Read the AI Brain expense rules first"Grok reads the AI Brain only when asked.
Duplicate check"Check it is not already in Xero"A bill and a spend money line can describe the same purchase.
Draft or approve"Save it as a draft"Drafts do not touch the reports until someone approves them.
Result"Return the Xero number"You check the saved record, not the summary.

Before you use the prompts

Connect the organisation to DeepLedger: open Companies, select the company, open its Connections tab and choose Connect to Xero. Then add DeepLedger in Grok at grok.com/connectors (New Connector, then Custom):

https://mcp.deepledger.ai/mcp

Grok asks you to sign in to DeepLedger. On Grok Business and Enterprise, an admin may need to add the connector first.

Grok Bot uses a different path. DeepLedger is not in the Grok Bot plugin catalog: ask the bot in chat to add a custom MCP server named DeepLedger at the address above, then Authorize and sign in. Both routes are covered in the Grok setup guides, and the Grok Bot steps are in the QuickBooks Online Grok guide.

Confirm the organisation before the first prompt:

Using DeepLedger, which company am I in? Show the base currency and lock date. Do not change anything.

Nothing dated on or before the organisation's lock date can change, so it is worth knowing before you start.

The five prompts at a glance

PromptEvidence to provideWhat to check in Xero
1. Draft supplier billSupplier invoiceA draft bill with the supplier's number in the reference
2. Spend moneyThe bank statement line and receiptOne spend money transaction on the right bank account
3. Draft sales invoiceAgreed work, rate and datesA draft invoice with the right contact, account, tax and tracking
4. Draft credit noteThe invoice and the reason for the creditA draft credit note for the same contact, not yet allocated
5. P&L by trackingPeriod, basis and tracking categoryThe same totals as Xero's Profit and Loss with the same settings

1. Save a supplier bill as a draft

Evidence to provide: the supplier invoice as an attachment, and the organisation name.

For Kowhai Joinery Ltd, read the AI Brain expense rules and skills, then use DeepLedger to enter the attached supplier invoice as a bill in Xero. Save it as a draft; do not approve it.

Check the supplier's open and recent bills first, using the supplier's invoice number as the reference, so the same invoice is not entered twice. Show me the contact, reference, date, due date, currency, lines, accounts and tax rates. Ask about anything missing instead of guessing. After I confirm, save the draft, attach the file and return the bill's details.

What to check: a draft bill that agrees with the supplier document, with the supplier's invoice number in the reference. A draft does not change the reports or the amount owed until someone approves it. Approve it in Xero, or ask Grok to approve it once you have checked the lines.

2. Record a spend money transaction you already paid

Evidence to provide: the bank statement line, the receipt and the bank or card account.

Spend money is for a purchase with no bill behind it, such as a card payment at a hardware store. In Xero it has no draft stage: it posts as soon as it is saved. If a bill for the purchase already exists, the payment belongs against that bill instead, or the cost is counted twice.

For Kowhai Joinery Ltd, read the AI Brain expense rules. I paid the attached receipt by business card on November 14, 2026. The card statement line reads exactly as follows: [statement description].

Check for an existing bill or spend money transaction with the same amount and date first. Propose one spend money transaction on the card account, with the contact, account and tax rate, and use the statement description as the reference. Do not record anything until I confirm. Spend money posts straight away, so show me the proposal first.

What to check: one spend money transaction on the right account. Matching it to the statement line still happens in Xero's Reconcile screen: DeepLedger cannot see Xero's bank feed or statement lines. The Xero bank reconciliation guide explains that step.

3. Save a sales invoice as a draft, with tracking

Evidence to provide: the customer, the work done, the amount, the dates and the tracking option.

Tracking categories in Xero, such as Region or Division, sit on each line. Xero allows two active tracking categories.

For Kowhai Joinery Ltd, read the AI Brain income rules, then prepare a Xero invoice to Pukeko Homes for the kitchen fit-out completed in November 2026, as quoted. Use an invoice date of November 28, 2026 and a due date of December 20, 2026. Set the Region tracking option to Wellington on every line.

Use the existing contact and check for an existing invoice for this work. Show me the lines, accounts, tax rates and tracking. Save it as a draft after I confirm. Do not approve it, email it or record a payment.

What to check: the draft's contact, lines, tax, total and tracking. Creating an invoice, approving it, sending it and recording its payment are four separate requests, and this prompt asks only for the first. If the work started as a quote in Xero, ask Grok to convert the accepted quote instead, which also saves a draft.

4. Save a credit note as a draft

Evidence to provide: the invoice it relates to and the reason for the credit.

For Kowhai Joinery Ltd, Pukeko Homes was charged for two cabinet doors that were not fitted. Find the invoice and prepare a customer credit note for those lines only, with the same accounts, tax rates and tracking. Save it as a draft after I confirm.

Do not approve or allocate the credit note. Tell me the invoice's current amount due and what it would be once the approved credit is allocated.

What to check: a draft credit note for the same contact. A credit note must be approved before it can be allocated to an invoice. Keep that as a separate request you make after review. To correct an approved invoice that already has payments, a credit note is usually better than a void.

5. Explain a profit and loss by tracking category

Evidence to provide: the period, the basis and the tracking category.

Using DeepLedger, run Kowhai Joinery Ltd's profit and loss for October 1 to 31, 2026, on an accrual basis, split by the Region tracking category. Compare it with September 1 to 30, 2026 on the same basis. Do not change any records.

Show the organisation, currency, dates and basis. Compare income, cost of sales, operating expenses and net profit for each region. For the three largest changes, list the invoices, bills, bank transactions or manual journals behind them. Separate what the records show from questions that need more information.

What to check: the same totals as Profit and Loss in Xero under Reporting → All reports, run with the same dates, basis and tracking. For a cash basis, ask for it: DeepLedger runs the report on payments only. Xero's general ledger report is not available to DeepLedger yet, so Grok traces changes through transaction search. The Xero profit and loss walkthrough shows how to check each line.

How do I give Grok the context it is missing?

Grok can use a document you attach, or information from a separate email or drive connector you have authorised in Grok. DeepLedger's Xero connection does not include your inbox, your shared folders or Xero's bank feed.

When a coding decision is settled, save it where the next session can find it. Ask Grok to add it to the client's AI Brain, with its scope and exceptions:

For Kowhai Joinery Ltd, add an expense rule to the AI Brain: timber from Totara Timber Supplies goes to Materials. Tools bought there go to Small Tools.

A decision about one supplier should not become a rule for every purchase. When Grok needs an answer nobody can give right now, ask it to create a DeepLedger task naming the document, the missing information and the decision required. The task appears on the company's Tasks tab.

What protects the books if a prompt goes wrong?

A prompt is an instruction, not a control. These checks sit in DeepLedger's server, whatever the prompt says:

  • Company write guard. Every write must name its company. If it is missing or differs from the active company, DeepLedger refuses it and nothing is written.
  • Drafts by default for new invoices, bills, credit notes and manual journals. Spend money, receive money, payments and transfers post straight away.
  • Lock dates. Nothing dated on or before the organisation's lock date can change.
  • Confirmation for voids and for emailing a document, and voiding a document with payments or credits applied is refused.
  • Read-only members cannot write, and Audit history records each tool call per company.
  • Nothing runs on its own. Grok acts only when you ask.

For receivables, use the Grok overdue invoices workflow for Xero, which keeps the review read only until you decide.

Frequently asked questions

What makes a good Grok prompt for Xero?

A good Grok prompt for Xero names the organisation, attaches the source document, tells Grok to read the client's AI Brain and check for duplicates, and says whether the result stays a draft. It also names what to return, such as the Xero number, so you can open the record and check it.

Will Grok approve invoices and bills in Xero?

Only if you ask. DeepLedger saves new Xero invoices, bills, credit notes and manual journals as drafts unless the request asks to approve them. Spend money, receive money, payments and transfers have no draft stage in Xero, so they post straight away.

Do these prompts work in Grok Bot?

Yes, once DeepLedger is added. DeepLedger is not in the Grok Bot plugin catalog, so ask the bot in chat to add a custom MCP server named DeepLedger at https://mcp.deepledger.ai/mcp, then Authorize and sign in. The prompts are the same after that.

Can Grok see my Xero bank feed?

No. DeepLedger reads the bank transactions recorded in Xero and whether they are reconciled, but Xero does not share its bank feed or statement lines with DeepLedger. Give Grok the statement line yourself, and match statement lines in Xero.

Do these Xero prompts work in Claude or ChatGPT?

Yes. The prompts describe the bookkeeping task, not Grok features, so they work in any AI app connected to DeepLedger, including Claude and ChatGPT. Only the connection steps differ.

Does Grok remember my coding decisions for a Xero client?

Only if you save them. Ask Grok to add the approved decision to the client's AI Brain, for example as an expense rule, and ask it to read the AI Brain at the start of the next session. Grok does not load the AI Brain on its own.

Find every AI app DeepLedger works with on AI Platforms & Integrations.

Ready to get started?

Connect QuickBooks and try your first task with an AI agent.

Start free trial

With your permission, Google Analytics measures visits to our public website and blog. Essential cookies work either way. Change your choice in Cookie settings. Privacy policy