> ## Documentation Index
> Fetch the complete documentation index at: https://equatetravel.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# The classification agent

> How equate sorts every document before anyone opens it — invoices from everything else, agent copies from client copies, and spreadsheets of invoices from the rest.

Supplier inboxes are noisy. Alongside invoices come statements, reminders, itineraries,
ATOL certificates, cover notes and the same invoice sent twice. **Classify** is the first
of equate's three agents — **Classify → [Extract](https://equatetravel.ai/docs/platform/extraction-engine.md) →
[Match](https://equatetravel.ai/docs/platform/matching-engine.md)** — and its job is to decide what each document is
before anything is extracted, matched or charged.

> [card] Classify
>
> Is it an invoice? Which copy? Which supplier's logo is on it?

> [card] [Extract](https://equatetravel.ai/docs/platform/extraction-engine.md)
>
> Reads every field and links it to the page.

> [card] [Match](https://equatetravel.ai/docs/platform/matching-engine.md)
>
> Finds the booking and checks it tier by tier.

## What it decides

**1. Is this an invoice at all?**

A fast, low-cost check reads the first few pages (or the email body) before paying
for a full extraction. Cover notes, itineraries, certificates and statements are
set aside here, instead of being extracted, mistaken for invoices and failing
matching. When the email subject, body or file name already says what the document
is, this check is skipped.

**2. Agent copy or client copy?**

Travel invoices often come as an **agent copy** (with commission and VAT) and a
**client copy** (what the customer sees). The agent copy is what gets processed.
A client copy waits to be paired with its agent copy; if none arrives in time, it's
set aside. A single PDF carrying both is split, and both copies are kept with the
job.

**3. Whose invoice is it?**

The true supplier is often only in the header logo, with the body naming the agency.
Classify reads each logo on its own and names the supplier it belongs to, so
extraction uses that supplier's own rules.

**4. Is this spreadsheet a list of invoices?**

A CSV or Excel file becomes **one job per row** — but only once Classify agrees it's
actually a list of invoices. A contact list or a product catalogue is set aside
rather than fanned out into hundreds of bogus jobs.

## What happens to what it sets aside

Nothing is thrown away. Every document Classify sets aside is listed in **Logs → Files**
with its reason:

| Reason | Meaning |
| - | - |
| **Not an invoice** | A statement, reminder, itinerary, certificate or other non-invoice. |
| **No agent copy** | A client copy whose agent copy never arrived. |
| **No extractable text** | The file had nothing readable to classify. |

A file that isn't an invoice is also **labelled with what it is** — a statement, a
flight update, an itinerary — in the Files log's **Classification** column, so you can
see at a glance what arrived and why it didn't become a job.

Set-aside documents never reach your queues and are never charged: billing counts
[matched bookings](https://equatetravel.ai/docs/guides/billing.md), not documents.

## When it gets one wrong

Open the file in **Logs → Files** and either **process it as an invoice** or **set it
aside as not one**. Both ask for an optional one-line reason, and both are recorded as
training signal, so the same mistake becomes less likely next time.

> [!NOTE]
>
> Classify is cautious by design. If the check itself fails — a model outage, say — the
> document is treated as an invoice and carries on, so a real invoice is never dropped
> on a transient error. At worst it lands in [review](https://equatetravel.ai/docs/guides/reviewing-exceptions.md).

> [card] [The extraction engine](https://equatetravel.ai/docs/platform/extraction-engine.md)
>
> What happens to the documents Classify lets through.

> [card] [Mixed inboxes](https://equatetravel.ai/docs/connectors/inbound-email.md#mixed-inboxes)
>
> Email-level triage that runs before Classify, for shared inboxes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.