▶ Stepthrough All tutorials Blog Glossary Prompts Videos Visual guides Start Learning Free

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.

  1. n8n for bookkeeping. An AI agent that categorizes expenses. Maple Street Bookkeeping (made up). It sorts what it is sure about and hands you the rest.
    Slide 1 of 7
  2. 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. Screenshot: n8n AI Agent node with a system message written for Maple Street Bookkeeping.
    Slide 2 of 7
  3. Step 2. A fixed list of categories. Office Supplies, Software & Subscriptions, Meals, Travel, Utilities and Needs Review. The agent may only use those.
    Slide 3 of 7
  4. Step 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. Screenshot: n8n Google Sheets tool set to append rows to the Expense Log spreadsheet, mapping each column.
    Slide 4 of 7
  5. Step 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.
    Slide 5 of 7
  6. Step 5. Save, then review. Type yes, save those expenses to the sheet. Review the Expense Log before anything is posted. Screenshot: Expense Log sheet filled in by the agent: office supplies, software and a client lunch, each categorized.
    Slide 6 of 7
  7. Build the categorizer in a practice copy of n8n. AI Expense Categorizer Agent. 69 steps, about 12 minutes. Free at learn.ynteractive.com.
    Slide 7 of 7

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

Or read the full step-by-step guide

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

The full AI glossary

All free prompt templates

From the blog

All visual guides · All free tutorials