# Using the RIM Document Classification Bot (RIM Bot)

RIM application users may upload a large number of documents frequently. The RIM Document Classification Bot (RIM Bot) can automatically [classify](/en/lr/25787/) new documents, saving your organization time and effort. Auto-classification with the RIM Bot can increase compliance by reducing the number of classification errors and surfacing potential issues sooner.

When [trained](/en/lr/518091/) to use RIM Bot for auto-classification, Vault analyzes documents added to the [Document Inbox](/en/lr/15020/) and populates their _Document Type_, _Subtype_, and _Classification_ fields, with the current status of each document listed in the _RIM Auto-Classification_ column. This column is empty when RIM Bot is not in use.

Once this auto-classification is complete, you can review it before marking it as complete within the Document Inbox.



<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: This feature is automatically enabled in all RIM Vaults with 1,500 or more Steady state documents. See <a href="/en/lr/518091/">Training Auto-Classification Models for RIM Bot</a>.</p>
    </div>
  </div>
</div>




## How to Use Auto-Classification

Once a Trained Model is [deployed](/en/lr/518091/), no additional action is needed on your part.

The following document upload methods result in RIM Bot auto-classification:
  * Uploading a document normally and selecting **Classify documents later**
  * Dragging and dropping documents into the Document Inbox
  * Uploading documents via [Vault Mobile](/en/lr/71324/)
  * Uploading via <a class="external-link " href="https://developer.veevavault.com/" target="_blank" rel="noopener">Vault API<i class="fa fa-external-link" aria-hidden="true"></i></a>
  * Uploading via [Vault Loader](/en/lr/26605/)
  * Uploading via [Vault file staging](/en/lr/38653/)
  * Uploading via [Vault Mobile](/en/lr/77877/)
  * Documents created via [Email Processing](/en/lr/50242/)


### How the RIM Bot Auto-Classifies Documents {#how-the-rim-bot-auto-classifies-documents}

RIM Bot queues and auto-classifies documents according to the following logic:

1. Vault checks the origin of each file and assigns it to a classification queue:
   * Documents uploaded via Vault API, Vault Loader, file staging, or email are placed in a bulk processing queue, ensuring that large imports do not slow down typical auto-classification processes.
   * All other documents, including those uploaded via Vault Mobile, are placed in an express processing queue.
2. The RIM Bot automatically scans each added document. In the Document Inbox, you can see the progress for each document in the _RIM Auto Classification_ field. Each document lists one of the following statuses:
   * **Express Queued…**: The RIM Bot is waiting to process the document from the express queue.
   * **Bulk Queued…**: The RIM Bot is waiting to process the document from the bulk queue.
   * **Done**: The file has finished processing.
3. If the RIM Bot can auto-classify the document, Vault populates the _Type_, _Subtype,_ and/or _Classification_ accordingly. Vault also adds the _RIM Auto-classified_ document tag.



<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: If you cannot see the <em>RIM Auto Classification</em> or <em>Tags</em> fields, <a href="/en/lr/1745/#add">add them as columns</a> in your Document Inbox. If either field is not selectable, contact your Admin to <a href="/en/lr/518091/#enabling-and-creating-the-trained-model-object-record">update the field configuration</a>.</p>
    </div>
  </div>
</div>



While the time to process each document can vary, Vault aims to have each file processed in five seconds once the queued item is started.


### Accepting Auto-Classifications

Once Vault sets the _RIM Auto-Classification_ document field to _Done_, use the checkboxes to select auto-classified documents, then click **Complete** to enter any necessary document fields. You can only complete documents with the same classification in bulk.

Once complete, the uploaded documents are available for additional processing. Vault also tags documents as **RIM Auto-classified**.

### Rejecting an Auto-Classification

If you find that RIM Bot applied an incorrect classification, navigate to the document and select **Reclassify** as normal.

## Auto-Classification Limitations {#auto-classification-limitations}

1. The below RIM document types (and their subtypes and classifications) are not available for auto-classification. Other document classifications may also not be available to the RIM Bot if there are not enough documents to train the RIM Bot on that classification.
    * _IDMP_ (`idmp__v`)
    * _Submission Ready_ (`submission_ready__v`)
    * _Archive_ (`archive__v`)
    * _UDI_ (`udi__v`)
2. The RIM Bot only auto-classifies documents if it is confident in its selection. Documents typically have low confidence when the document could easily be classified as two or more different document types.
3. Some categories of documents cannot be auto-classified. These include:
    * Audio or video files
    * Non-text files, such as ZIP files, statistical files, or database files
    * Non-English files. When enabled, Vault can train on and detect key metadata in documents in non-English, [Vault-supported languages](/en/lr/16678/). Contact <a class="external-link " href="https://support.veeva.com/hc/en-us" target="_blank" rel="noopener">Veeva Support<i class="fa fa-external-link" aria-hidden="true"></i></a> or your Veeva Services representative to enable the Multilingual Model feature.
    * Files where Vault cannot extract text, for example, if the text is too blurry or if the file is password-protected or encrypted.

[1]: #auto-classification-limitations
