📥 Intelligent PDF Extraction with Mistral AI & TimeTonic
The OCR (optical character recognition) of French artificial intelligence Mistral AI is now natively integrated into TimeTonic, allowing you to automate the extraction of banking data from a PDF (bank details, statements, etc.).
Objectives :
✅ Automatically convert a PDF into readable text using OCR.
✅ Identify and structure key information: IBAN, BIC, account holder, etc.
✅ Inject this data into the corresponding fields in your database—without copying and pasting or errors.
Benefits :
🕒 Time savings: no more manual data re-entry.
🔐 Reliability & security: drastically reduced errors and standards-compliant processing.
🇫🇷 Sovereignty: 100% French AI power, hosted in the EU.
Mistral has just been recognized as the best OCR solution in the world, take advantage of this opportunity to make your business processes more reliable in TimeTonic !
🔁 Two-step process:
Step 1️⃣ – Extract OCR text from PDF
This first automation turns a PDF file into raw text that AI can process.
⚙️ OCR Automation Setup
- When: trigger on field modification
OCR PDF
- If:
OCR PDF
is checked ✅RIB PDF
is not empty
- Then: action Process Document with Mistral AI OCR
1. Extract text from the PDF via OCR:
- Use the action Process Document with Mistral OCR.
- Provide the PDF (stored in a file field) + your API key.
- Store the result in a SmartText field (raw OCR result in Markdown JSON).
Field | Description |
---|---|
1️⃣ API Key | Paste your Mistral API key (required) |
2️⃣ Document | Field containing the PDF to analyze (RIB PDF for example) |
3️⃣ Output field | SmartText field to store the OCR text (RIB text ) |
💡 Result: the PDF content is automatically converted to Markdown text stored in your field.
Step 2️⃣ – Extract structured data from the OCR text using Mistral
Once the text content is extracted from the PDF with Mistral OCR (stored in RIB text
), you'll now ask Mistral to analyze this text and extract the banking data in structured JSON format.
⚙️ "Ask Mistral AI" Automation Configuration
🔄 Trigger
- When: when the field
Extract RIB Text IA Mistral
is checked. - If:
Extract RIB Text IA Mistral
is checked ✅ andRIB text
is not empty - Then: action Ask Mistral AI
🧾 Ask Mistral AI Action Setup
Field | Configuration |
---|---|
API Key | Your Mistral API key |
Model | pixtral-large-latest (ideal for this task) |
AI Role Description | "From OCR text extracted from a PDF into JSON, you must extract banking information." |
Question | "Extract the following fields in JSON: IBAN, BIC, CodeBanque, CodeGuichet, NumCompte, CLE, Domiciliation, Titulaire, AdresseTitulaire, Devise. OCR content below: $RIB text" |
exemple :
"You should find the banking information in an OCR, to be extracted in JSON format, in the following fields:
IBAN: The IBAN, separated by spaces every 4 characters to improve readability
BIC: The BIC / Swift code
CodeBanque: The bank code
CodeGuichet: The branch code
NumCompte: The bank account number
CLE: The key
Domiciliation: The direct debit, in text form
Titholeur: The name of the account holder
AdresseTitholeur: The address of the account holder, in text form
Devise: The currency
The content of the OCR is below.
Insert your dynamic value from the $RIB text field here."
➡️ Response format: JSON with destination field
✅ Enable option: JSON with destination field
Then configure each match between the JSON key you ask for and the target field in TimeTonic:
JSON Key | Target Field in TimeTonic |
---|---|
CodeBanque |
Bank Code |
CodeGuichet |
Branch |
NumCompte |
Account Number |
CLE |
Key |
Devise |
Currency |
Titulaire |
Account Holder – Name |
AdresseTitulaire |
Account Holder – Address |
IBAN |
IBAN |
BIC |
BIC |
Domiciliation |
Bank Address |
✅ Pro Tips for Success
- Always use consistent property keys (no accents, no spaces, use camelCase)
- Field names must match exactly in:
- Prompt question
- JSON keys
- TimeTonic column names
➡️ Final Step
Once a user checks Extract RIB Text IA Mistral
, RIB data will be extracted automatically and filled into the right columns, ready to use or export!