AI Engineering 9 min read

One AI agent across HubSpot and Xero or MYOB

An agent drafts invoices from won deals, writes payment status back to HubSpot, drafts overdue follow-ups and flags credit holds, with a person approving anything that changes the ledger. AI projects start from A$10,000 ex GST.

AI & Digital Strategist

A custom AI agent connected to HubSpot and Xero or MYOB runs the steps between a won deal and cleared cash that need judgement. When a deal closes in HubSpot, it drafts the invoice in your accounting system for finance to approve, writes the payment status back to the deal and company record, drafts a follow-up for each overdue account to suit its situation, and flags a credit hold to the sales rep before another order goes in. A plain integration still moves the data. The agent decides what to do with it, and a person approves anything that changes the ledger or reaches a customer.

Building one takes three things: API access to both systems with the narrowest permissions that do the job, written rules for each step (what the agent may do alone, what needs approval, and who approves it), and a test run against your past deals and invoices before it touches a live one. Most of the work is in the rules and the data. The AI model is the smaller part.

Neighbourhood builds these agents on Claude, connected to HubSpot, Xero, MYOB and other systems, through our AI engineering team. Our AI projects start from A$10,000 ex GST, with model and hosting costs on top that depend on your volume.

What does an AI agent do across HubSpot and Xero or MYOB?

It runs quote to cash across both systems. This is the flow we build, in order:

  • Deal won in HubSpot. The agent reads the deal, line items, ABN and billing contact, and checks them against the matching customer in Xero or MYOB.
  • Invoice drafted in Xero or MYOB. It creates the invoice as a draft. In Xero, an invoice sent through the API without a status is saved as DRAFT, which creates no journals and stays out of your reports until someone approves it.
  • Finance approves. A named person checks the draft and approves it, and only then is it issued to the customer.
  • Payment status back to HubSpot. Paid, part paid or overdue lands on the deal and company record, so sales sees what finance sees.
  • Overdue follow-up. For each overdue account, the agent reads the HubSpot history (a promised payment date, an open complaint, a renewal in progress) and drafts the right reminder, or no reminder at all.
  • Credit hold flags to sales. When an account passes the overdue limit your finance team sets and has an open deal, the agent sets a credit hold property and tells the deal owner.

The overdue step is a build in its own right, and our post on whether an AI agent can chase overdue invoices in Xero and HubSpot covers its reminder rules and the debt collection guideline.

From a won deal to cleared cash, with a person at each decision
How an AI agent runs quote to cash across HubSpot and Xero or MYOBA deal is won in HubSpot. The AI agent checks the deal against the accounting customer and drafts the invoice. A finance lead approves it, and the invoice is issued from Xero or MYOB. Payment status goes back to HubSpot. For overdue accounts the agent drafts a follow-up for a person to approve, and a credit hold is flagged to the deal owner. Deal wonin HubSpot AI agentchecks the deal againstthe accounting customerdrafts the invoice Finance lead approvesedit, approve or reject the draft Invoice issuedfrom Xero or MYOB Payment status to HubSpotpaid, part paid or overdue Overdue follow-upagent drafts, a person approves Credit holdflagged to the deal owner

The flow described in this post. Your finance team sets the overdue limit for a credit hold.

Which steps need an agent, and which only need an integration?

An integration copies data. A HubSpot workflow follows fixed if-then rules. An agent is worth paying for only where a step needs context and a choice. Here is how we split the steps.

StepSystemAgent or integrationWho approves
Match the HubSpot company to the accounting customerHubSpot and Xero or MYOBIntegration, matched on customer ID and ABN. Agent only for the records that do not matchFinance, for any new customer the agent proposes
Draft the invoice from the won dealXero or MYOBAgent, when line items, terms or tax treatment vary deal to deal. Integration, when every deal looks the sameFinance lead, before it is issued
Send the invoiceXero or MYOBThe accounting system, once approvedCovered by the approval above
Payment status back to HubSpotXero or MYOB to HubSpotIntegrationNo approval needed, read only
Overdue follow-upHubSpot and Xero or MYOBAgent, because each account needs different handlingFinance lead, every message at first
Credit hold on an accountHubSpotAgent proposes, or a workflow on a fixed overdue ruleFinance lead, and the deal owner is told
Dispute or hardship replyHubSpotAgent stops chasing and hands overA named person takes it from there

If the integration and a few workflows cover your business, stop there. Our guide on whether you need an AI agent or a HubSpot workflow walks through that test. The agent earns its cost on the invoice draft and the overdue follow-up.

This short from our YouTube channel sets out the difference between a chatbot and an AI agent.

Chatbot vs AI agent: the one line that saves you from overpaying, from our YouTube channel. Watch it on YouTube.

Thinking about an AI agent for your finance and sales teams?

Talk to Matt about AI engineering work that connects HubSpot to your accounting system.

Which APIs does the agent use, and what limits apply?

Xero. The Xero Accounting API handles invoices, contacts and payments. Apps created on or after 2 March 2026 use Xero's granular scopes, so you ask for accounting.invoices and accounting.payments separately, each with a read-only version, and existing apps have until September 2027 to move across. Xero allows 60 calls a minute and 5 at once per organisation. Its developer pricing sets the daily cap at 5,000 calls per organisation on paid plans and 1,000 on the free Starter plan. Go over and Xero tells your code how long to wait.

One date matters right now. From 1 December 2026 you can no longer create a new Custom Connection, Xero's single-organisation connection type, or buy a new subscription for one. A Custom Connection made before then keeps its API access and daily limit. Xero says client credentials are not going away, and it will share how they are offered after that date.

MYOB. The MYOB Business API covers MYOB Business and AccountRight files. Its sale invoice endpoint supports reading, creating, updating and deleting invoices, and access is split into scopes such as sme-sales for sales transactions and invoice payments, with customer contacts under their own scope. MYOB enforces a per-second and a daily call limit but does not publish the numbers on its developer pages, so we confirm them on the app's registration page.

MYOB also publishes a read-only connector for Claude. It answers questions from your live MYOB figures in a chat, but MYOB says it "can't create, edit or delete anything", and it does not cover payroll, inventory or job tracking. Anything that drafts an invoice or writes back to HubSpot needs the Business API.

HubSpot. The agent connects through a privately distributed app with its own access token and only the scopes it needs. Since 26 October 2026 HubSpot no longer lets you create legacy private apps, so new builds use its current app platform set to private. On Professional, HubSpot's limit is 625,000 calls a day per account and 190 every 10 seconds per app. Enterprise gets 1,000,000 a day. The daily limit is shared by every app in the portal.

In practice the Xero daily cap is the one you design around. As an illustration, an agent that checks 400 overdue accounts one by one every hour over a 12 hour day makes 4,800 calls, close to the 5,000 cap before it has drafted anything. So it reads in batches and only fetches what has changed.

How do permissions, approvals and the audit trail work?

We apply the same controls a finance team already uses for people.

  • Its own login. The agent connects as its own app with its own credentials, never through a staff member's account, so you can switch it off without touching anyone's access.
  • Narrow scopes. Read-only wherever a step only reads. Write access only to invoices and the HubSpot properties it updates. No access to payroll, bank transactions or manual journals.
  • Approval before anything leaves. Draft invoices and customer messages wait as a HubSpot task or a Slack message for a named person to approve, edit or reject. Disputes, hardship and large accounts stay with a person permanently.
  • Your own log. HubSpot's app logs keep 30 days of API calls and do not store request bodies, so the agent writes its own record: what it read, what it proposed, who approved it, and the value it replaced. That lets you reverse a wrong credit hold.

What are the Australian details: GST, ABN, Peppol and the ATO?

GST and tax invoices. The ATO lists what a tax invoice must show, including the seller's ABN, the GST amount and that it is intended as a tax invoice. For sales of $1,000 or more it must also show the buyer's identity or ABN. The agent uses the tax rates set up in Xero or MYOB, and finance checks any line where the HubSpot product and the accounting item are taxed differently.

ABN. It is the second key for matching a HubSpot company to an accounting customer. The free ABN Lookup web services from the Australian Business Register let the agent check an ABN is active before it drafts an invoice.

Peppol e-invoicing. According to business.gov.au, the ATO administers Australia's Peppol network and approves the providers on it, but cannot see your invoices. Xero and MYOB Business can both send e-invoices once you register, and MYOB checks the customer has a valid ABN first. The agent drafts, and your accounting system sends it as it does today, by Peppol or email.

Records. The ATO expects most business records to be kept for five years, so keep the agent's log for as long as the invoices it touched.

What does it take to build, and what does it cost?

A build runs in five steps:

  • Map ownership. Write down which system owns each record and field: customers, products, invoices, payments. Our guide to connecting HubSpot to your ERP without a blowout has the split we start from.
  • Clean the match. Every won customer in HubSpot matched to one customer in Xero or MYOB, by ID and ABN, before the agent reads either.
  • Write the rules. What the agent drafts, what it may never do (offer a discount, change payment terms), who approves each step, and the overdue limit for a credit hold.
  • Test on history. Run it against past deals and overdue cases with known right answers, including disputes it must leave alone.
  • Go live narrow. One accounting file, one team, a person approving everything. Widen it when the drafts come back right without edits.

On price, our AI projects start from A$10,000 ex GST, and ongoing AI partnerships, where we keep improving and monitoring the agent, start from A$8,500 a month ex GST. Read what a custom AI build costs an Australian business for the build and running cost in detail.

Four stages of groundwork before the agent handles a live invoice
  1. Map ownershipDecide which system owns each record and field: customers, products, invoices, payments.
  2. Clean the matchMatch every won HubSpot customer to one Xero or MYOB customer, by ID and ABN.
  3. Write the rulesWhat the agent drafts, what it may never do, who approves each step and the credit hold limit.
  4. Test on historyRun it on past deals and overdue cases with known right answers, disputes included.
  5. Go live narrowOne accounting file, one team, a person approving everything until drafts need no edits.

The build stages described in this post.

Who builds these? Neighbourhood does. We are a Brisbane HubSpot partner, and our AI engineering team builds agents like this one on Claude. Cassy Woodforth holds Claude Certified Developer: Foundations.

Frequently asked questions

Can an AI agent create invoices in Xero from HubSpot deals? Yes. A custom agent can read a won HubSpot deal and create the invoice in Xero through the Accounting API as a draft, which a finance lead approves before it is issued. The standard HubSpot and Xero integration syncs invoices between the two systems, and the agent adds the checks and the approval step.

Can Claude create invoices in MYOB? Not through MYOB's Claude connector, which is read only. A custom agent built on the MYOB Business API can create and update sale invoices, with a person approving each one.

What does a custom AI agent cost in Australia? At Neighbourhood, AI projects start from A$10,000 ex GST and ongoing AI partnerships from A$8,500 a month ex GST, plus model and hosting costs that depend on volume. The number of systems, the state of your data and how much the agent may do alone move the price most.

What are the Xero API rate limits? Xero allows 60 calls a minute and 5 concurrent calls per organisation, with a daily cap of 5,000 calls per organisation on paid developer plans and 1,000 on the free Starter plan.

Who builds AI agents connected to HubSpot and Xero or MYOB in Australia? Neighbourhood, a Brisbane HubSpot partner, builds these agents on Claude through its AI engineering team, with approval steps and an audit log in every build.

Sources


Want to see how we build agents that connect HubSpot to Xero or MYOB? See our AI engineering work.

Ready to talk about an agent across HubSpot and your accounts?

Talk to Matt about AI agents that connect HubSpot to Xero or MYOB. He can explain how we work and whether our AI engineering work fits what you need.

Neighbourhood

Neighbourhood is a HubSpot Diamond Partner in Brisbane. We build AI systems and the revenue operations they run on, for businesses across Australia and New Zealand.