Categorize Expenses with Claude AI and Google Sheets
Build a no-code Make workflow that categorizes expense rows with Claude and Google Sheets, with a practical prompt, testing steps, and review safeguards.

Turn an Expense Spreadsheet into a Useful Tracker with Claude AI
When un-categorized expenses land in your sheet one by one, they're easy to ignore. The trouble starts later, when you try to answer simple questions like "How much went to software, travel, or meals?" At that point, you're staring at a list of merchants and amounts with no categories to slice by. Sorting it all manually is fine for a small batch - but it gets old fast once new expenses show up every week.
You can automate the classification step using Make, Claude, and Google Sheets. Make watches for new rows, Claude picks a category from a fixed list, and Make writes that category back into the same row. This workflow doesn't pull amounts from receipts or replace your bookkeeping software - it only classifies the text you already have in the sheet.
This guide covers the setup, a prompt you can adapt, how to test the flow with dummy data, and the checks that help prevent silent mistakes. The example uses 42 made-up expenses and four categories: Food & Drink, Transport, Software, and Office. No live financial data is needed to build or test anything.
What does this expense categorization workflow do?
At a basic level, the workflow takes one expense row at a time and fills in its empty Category cell. Your sheet already has the date, merchant, description, and amount. Claude gets the merchant and description, chooses one permitted category, and returns it so Make can write the result back into the correct row.
The division of labor is intentional:
- Google Sheets stays the source of truth for the expense data.
- Make handles the "watch → call model → update row" mechanics.
- Claude only does the narrow task of picking a category.
Claude isn't asked to calculate totals, determine tax treatment, or guess facts that aren't in the row.
The flow, from new row to category
Conceptually, there are four stages:
- Watch the expense sheet for a newly added row.
- Send relevant text to Claude, including the merchant, description, and the allowed categories.
- Get a constrained response, ideally JSON with one category and an uncertainty flag.
- Update the same row with the selected category.
For example, a row with merchant "Demo Taxi" and a description like "Ride from airport to office" should map to Transport. A row from "Demo Software" with "Monthly design tool subscription" should map to Software.
One important detail: the category needs to be written back to the original row, not appended as a new record. If Make adds a separate entry instead of updating the matching row, your sheet becomes harder to sort, filter, and reconcile. When Make updates the correct row, the Category column sits alongside the original date and amount, so your filters and monthly summaries work normally.
What this automation does not do
This is a categorization workflow, not a full expense-management system. It won't verify whether an expense is legitimate, extract data from receipts, decide if something is tax-deductible, or reconcile a company card statement. Those require different inputs - and sometimes a human or a finance tool.
This is most useful when:
- your expenses are already in consistent rows, and
- your category list is manageable.
If every transaction requires nuanced accounting decisions - or if your descriptions are too vague to classify - automation can still suggest a category, but a person should make the final call.
The demo in this guide is small and intentionally simple: 42 fictional expenses are split across four categories (12 Food & Drink, 9 Transport, 11 Software, 10 Office) with $486.70 in amounts already present in the sheet. Those numbers just show how the sample is organized. They're not a promise that every real dataset will classify perfectly without review.
How should you prepare Google Sheets for expense automation?
Start with a clean table. Use one expense per row, include a header row, and keep field names stable. A practical layout is:
| Date | Merchant | Description | Amount | Category |
|---|---|---|---|---|
| 2026-04-02 | Demo Coffee | Coffee before a client meeting | 4.50 | |
| 2026-04-02 | Demo Taxi | Ride from the airport | 18.20 | |
| 2026-04-03 | Demo Software | Monthly subscription | 29.00 |
Leave the Category cell empty. The automation will fill that column while keeping your existing expense fields untouched. Clear headers also make it easier to verify the field mapping and avoid writing the model's answer into the wrong place.
Keep category definitions separate from transaction rows
Pick your category list before you connect the automation. The example categories are:
- Food & Drink
- Transport
- Software
- Office
For a small sheet, keep this list in a labeled area (or a separate tab). Avoid mixing category notes into the middle of your transaction table. A row-watching trigger can treat those entries as data, and newly inserted rows can quietly mess with the layout.
If you use categories for reporting, define what each one includes. For example, decide where takeaway meals go, and whether a rideshare to a client meeting counts as Transport. Clear boundaries usually beat "vibes," and the model tends to follow them more reliably than informal labels.
A simple rule of thumb: only add a category if it changes reporting decisions. More categories can sound more detailed, but they also create more edge cases. And if two labels are hard for humans to separate, an AI model won't magically become accurate just because both options exist.
Make rows identifiable and safe to update
If your workflow supports it, use a stable row identifier such as an expense ID. If you don't have one, make sure Make can use the row reference from the watch step to update the exact row that triggered the workflow. Don't rely on merchant name alone - same merchant names show up repeatedly.
Also think about historical data. A trigger that watches for new rows usually won't automatically process everything that's already in the sheet. For past expenses, run a separate backfill (preferably on a copy at first), or add the data to a test version. This prevents the first run from unexpectedly changing a large live dataset.
Finally: use fictional data during setup. Merchant names and descriptions can reveal real spending patterns. Before sending real rows to any third-party service, check your organization's data-handling rules and the relevant account settings. The safest first test has no real transactions, credentials, or account identifiers.
How do you connect Make, Claude and Google Sheets?
Create a Make scenario with:
- a Google Sheets trigger (new rows),
- a Claude step (classification),
- and a Google Sheets action (update the triggering row).
Module names and configuration options can vary, so rely on the current Make interface and confirm exactly what each module returns before you map fields.
1. Set up the trigger
Choose the spreadsheet and the expenses tab, then configure the trigger to watch for new rows. Confirm it's watching the correct header row, and that the trigger output includes date, merchant, description, amount, plus some kind of row reference you can use to update the same row.
Keep the trigger narrow. A new expense row should start the workflow. Avoid adding unrelated sheet changes as triggers unless you truly need them. Every extra condition makes it harder to understand why the scenario ran - and easier to accidentally process the same expense more than once.
If your sheet has blank rows or notes below the table, clean those up or configure the trigger so they aren't treated as expenses. If possible, add a condition like: Merchant or Description is present, and Category is empty. That reduces the odds that incomplete rows - or already-categorized rows - get processed again.
2. Send a constrained prompt to Claude
Send the merchant and description to Claude, plus the exact allowed category list. The goal is a narrow task and a predictable response format. A prompt like this works well:
You are categorising expenses. Read the merchant and description for each expense.
Pick exactly one category from this list: Food & Drink, Transport, Software, Office.
Return JSON only in this format:
{"merchant":"Demo Coffee","category":"Food & Drink","uncertain":false}
If the merchant or description is vague, pick your best guess and set "uncertain" to true.
Never invent a category outside the list.
Merchant: {{Merchant}}
Description: {{Description}}
Map the actual fields from the trigger into the placeholders. Don't send the whole spreadsheet if Claude only needs two text fields. Smaller inputs are easier to audit and reduce unnecessary exposure.
The uncertainty flag helps, but it's not magic. A model can be confident and still be wrong. Treat the flag as "check this one," not as a substitute for reviewing the result.
3. Map the response back to the same row
Take Claude's returned category and update the Category column in Google Sheets. Use the row reference from the original trigger to target the correct expense.
Keep date, merchant, description, and amount unchanged unless you've intentionally built another step that updates them.
Depending on the connector, you may need to extract or parse the JSON response before Make can map fields. Run a test and confirm that the category comes through as a plain value like Food & Drink, not a JSON string, an explanatory sentence, or a code block. If the response is malformed, route it to review instead of writing whatever text you get into the sheet.
A safe update preserves the relationship between the row and the result. Before you turn the scenario on, do a test run and verify three things:
- the returned category is one you allowed,
- the correct row was selected, and
- no other expense fields were overwritten.
These checks catch mapping mistakes that are easy to miss if you only look at the final category counts.
How do you test and maintain automated categories?
Don't judge the workflow from one lucky success. Test a small set that includes clear cases, borderline descriptions, and messy data. The real point is to see whether the automation stays predictable when inputs aren't as neat as your demo rows.
Test with fictional expenses first
Start with dummy entries like "Demo Coffee," "Demo Taxi," and "Demo Software," then add examples near the boundaries. For instance: a meal bought during a work trip might still be Food & Drink, while the taxi to get there is Transport.
Also include "confusing" merchants. A general retailer can sell office supplies and personal items, so merchant name alone won't always settle it.
When testing, check that the scenario:
- runs once for each intended new expense,
- chooses only from the approved list,
- writes to the original row (not a different row with the same merchant),
- leaves amount and other existing values unchanged,
- flags vague cases for review when appropriate,
- and handles blank or malformed inputs without quietly creating a misleading category.
In the 42-row fictional test, the results came out to 12 Food & Drink, 9 Transport, 11 Software, and 10 Office, totaling $486.70 in existing amounts. Reproduce a similar test in your own sheet to validate the mapping. Don't assume the same distribution will happen with your real data.
Add a review path for uncertain rows
Your first version should prioritize visibility over total autonomy. A common approach is:
- leave uncertain rows for review, or
- add a separate Review column, or
- route them to a manual check before they're used in reports.
Pick the simplest option your team will actually keep up with.
Review categories that look unusual for a merchant, descriptions that contain very little detail, and any response that doesn't match the allowed list. Also do spot checks on "normal-looking" results after launch. This helps catch systematic errors - like a prompt that keeps sending every subscription to Software even when some of them are actually transit passes or memberships.
If you change the category list or the prompt, rerun the same test examples. Otherwise, you won't know whether the change helped - or just moved errors to a different bucket.
Plan for failures and repeated runs
Automation fails in boring ways: connections expire, a field is missing, the model returns unexpected output, or the sheet is temporarily unavailable. Decide what should happen when a step fails. At minimum, don't mark an expense as categorized unless the update step actually completed.
Also consider duplicates. If the scenario runs twice for the same row, it shouldn't create a duplicate expense or overwrite a category someone already reviewed, unless your rules explicitly allow that. A simple guard like "only process rows where Category is empty" can help, but still test how your trigger and update action behave on retries.
Finally, keep a lightweight record of exceptions and review outcomes. If the same mistake shows up repeatedly, adjust the category definitions or add a targeted rule. Don't keep expanding the prompt forever - at some point, you're building business logic, and a more structured accounting workflow may be the better fit.
Conclusion
Claude can take a lot of the repetitive work out of sorting straightforward expense rows - but the reliability comes from the workflow around it: a clean sheet, a fixed category list, careful row mapping, and a way to review uncertain results.
Start with fictional data. Verify the scenario step by step. Then decide whether it fits your real workflow. If your task starts to turn into accounting judgment rather than text classification, it's worth keeping a person - or a purpose-built finance system - in the loop.