AI agents are software programs that perform a set of actions in order to achieve a specified goal. The actions are governed by a set of rules and the agent is able to perform a series of steps without being told what to do each time. When an action is outside of the specified rules, the agent will stop and pass the issue on to a human. Think of the agent as a junior colleague who is working through the invoice pile overnight and leaves a note on anything that is outside of the norm.
The use of AI agents in accounting is quickly becoming a more mainstream topic, as more and more finance teams are experimenting with them for matching, sending reminders and checking for policy compliance. Additionally, accounting partners are starting to ask questions about controls that need to be put in place around the use of these agents. This guide provides an overview of what an AI agent is, how it differs from automation, 5 examples of agents in action that you can copy, and a 7 step guide to creating your first agent without writing code.
What are AI agents in accounting?
Agents work towards a goal and decide for themselves the next step of action. This is in contrast to traditional scripts which follow a fixed path. Microsoft defines agents as software that plans and executes multi-step tasks across systems. They are more than basic chatbots.
In order for an agent to be safe to use, the job description must be very clearly defined. It must be clear what the agent is for and what it must never touch.
In addition to a clear job description, the agent must have defined access to the mailbox, folder, spreadsheet or ERP export that it can read, as well as thresholds, approvals and logging of what the agent did and why. If any of these elements are missing then you have a risky experiment instead of a reliable team member.
AI agent vs automation vs chatbot
Rule-based automation, Chatbots/assistants and AI agents are often confused with each other. This table explains where each of them reaches its limits.
| Rule-based automation | Chatbot or assistant | AI agent | |
| What it does | Repeats fixed steps | Answers questions and drafts text | Works toward a goal across several steps |
| Messy input, such as a PDF invoice | Breaks when the layout changes | Handles it, but only inside the chat | Reads it and picks the next step |
| Takes action | Only what was pre-programmed | Usually none; you copy the output | Yes, within the permissions you set |
| When stuck | Fails or stops | Waits for your next prompt | Escalates the exception to a person |
| Accounting example | A macro that posts a recurring journal | Copilot drafting a variance note | A flow that reads invoices and routes mismatches |
While each of these tools is very different from each other, they are actually complementary to each other and are best used together. Many teams use all three of these tools, with the AI agent sitting on top of the automation that is already in place.
Why the topic is moving fast in 2027
We’ve been reading some pretty dramatic headlines about how Accounting Firms are going to be transformed by AI. Let’s look at some of the actual data from some recent surveys.
- The AICPA’s 2027 CPA Firm Top Issues Survey of 629 practitioners across the country listed managing change from technology and AI as the number one long-term issue facing accounting firms of all sizes.
- Two-thirds of 100 mid-market CFOs surveyed by the Journal of Accountancy said that human oversight of agentic AI is critical, though many of the CFOs said that agents are already taking on some of the work of human employees.
- The AICPA’s 2027 CPA Firm Top Issues Survey of 629 practitioners across the country listed managing change from technology and AI as the number one long-term issue facing accounting firms of all sizes.
The surveys together confirm that agents are being used today and that the best teams are keeping a person in the loop.
Five examples of AI agents in accounting
These are the sorts of agents that accountants construct in Miles AI Labs. Each of these agents will handle the sorting and chasing of items. However, the accountant retains the decision-making process.
1. Accounts Payable Agent. This agent will read an incoming invoice. It will then locate the Purchase Order (PO) and Receipt that correspond to the invoice. If there are no issues, the agent will approve the invoices that have been matched properly. Any items that are outside of tolerances will be forwarded to a person along with the differences explained. For more information regarding our three-way matching automation companion guide, see below.
2. Receivables Reminder Agent. The Receivables Reminder Agent will read the Aging Report. Based upon the report, the agent will draft reminders in a tone appropriate for each customer. Disputed or very old balances will be referred to the Collector; therefore, customers do not receive a fourth email from software.
3. Reimbursement Agent. The Reimbursement Agent will check each expense claim against company policy. The agent will verify if the claim falls within the correct category, has exceeded the limit, includes the required receipt, and has received the proper approvals on file. Only compliant claims will move forward; all other claims will be returned to the Employee with a detailed explanation why.
4. Lease Audit Agent. The Lease Audit Agent will compare the lease abstracts with the schedule used behind your ASC 842 entries. The agent will identify any discrepancies in terms, payments, or renewal options, and refer them to a Reviewer.
5. Revenue Recognition Agent. The Revenue Recognition Agent will scan contract summaries for features that typically require ASC 606 judgment, such as Variable Consideration or Multiple Deliverables. Therefore, the Reviewer can start reviewing the contracts that are most important.
None of these agents will make a final entry nor release any payment based on its own judgment; that was intentionally designed.
How to build your first agent, step by step
No code is required to create an agent using low code tools like Microsoft Copilot Studio. You can build your agents using a visual interface, connect them to your company’s data and define the points where the agent should seek input from humans.
- Pick One Narrow Job
The best way to start is by picking a very specific job. “Match invoices to Purchase Orders” is a good place to begin. “Run Accounts Payable” is simply too large. - Write Rules in Plain English
Your rules need to be written in simple language. This includes policy documents, threshold levels and exceptions. - Only Give It What It Needs
Give the agent only the information it needs to complete its task. Typically this will include a policy document, a list of vendors and some examples of past cases. - Connect the Actions
Once the agent knows what to do, connect the actions. For example, have it check a mailbox, update a tracker or send an item for approval. No other actions should be connected. - Test on Practice Data
Test the agent on practice data. Run 20-30 cases where you know the answer and see how the agent compares. - Add Human Checkpoint & Log
Define who will approve the exceptions and where those records will be stored. - Review Weekly at First
Review the agent weekly at first. Tighten up the rules as necessary based upon any errors made by the agent.
Most first-time projects fail at Step 1 because the project scope is too broad. An agent with a narrow focus that performs well is more trustworthy than a broad-scoped agent that no one trusts.
Risks and controls to put in place
An agent that is able to act can also act wrongly. Thus, treat it as a new hire with limited authority.
- Human review. Keep a person on anything that posts, pays or reports outside the firm. One Accounting Today commentary describes accountants as the gatekeepers of agentic outputs.
- Limited permissions – Every agent that can take material actions should have an identity, a human sponsor, a defined purpose, a financial authority limit, approved tools, an expiry date and a way to revoke access. CPA Australia’s INTHEBLACK suggests these measures for agents.
- Audit trail. Human-in-the-loop validation, transparent decision-making and audit trails for all decisions made by AI systems are basics of responsible deployment, according to Microsoft. If you cannot reconstruct what an agent did, it is not ready for real work.
- Wrong answers. The majority of finance leaders surveyed have already experienced AI-generated errors, so testing, sampling and ongoing review are key.
- Practice with sample data first. Keep all client data out of any tools that have not been approved by your firm.
Learn it by building: Miles Masterclass, AI Labs and CAIRA
In Miles, reading about agents is only part of the story. In the Masterclasses we explore the underlying logic of agents and the appropriate controls to manage them. Miles AI Labs is the place to build with Audit, Tax and CFO-team tracks, no code, no client data and nothing to set up.
CAIRA (Certified AI-Ready Accountant) is a three-level credential with hands-on learning in the Audit, Tax and CFO-team tracks, no code, no client data and nothing to set up in Miles AI Labs. Level 1 is Copilot, Copilot Studio, Power Automate and Power BI. Level 2 is agents and workflows for the finance function.
AI agents in accounting reward narrow scope, strict rules and frequent human review. When you are ready to get started, build your first AI agent in Miles AI Labs or find out more about the CAIRA program.
