# Categorize your expenses by talking to AI

**The job:** get your expenses in tidy, with their category and tax treatment, without classifying them one by one.

This works through the [Frihet MCP server](/desarrolladores/mcp-server), which knows the expense categories and their deductibility rules. Requires [your agent connected](./conectar-tu-agente).

## Log an expense

```
"Log a €59.99 expense for Adobe Creative Cloud,
software, deductible"
```

Your agent calls `create_expense` with the description, amount, category and `taxDeductible: true`. If you don't state the category, it infers it from the concept.

## Recategorize in bulk

When mis-classified expenses pile up:

```
"Change all 'Other' expenses to 'Software'"
```

The agent updates the records in bulk. Bulk operations **ask for confirmation** before running — you see how many records will be touched and decide.

## Process a batch with fiscal criteria

For a whole batch with the rules applied:

```
"Process these expenses: categorize, apply taxes
and verify deductibility before creating them"
```

This triggers the `expense-batch` prompt: it categorizes, applies the tax treatment for your zone and flags deductibility, all with a final confirmation.

## Expense report by category

```
"Give me March's expense report grouped by category"
```

The `expense-report` prompt groups by category with totals and deductibility — useful before the monthly or quarterly close.

## What's behind it

Frihet works with 8 expense categories, each with its deductibility rule. The MCP's `frihet://config/expense-categories` resource exposes those rules so the agent decides with criteria. Reference in [MCP server → Available tools](/desarrolladores/mcp-server#available-tools).

## Next

- [Close your quarter by chat](./cierre-trimestral-por-chat)
- [Automate your invoicing with your AI assistant](./automatiza-facturacion)

Inside the app: [Log expenses](/gastos/registrar-gastos), [Categories](/gastos/categorias) and [OCR scanning](/gastos/escaneo-ocr) to upload receipts.
