Correspondence Automation#
The natif.ai Correspondence Automation extracts all major entities from any incoming document and classifies it for you:
- Data such as the document's subject, receiver, sender, or payment information
- A classification of the document's content into generic classes
- A classification of the document's sender into generic classes
The workflow provides ocr, extractions, and classification results that can be used for automatic processing.
It is used with the workflow identifier correspondence_automation,
at the processing endpoint
i.e. POST /processing/correspondence_automation.
Supported return values#
As automatically included in the response JSON, unless otherwise specified via include query parameters.
ocr, see OCR Formatclassifications, see Classifications Formatextractions, see below
Credit cost#
A Freemium account allows for up to 100 pages per month, where the cost is 65 credits per page, and 98 credits per document.
Note
A document is usually a bundle of 10 pages.
Extractions formats#
The value of the extractions key for this workflow may have one of the following forms, depending on
the detected document_type.
For document_type = correspondence
All supported fields
schema_version: integer (possible values: [1])document_type: string (possible values: ['correspondence'])receiver: Receivercompany_name: StringExtractiontitle: StringExtractionfirst_name: StringExtractionlast_name: StringExtractionaddress: Addressaddress_line_1: StringExtractionaddress_line_2: StringExtractioncity: StringExtractionzip: StringExtractioncountry: CountryExtraction
sender: Sendername: StringExtractionaddress: Addressaddress_line_1: StringExtractionaddress_line_2: StringExtractioncity: StringExtractionzip: StringExtractioncountry: CountryExtraction
phone: StringExtractionfax: StringExtractionurl: StringExtractione_mail: StringExtractioncategory: SenderCategoryExtraction
date: DateExtractionpayment_information: PaymentInformationreceiver: StringExtractionbanking_information: array of BankingInformationvalidation_problem: boolean (deprecated)note: string (deprecated)confidence: number (deprecated)bbox_refs: array of Referencepage_num: integerbbox_id: integer
iban: StringExtractionbic: StringExtraction
reference: StringExtractionamount: FloatExtraction
subject: StringExtractiondoc_category: DocCategoryExtraction
Note
For a reference of the structure of each of the extractions objects see
Extracted Values.
Also, for accessing individual processing results or artifacts, have a look
at Fetch Processing Results and Artifacts.