bolt-lightningQuick start

Get Typless up and running in 5 minutes!


Typless is an AI-powered document extraction platform for automating manual data entry from any document. With an easy-to-use API, you can extract data with a single call in a matter of seconds.

1. Create a new document type

Before you start extracting data, you need to define a document type.

  1. Navigate to the Dashboard pagearrow-up-right and click on the New document type button in the top right corner of the table.

  2. Next, select the Simple invoice template and click Create document type. This will create a new document type with the name simple-invoice and the following fields:

  • supplier_name

  • invoice_number

  • pay_due_date

  • issue_date

  • total_amount

Creating a document type

2. Get your API key

To use the Typless API, you need to authorize your requests with an API key. The Authorization header for your API key is: Token YOUR-API-KEY (Loginarrow-up-right if you do not see one) To obtain the API key, visit the Settings pagearrow-up-right.

Getting your API key

3. Adding a new supplier

Typless is a tool for automation. That's why you need to fill the dataset and train it first. To automate a new supplier, you need first to add its invoices to the data setto first add its invoices to the data set. Download an invoice from Amazing Company:

Amazing company - downloadarrow-up-right.

circle-check

The dataset is created by uploading an original file with the correct value for each field defined inside the document type:

chevron-right1 Open file as base64 string (Lines 1-7)hashtag

Open the file and encode it as a base64 String. Make sure you are pointing to the directory with the file.

chevron-right2 Specify your payload with the needed fields (Lines 11-38)hashtag
  • file - base64 encoded file

  • file_name - Name of the file

  • document_type_name - the name of the document type we want to add the supplier to

  • learning_fields - fields with the correct values used for training

chevron-right3 Specify headers (Lines 34-38)hashtag

Add all the needed request headers.

chevron-right4 Send the request (Lines 46-48)hashtag

Send the request and make sure that everything went smoothly.

Response:

You have just added your first document to your data set!

4. Execute training

To build the model for extraction, you need to trigger the training. Go to the Dashboard pagearrow-up-right, look for the simple-invoice document type in the list, and click on the ⚙️ settings icon.

Starting the simple-invoice model training

Wait a few moments for the training to finish. You can refresh the status by clicking on the refresh button in the top left part of the table. After the training status says Models trained, the model is ready for data extraction.

5. Extract data from documents

After the training is finished, you can start precisely extracting data from documents from trained suppliers. Download another invoice from Amazing Company:

Amazing company - downloadarrow-up-right.

circle-info

Need a more in-depth explanation of the response? You can read about it here.

Extract the data:

chevron-right1 Open file as base 64 string (Lines 4-7)hashtag

Open the file in a binary mode and correctly decode it into a base64 string. Make sure that your file is in the same directory as the script.

chevron-right2 Create Request Payload (Lines 11-15)hashtag

Create request payload with all the required parameters:

  • file

  • file_name

  • document_type_name

chevron-right3 Specify headers (Lines 16-20)hashtag

Make sure that the Content-Type is set as application/json

chevron-right4 Authorize with your API key (Line 19)hashtag

If the API key is not filled in, you can get it at https://app.typless.com/settings/profilearrow-up-right

chevron-right5 Execute the request (Lines 24-25)hashtag

Response:

For each of the defined fields, you get an object inside extracted_fields. Every field has up to 5 best-predicted value blocks with coordinates, recognized value, and confidence score. The values are always in a string format.

circle-check

Congratulations! You just successfully trained and extracted data with Typless. You can now use it to automate manual data entry from any of your invoices.

What’s Next

Now you know the basic concepts of Typless, you can search for some pre-made use cases with examples that can help you satisfy your project requirements and get up and running in a couple of minutes!

Overview →

Last updated