5.7.4. Privacy: anonymizing documents sent to the AI
The Privacy tab of an AI configuration hides the personal data of a document before it is sent to the AI provider, and puts the real values back into the answer before the fields are written. The AI reads [PERSON_1] where the page says a name, and the field receives the name.
The personal data is found on the station by ChronoAnonymizer, a local model installed with ChronoScan: the real values never leave the computer and no credits are used. It applies to the AI configurations of the job (OpenAI, Azure OpenAI, DeepSeek, Anthropic through the ChronoScan Hub, a local server and Gemini; see AI configurations per job): the OpenAI and the Gemini configuration windows have the same Privacy tab. Ollama configurations, the AI calls made from scripts and the OCR translation are not anonymized. It is off by default: existing configurations do not change.
What you need
The component Anonymizer of the installation (included in a full installation, folder Bin\anonymizer). Its model runs in a 64-bit process, also for the 32-bit ChronoScan, so it needs 64-bit Windows. If it is missing, the request is not sent and the document records the error.
The OCR of the pages, for configurations that send page images (vision models): the boxes to black out come from it. A page without OCR is not sent.
Read and accept I understand anonymization is not 100 percent safe. Anonymization is automatic: data in unusual formats, poor OCR, handwriting or data inside images may not be detected. The notice must be accepted before anonymization can be turned on; ChronoScan records who accepted it and when.
Turn on Anonymize the document.
With a document open, click the ... button of Preview what will be sent and check the result (see below). Add to Always hide what the detection misses.
Save the configuration and process as usual.
Options of the Privacy tab
The Privacy tab of an OpenAI configuration. The Gemini configuration window has the same tab.
Option
Default
Description
I understand anonymization is not 100 percent safe
off
Required to turn anonymization on. Withdrawing it turns anonymization off. A configuration with anonymization on and this notice not accepted never calls the AI.
Anonymize the document
off
Hides the personal data of the page text and blacks it out on the page images sent to vision models.
Preview what will be sent
Runs the same anonymization on the open document without calling the AI. See below.
Replace with
Placeholders
Placeholders ([PERSON_1], [BANK_ACCOUNT_1]...): the AI can still extract the field and the real value is put back here. Redact ([REDACTED]): nothing comes back.
Keep the supplier's data
on
The issuer's own name, tax ID, address, phone, email and IBAN stay readable: companies are not personal data and many prompts need them. Only when the page OCR has lines and the supplier is clear; otherwise nothing is kept and the status of the document says why. The job's own companies are never taken as the supplier (see Supplier detection without AI).
Kinds of data to hide
the personal ones
People, personal ID numbers, dates of birth, email addresses, phone numbers, postal addresses, bank accounts, payment cards, vehicle plates, passwords and secrets, and special categories (health, beliefs...) are hidden by default. Online identifiers, organizations, company tax IDs and places are shown by default.
Never hide
empty
Values that always stay readable, separated by ; (for example the company's own name or a reference the prompt needs).
Always hide
empty
Values hidden wherever they appear, separated by ; (for example a customer or project name the detection does not know).
If the anonymizer fails
Do not call the AI
When the anonymizer cannot run (not installed, a page without OCR for a vision model...): do not call the AI and record the error on the document, or send the document as it is.
What is sent and what comes back
Text: the text of every page with placeholders. The same value gets the same placeholder on every page of the document. The layout of the text is kept.
Page images (vision models): a copy of each page with the personal data painted black, line by line; the original is never sent. A trigger crop is replaced by the whole painted page.
The answer: the placeholders are replaced by the real values before the fields are written, so the mapping of fields, the AI panel and the test windows show the real data. With page images the hidden fields come back empty, because the image has no placeholder the AI could return.
AI batches: everything built from the text (the cost estimate, the saved request, the batch input) is anonymized, and the answers of a batch are restored when they arrive, even in another session (AI Batches).
The button runs the same anonymization as a real request on the document open in ChronoScan, without calling the AI, and opens a window with the text exactly as it would leave (placeholders highlighted) or the page images with the black boxes, and a table with each placeholder, its kind and its real value. The real values are shown only in that window; the images are kept in a temporary folder that is deleted when the window closes. If the document would not be sent (notice not accepted, a page without OCR for a vision model...), the window says why.
To see on every document of a batch what the anonymizer finds, without any AI configuration, add the processing step described in Entity detection without AI: it marks the data on the page and its Hide view blacks out the same kinds of data this tab hides by default.
Diagnosis
Each document keeps the result of the last request:
sysval_oai_privacy_<alias> (sysval_gemini_privacy_<alias> for Gemini): what was hidden, as counts per kind and number of pages, or the error.
sysval_oai_error_<alias> (sysval_gemini_error_<alias>): "Privacy: the document was not sent to the AI (...)" when the request was stopped.
In the folder of the document, oai.req.<alias>.json (gemini.req.<alias>.json) is the request as it was sent (with placeholders) and oai.vault.<alias>.json (gemini.vault.<alias>.json) the table of placeholders and real values used to restore the answer. Treat that file like the document itself.
Message
Cause and what to do
the Privacy disclaimer ... has not been accepted
Anonymization is on but the notice is not accepted. Accept it in the Privacy tab.
page N has no OCR ...
A vision configuration needs the OCR of the page to find the data on the image. Run the OCR before the AI step.
page N: the personal data model did not run
The model of the anonymizer did not load and only its rules ran, which is not enough to send the document. Reinstall the Anonymizer component.
anonymizer: ...
The anonymizer could not run (component not installed, its process stopped); the rest of the message says why. Install the Anonymizer component.
supplier's data not kept: ...
Not an error: the supplier's data was hidden too, because the page has no lines or the supplier was not clear.