how to set up Mistral AI OCR and extract data from an image in Timetonic.
Timetonic integrates artificial intelligence features that are accessible to users by simple configuration in the automations.
to easily delegate tasks of writing,
summarizing and extracting information with Mistral AI.
in order to optimize your business processes.
The Optical Character Recognition technology abbreviated as OCR with Mistral-AI.
will allow you to extract text data from an image format and as we will see in another tutorial also from the PDF format.
For example,
in this demo,
let's together carry out the extraction of bank information in Lebanon from an image format.
In a specially designed table,
in advance,
columns are inserted to receive the information we will extract.
Let's start configuring our automation with Mistralia.
with of course a column receiving an attachment and a checkbox column converted into a button to trigger the extraction.
I go to Automation,
Automation with AI and I create a new automation.
I name this automation Identifier and I'm going to tell it when my extraction trigger button is activated with a double condition if my attachments field is not empty and of course that my button is well activated.
Then,
I want to perform the task of asking Mistralia and I am going to configure this window.
I enter my API key from my subscription account for Mistral AI and the Organization ID which remains optional.
I choose a model,
and you can find the details of the model in the documentation for the Mistral AI account.
Here,
I'm going to give it a role.
I tell it you are an OCR expert,
particularly in the extraction of banking documents.
For the question,
I'm going to tell him,
you will find in this image the bank information that you must extract in JSON format.
in the following fields and I give it the exact field names corresponding to the fields filled in the columns of my table.
I give it the attachments column it will need to analyze to extract the information.
I select the format in JSON extraction and I'm going to configure the JSON names corresponding to the names of the columns of my table be,
in which the information will be addressed.
I start with the hyphen and then I continue like this creating all my fields.
The configuration of the values coming from the JSON found in its field of destination.
It should be noted that the characters are written in the same way,
whether it's for capital letters,
spaces,
possible hyphens,
everything has to match.
At this stage,
I validate the parameters of my configuration window.
Here I find my automation.
I close this window Let's now test it.
Let's create a new row in which we will insert the image format attachment
that contains the bank information And now,
let's trigger the automation by requesting extraction Amistralia.
The information has just been extracted and we find the elements in each of the fields coming from my piece and I can check the domiciliation information which is correct,
from Lebanon which is also correct.
I validate my file and I have carried out this extraction.
You will have understood it,
how Timetonic makes the use of Mistral AI artificial intelligence accessible.
This feature is transferable to endless use cases.
Test it quickly.