×
Menu
Index

5.7. Generative AI integration

ChronoScan can send the text (and optionally the images) of a document to a generative AI model and get back the data of the document as a JSON structure that is written to the fields and tables of the job. No templates or regular expressions are needed: each field is described in plain language.
What the AI can do
Supported providers
The available models depend on your license and are listed in the configuration window. Models are retired by the providers from time to time; ChronoScan shows an AI Model Deprecation Warning when a configuration uses a model that is about to be withdrawn, so do not hard-code model names in your documentation or scripts.
How it is configured
Each job can have one or more AI configurations (provider + model + prompts + JSON template + field mapping), and each document type can choose which configuration it uses. Configurations can be copied and converted between providers. The main concepts are:
Example prompts for a basic invoice application: Example prompts for basic invoice processing application. The AI Quick Start Guide (AI panel of the ribbon) walks through the configuration with your own document, and the AI prompts button of the Data Entry tab lets you try sample prompts on the selected document.
Values written by the AI do not overwrite values read from OCR zones or typed by the user; if the AI must take precedence, run it before the field reading stage or disable the zone. The AI can be disabled per document type and per masterkey.
AI Assistants
Per-field AI Assistants match what the AI (or the OCR) has read against a master list (customers, suppliers, items...) using a vector index and a dictionary, and return the canonical value and its code. They are enabled per field in the field properties; the index is rebuilt from the command line with -rebuild_ai_assistant or from a script. The Invoice AI sample job (Sample Jobs button of the Batches panel) shows a complete setup.
How it is paid
Privacy and data flow
What is sent: the OCR text of the document and/or the page images, with the prompt. Never your databases or other batches. Where it goes: directly to the provider with your key, or through the ChronoScan HUB to the provider when credits are used; with Azure OpenAI the data stays in your Azure subscription and region, and with Ollama nothing leaves your network. The paid APIs of OpenAI, Azure and Google do not use API data to train their models, according to their business terms. ChronoScan stores the result (the fields) in your batch; the HUB records consumption metrics and errors, never document content.
Google Document AI, a pre-trained invoice model of Google Cloud, is a separate integration: see Google Document AI for invoice processing.