Bulk Operations
Update or delete multiple records at once from the chat. All bulk operations require explicit confirmation before execution.
Available Tools
| Tool | What it does | Affected records |
|---|---|---|
bulkUpdateInvoices | Changes the status of multiple invoices | Invoices |
bulkUpdateExpenses | Changes the category of multiple expenses | Expenses |
bulkDeleteDrafts | Deletes invoice or quote drafts | Draft invoices, draft quotes |
Update Invoices in Bulk
Mark as Paid
"Marca como pagadas todas las facturas de enero"
The assistant:
- Searches for all January invoices with
sentoroverduestatus - Shows a summary: number of invoices, total amount, list of clients
- Asks for confirmation
- Updates the status to
paidand records the collection date
Change Status
"Cambia a enviadas todas las facturas en borrador de Acme SL"
The assistant searches for the drafts of the specified client, shows the summary, and waits for confirmation.
Filters you can use
- By period: "from January", "from Q1", "of this month"
- By client: "from Acme SL", "from Juan Garcia"
- By status: "in draft", "pending", "overdue"
- By amount: "over 500 euros", "under 100 euros"
Update Expenses in Bulk
Change Category
"Cambia todos los gastos de 'Otros' a 'Software'"
The assistant:
- Searches for all expenses with category "Otros"
- Shows how many there are and the total amount
- Asks for confirmation
- Updates the category of all to "Software"
Other examples
"Marca como deducibles todos los gastos de transporte"
"Cambia la categoría de los gastos de 'Servicios' de enero a 'Consultoría'"
Delete Drafts
Delete Draft Invoices
"Elimina todos los borradores de facturas"
The assistant:
- Counts existing drafts
- Shows the list with client, amount, and date
- Asks for confirmation with a clear message: "X draft invoices totaling Y EUR will be deleted"
- Deletes after your confirmation
Delete Draft Quotes
"Elimina todos los presupuestos en borrador"
Same flow: list, summary, confirmation, execution.
Confirmation Flow
All bulk operations follow this flow:
- The assistant searches for records matching your request
- Shows a summary with the quantity, total amount, and affected records
- Asks for explicit confirmation — "Do you confirm this operation?"
- Executes the operation only after you confirm
- Shows the result — how many records were updated or deleted
If you do not confirm, the operation is canceled without changes.
Example Dialog
Tú: "Marca como pagadas todas las facturas de febrero"
Asistente: "He encontrado 8 facturas de febrero por un total de 12.340,00 EUR:
- F-2026-012 — Acme SL — 3.200,00 EUR
- F-2026-013 — Design Co — 1.500,00 EUR
- ...
¿Confirmas marcar las 8 como pagadas?"
Tú: "Sí"
Asistente: "Hecho. 8 facturas marcadas como pagadas."
Undo
Bulk operations cannot be undone automatically. If you need to revert a change, you can:
- Use the same command with the previous status: "Change February invoices to sent"
- Edit each record individually from the interface
Draft deletions are permanent. The assistant warns you before executing.
Security
- Only records in draft status can be deleted (never sent, paid, or canceled invoices)
- Invoices with an active VeriFactu chain cannot be deleted
- Explicit confirmation is required in all cases
- The activity log records who executed the operation and when
Next step: Upload documents to chat