# 5 Steps to an AI Agent That Categorizes Business Expenses

> A visual guide: an n8n agent sorts expenses into a fixed list of categories, flags unclear ones as Needs Review and saves them to Google Sheets.

Source: https://learn.ynteractive.com/content/visual/5-steps-ai-expense-categorizer · Updated 2026-10-01 · Free from Stepthrough (https://learn.ynteractive.com)

[Step-by-step guide](https://learn.ynteractive.com/content/visual#format-steps-carousel) · 7 slides · [n8n](https://learn.ynteractive.com/content/tool/n8n)

By [Robert Breen](https://learn.ynteractive.com/content/about) · Published October 1, 2026 · From the free lesson [Build an AI Agent That Categorizes Business Expenses](https://learn.ynteractive.com/content/n8n-ai-agent-categorize-business-expenses-google-sheets)

A visual guide: an n8n agent sorts expenses into a fixed list of categories, flags unclear ones as Needs Review and saves them to Google Sheets.

Swipe or scroll sideways for all 7 slides. The whole guide is written out below.

## The guide in text

Maple Street Bookkeeping (made up). It sorts what it is sure about and hands you the rest.

## Step by step

1. ### Chat trigger and AI Agent
   Start a workflow that fires on a chat message, add the AI Agent node and paste the system prompt.
2. ### A fixed list of categories
   Office Supplies, Software & Subscriptions, Meals, Travel, Utilities and **Needs Review**. The agent may only use those.
3. ### Model, memory and a sheet
   gpt-5-mini, Simple Memory, and a Google Sheets tool on Expense Log: Date, Vendor, Amount, Category and Note.
4. ### Send a batch of expenses
   Printer paper and toner, a monthly software charge and a client lunch. Each comes back with a category and a note.
5. ### Save, then review
   Type yes, save those expenses to the sheet. Review the Expense Log before anything is posted.

Businesses and people in the examples are made up (Maple Street Bookkeeping is a made-up business). The steps, screens and wording come from the free lesson and the Stepthrough glossary and prompt library.

## Do it yourself, free

**Build an AI Agent That Categorizes Business Expenses**. Build an AI agent for Maple Street Bookkeeping that sorts business expenses into categories, writes a short note for each and saves them to Google Sheets — chat trigger, AI Agent, system prompt… You do every step yourself in a practice copy of n8n, it checks your work as you go, and “Do it for me” finishes any step you get stuck on. Free, and nothing touches your real accounts.

[Start the free lesson](https://learn.ynteractive.com/modules/n8n-ai-agent-finance)

[Or read the full step-by-step guide](https://learn.ynteractive.com/content/n8n-ai-agent-categorize-business-expenses-google-sheets)

## Related terms

Plain-English definitions, each with an example from a free lesson.

[Expense categorization](https://learn.ynteractive.com/content/glossary/expense-categorization) · [Chart of accounts](https://learn.ynteractive.com/content/glossary/chart-of-accounts) · [AI agent](https://learn.ynteractive.com/content/glossary/ai-agent) · [Human in the loop](https://learn.ynteractive.com/content/glossary/human-in-the-loop) · [API key](https://learn.ynteractive.com/content/glossary/api-key) · [Append row](https://learn.ynteractive.com/content/glossary/append-row) · [Brand voice](https://learn.ynteractive.com/content/glossary/brand-voice) · [Chain-of-thought prompting](https://learn.ynteractive.com/content/glossary/chain-of-thought-prompting)

[The full AI glossary](https://learn.ynteractive.com/content/glossary)

## Related prompts

- [Email subject lines prompt](https://learn.ynteractive.com/content/prompts/email-subject-lines-prompt): Get ten honest subject lines for a finished email, each with preview text and a character count, grouped by approach so you can…
- [Expense categorization prompt](https://learn.ynteractive.com/content/prompts/expense-categorization-prompt): Sort a batch of expenses into your own categories, with a short note each and a Needs Review bucket for anything unclear…
- [Social post ideas prompt](https://learn.ynteractive.com/content/prompts/social-post-ideas-prompt): A four-part ChatGPT prompt for social post ideas built on your services and real customer questions: platform, hook and call to…
- [Client monthly report prompt](https://learn.ynteractive.com/content/prompts/client-monthly-report-prompt): Turn your agency's monthly numbers and work log into a client report: what changed, what you did, what's next. Every number…

[All free prompt templates](https://learn.ynteractive.com/content/prompts)

## From the blog

- [How to Stop ChatGPT from Making Things Up: 5 Guardrails](https://learn.ynteractive.com/content/blog/stop-chatgpt-making-things-up): Stop ChatGPT from making things up with five guardrails: a facts list, a Not stated rule, never-invent rules, a closed category list and a final check.
- [Automate Expense Reimbursement Requests with AI](https://learn.ynteractive.com/content/blog/expense-reimbursement-form-ai): Expense reimbursement automation for small teams: a Lovable form and an n8n AI agent that checks the policy, logs it in Sheets and emails the status.
- [Get Receipts into Google Sheets with AI and n8n](https://learn.ynteractive.com/content/blog/receipts-to-google-sheets-ai): Receipts to Google Sheets without typing: build an n8n agent that reads a receipt photo, picks a category and adds a row. Plus an expense categorizer.

## More visual guides

- [Mistake to Avoid: Letting AI Invent Expense Categories](https://learn.ynteractive.com/content/visual/mistake-letting-ai-invent-categories): A visual tip for bookkeepers: give an AI agent a fixed list of categories plus Needs Review, so it never makes up a category name.
- [5 Steps to an AI Email Responder That Only Writes Drafts](https://learn.ynteractive.com/content/visual/5-steps-ai-email-responder-drafts): A visual guide: an n8n agent reads each new Gmail message and saves a reply as a draft in the same thread. You read it and click Send.
- [5 Steps to an n8n AI Agent That Saves to Google Sheets](https://learn.ynteractive.com/content/visual/5-steps-n8n-ai-agent-google-sheets): A visual guide: build an n8n AI agent that writes social media ideas and saves each one as a Google Sheets row, in 5 steps from the free lesson.

[All visual guides](https://learn.ynteractive.com/content/visual) · [All free tutorials](https://learn.ynteractive.com/content)
