# What the assistant can do

The Frihet AI assistant is powered by **Google Gemini** and features **50+ tools** to accelerate your daily tasks. From creating documents to calculating quarterly taxes, the assistant operates with real business context. Discover all [Frihet AI capabilities](https://www.frihet.io/es/features).

## Capabilities by category

### Create documents by natural language

Write naturally and the assistant automatically creates invoices, expenses, and quotes:

- **Invoices**: "Create invoice for Juan Garcia for 500 euros for web design"
- **Expenses**: "Record expense of 45 euros for Office supplies"
- **Quotes**: "Quote to Client SL: 3 hours of consulting at 100 euros"
- **Recurring invoices**: "Create monthly recurring invoice for Acme Corp for 500 euros for hosting"
- **Recurring management**: "List my active recurring invoices"
- **Cancel recurring**: "Cancel the maintenance recurring for ClientX"

The assistant extracts clients, concepts, quantities, and amounts. You always review before confirming.

### Data search and analysis

Consult your data with natural questions:

- "How much have I invoiced this quarter?"
- "Who is my best client?"
- "How many overdue invoices do I have?"
- "Summary of expenses by category"
- "What is the profitability of my client Acme Corp?"
- "Record a partial payment of 500 euros for invoice F-2026-050"

The assistant returns **KPI cards**, **inline charts**, or text responses with the context you need.

### Export data

Export your data directly from the chat, without navigating to any screen:

| Tool | What it does | Example |
|-------------|----------|---------|
| `exportToCSV` | Exports invoices, expenses, quotes, clients, or products to CSV | "Export my Q1 invoices to CSV" |
| `exportToPDF` | Generates a PDF with your data | "Export the March expense summary to PDF" |

More details in [Exporting data from chat](./exportar-datos).

### Taxes and tax compliance

The assistant understands the Spanish tax system (VAT, IGIC, IRPF) and can calculate your quarterly obligations:

| Tool | What it does | Example |
|-------------|----------|---------|
| `calculateModelo303` | Calculates quarterly VAT (Modelo 303) | "Calculate my Modelo 303 for Q1" |
| `calculateModelo130` | Calculates quarterly IRPF (Modelo 130) | "How much IRPF do I owe this quarter?" |
| `getTaxCalendar` | Shows upcoming tax deadlines | "When do I have to file taxes?" |

The assistant automatically applies the correct rates according to your tax zone (Peninsula, Canary Islands, Ceuta/Melilla) and knows VeriFactu rules. More details in [Taxes and tax compliance](./impuestos-ia).

### Bank reconciliation

Connect your bank and let the assistant perform automatic matching:

| Tool | What it does | Example |
|-------------|----------|---------|
| `reconcileTransactions` | Matches bank movements with invoices and expenses | "Reconcile this week's movements" |
| `getUnreconciledTransactions` | Lists unmatched movements | "Which bank movements are not reconciled?" |

### Bulk operations

Update or delete multiple records at once. All bulk operations require **explicit confirmation** before execution:

| Tool | What it does | Example |
|-------------|----------|---------|
| `bulkUpdateInvoices` | Marks multiple invoices as paid or changes their status | "Mark all invoices from January as paid" |
| `bulkUpdateExpenses` | Changes the category of multiple expenses at once | "Change all 'Other' expenses to 'Software'" |
| `bulkDeleteDrafts` | Deletes all draft invoices or quotes | "Delete all draft quotes" |

More details in [Bulk operations](./operaciones-masivas).

### Document scanning (OCR)

Upload photos of receipts, invoices, or documents. The assistant:

- Extracts data automatically
- Recognizes concept, amount, date
- Creates expenses or invoices directly
- Supports PDF, JPG, PNG

### Financial summaries

Get quick analysis:

- Month-to-month comparisons
- Revenue projections
- Profitability analysis by client
- Business health metrics (active clients, retention)
- Recording of partial or total payments
- Upcoming due date alerts

## Chain actions in a single prompt

The assistant supports **workflow chaining**: executing multiple actions in sequence with a single message.

```
"Create an invoice for Acme SL for 2,000 euros for consulting and send it by email"
```

The assistant:

1. Creates the invoice with the specified data
2. Generates the PDF
3. Sends the email to the client

Other chaining examples:

```
"Export my Q1 invoices to CSV and calculate Modelo 303"
```

```
"Mark January invoices as paid and generate a summary for the month"
```

```
"Reconcile bank movements and show me the ones that remain unmatched"
```

The assistant executes each step in order and shows you the result of each one.

## Inline charts

The assistant generates visualizations directly in the chat:

- **Breakdown bars** — Expenses by category, invoicing by client
- **Status donut** — Proportion of paid, pending, overdue invoices
- **Trend line** — Evolution of income or expenses month by month

Charts use a monochrome design aligned with Frihet's visual identity. They appear automatically when the response contains comparable financial data.

## Semantic cache

Identical queries return cached responses for 5 minutes. If you ask the same thing twice in a row, the second response is instant. The cache is automatically invalidated when records are created, modified, or deleted.

## Quick commands

Use **slash commands** for direct actions:

| Command | Function |
|---------|---------|
| `/factura` | Quickly create invoice |
| `/gasto` | Record expense |
| `/pendientes` | View invoices to collect |
| `/resumen` | Financial summary for the month |
| `/clientes` | List clients and statistics |
| `/ayuda` | View all commands |
| `/meta` | Monthly invoicing target |
| `/impuestos` | Estimated tax simulator |
| `/cobros` | Latest payments received |
| `/recurrentes` | Active recurring invoices |
| `/rentabilidad` | Profitability by client |
| `/exportar` | Export data to CSV or PDF |
| `/conciliar` | Reconcile bank movements |
| `/modelo303` | Calculate quarterly VAT |
| `/modelo130` | Calculate quarterly IRPF |

## All tools (50+)

Complete reference of assistant tools, organized by category:

| Category | Tools | Description |
|-----------|-------------|-------------|
| **Invoices** | createInvoice, listInvoices, getInvoice, updateInvoice, deleteInvoice, searchInvoices | Complete invoice CRUD |
| **Expenses** | createExpense, listExpenses, getExpense, updateExpense, deleteExpense | Complete expense CRUD |
| **Clients** | createClient, listClients, getClient, updateClient, deleteClient | Complete client CRUD |
| **Products** | createProduct, listProducts, getProduct, updateProduct, deleteProduct | Complete product CRUD |
| **Quotes** | createQuote, listQuotes, getQuote, updateQuote, deleteQuote | Complete quote CRUD |
| **Recurring** | createRecurring, listRecurring, cancelRecurring | Recurring invoices |
| **Payments** | recordPayment, listPayments | Record and query collections |
| **Export** | exportToCSV, exportToPDF | Export data to CSV or PDF |
| **Taxes** | calculateModelo303, calculateModelo130, getTaxCalendar | Tax calculations and calendar |
| **Banking** | reconcileTransactions, getUnreconciledTransactions | Bank reconciliation |
| **Bulk Operations** | bulkUpdateInvoices, bulkUpdateExpenses, bulkDeleteDrafts | Batch update and delete |
| **Analysis** | getSummary, getKPIs, getProjections | Summaries and metrics |
| **Documents** | scanDocument, extractData | OCR and data extraction |

## Limits per plan

The AI assistant has message limits based on your plan:

| Plan | Messages/month | Document analysis | History |
|------|--------------|------------------------|-----------|
| **Free** | 20 | Yes | 7 days |
| **Pro** | 100 | Yes | 90 days |
| **Premium** | 500 | Yes | No limit |

Limits reset on the first day of each month.

## Persistent history

The assistant maintains **conversation history**:

- Access at any time from the sidebar
- Context is preserved across sessions
- You can refer back to previous references
- Data syncs across all your devices

## Privacy and security

- **Your data is never used to train models** — We only process with Gemini in real time
- End-to-end encryption for document uploads
- Conversations are stored locally in your account
- You can delete history at any time

## Current limitations

The assistant **cannot**:

- Modify existing clients (it can only suggest)
- Create bulk email campaigns

## Extend capabilities with the API

:::info For developers
You can extend the capabilities of the Frihet AI assistant with programmatic tools:

- **MCP Server** — Connect Claude, Cursor, or Windsurf directly to your ERP via [@frihet/mcp-server](https://www.npmjs.com/package/@frihet/mcp-server). 157 tools to create invoices, record expenses, and query data in natural language from your IDE.
- **REST API** — Build custom AI flows using the [API endpoints](/desarrolladores/api-rest). Ideal for processing pipelines, integrations with your own LLMs, or custom automations.
- **Webhooks** — Trigger actions when events such as `invoice.created` or `expense.created` occur. Connect with external AI models for automatic classification, anomaly detection, or smart alerts. See [webhooks documentation](/desarrolladores/webhooks).

Refer to the [developers section](/desarrolladores) for the complete reference.
:::

---

**Next step:** [Create invoices by text](./crear-facturas-por-texto)
