# How Cortena reads an invoice

From capture to coded lines: fields, VAT, and confidence.

When an invoice lands in Cortena, extraction runs first, then coding.

![Two-agent invoice pipeline: extract then code](https://help.cortena.ai/assets/img/help/product/invoice-two-agent-pipeline.png)

## Capture

Invoices arrive from email, upload, drives, or e-invoice channels. The original document stays attached.

## Extraction and coding

Header fields (supplier, dates, totals) and line items are read, then coded against your chart of accounts and guidelines.

![Invoice reading AI: fields and line coding](https://help.cortena.ai/assets/img/help/product/invoice-reading-ai.png)

## Confidence

Low-confidence fields surface in review so you correct once. Agents learn from those corrections for the next invoice.
