# Automate your invoicing with your AI assistant

**The job:** issue invoices without opening the app or filling in forms. You dictate the invoice to your agent and it creates, calculates and sends it.

This works through the [Frihet MCP server](/desarrolladores/mcp-server) (or the [REST API](/desarrolladores/api-rest) if you prefer code). Requires [your agent connected](./conectar-tu-agente).

## Create an invoice

```
"Create an invoice for TechStart SL, 40 hours of consulting
at €75/hour, due March 1st"
```

Your agent calls `create_invoice`: it detects the client (or creates one), adds the line item, applies 21% VAT and calculates the total. It shows you the draft before saving.

## Chain actions in one prompt

No need to go step by step. A single message can create and send:

```
"Invoice Acme SL €2,000 of consulting and email it to them"
```

The agent creates the invoice (`create_invoice`), generates the PDF and sends it (`send_invoice`) in sequence.

## Recurring invoicing

```
"Create a monthly recurring invoice to Acme Corp for €500 of hosting"
```

And to manage them:

```
"List my active recurring invoices"
"Cancel the maintenance recurring invoice for ClientX"
```

## Collect and follow up

```
"Mark invoice F-2026-050 as paid"
"Show me all overdue invoices sorted by amount"
```

To chase unpaid invoices there's a guided flow: ask *"Follow up on overdue invoices"* and the agent runs the `overdue-followup` prompt — it groups by client and drafts the collection messages.

## What's behind it

The MCP's 12 invoicing tools cover the full cycle: create, send, mark paid, credit note, late fee and EN16931 e-invoice. The reference is in [MCP server → Available tools](/desarrolladores/mcp-server#available-tools).

## Next

- [Categorize your expenses by talking to AI](./categorizar-gastos)
- [Close your quarter by chat](./cierre-trimestral-por-chat)

More on invoices inside the app: [Invoices](/facturacion/facturas) and [Recurring invoices](/facturacion/facturas-recurrentes).
