# Adding/Editing Document Types

## Adding or editing document types in DocBits involves several steps. These steps include defining layouts, fields and extraction rules.

### Here is a detailed guide:

#### Accessing Document Types Management

* **Log in:** Log in to DocBits with your administrator rights.
* **Navigate:** Go to Settings.
* **Document Types:** Find the "Document Types" section.

<figure><img src="https://content.gitbook.com/content/XfGlNNBz7kFNkwSj3Awf/blobs/kX7flHtBFQNbsI98nrXD/Bildschirmfoto%202024-05-23%20um%2013.35.39.png" alt=""><figcaption><p>Settings</p></figcaption></figure>

### Adding a new document type

**Create a new document type:**

* Click the "+ New" button.

<figure><img src="https://content.gitbook.com/content/XfGlNNBz7kFNkwSj3Awf/blobs/nPrtNfpEYtMuUdMoaLU2/Bildschirmfoto%202024-05-27%20um%2009.54.46.png" alt=""><figcaption></figcaption></figure>

**Basic information:**

* Enter a name for the new document type (e.g. "Invoice", "Contract", "Report").
* Add a description explaining the purpose and use of the document type.

<figure><img src="https://content.gitbook.com/content/XfGlNNBz7kFNkwSj3Awf/blobs/4Ep4rs4hoJ8xRyjDBo5K/image.png" alt=""><figcaption></figcaption></figure>

**Amount and date format**

* Enter the format for the amount and date

<figure><img src="https://content.gitbook.com/content/XfGlNNBz7kFNkwSj3Awf/blobs/GTeRbitRYqLadptIAVeU/image.png" alt=""><figcaption></figcaption></figure>

**Import Sample Documents**

* Upload sample documents via drag & drop
* At least 10 documents must be uploaded for the training

<figure><img src="https://content.gitbook.com/content/XfGlNNBz7kFNkwSj3Awf/blobs/6BCAQx8glWIIpgcBqtic/image.png" alt=""><figcaption><p>Upload &#x26; Train</p></figcaption></figure>



**Add Groups**

* Click the "Add" button and enter the group name.
* You can also clone an existing document type.

<figure><img src="https://content.gitbook.com/content/XfGlNNBz7kFNkwSj3Awf/blobs/r4PczWlWaJ5fWMpaE0JG/image.png" alt="" width="375"><figcaption><p>Fields &#x26; Groups</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/XfGlNNBz7kFNkwSj3Awf/blobs/mnzOZpPJi3yk5RBPdagW/image.png" alt="" width="279"><figcaption><p>Create New Group</p></figcaption></figure>

**Add fields:**

* Add new fields by clicking "Add".
* Enter the name of the field (e.g. "Invoice number", "Date", "Amount") and the data type (e.g. Text, Number, Date).

<figure><img src="https://content.gitbook.com/content/XfGlNNBz7kFNkwSj3Awf/blobs/msEfB2PLeN9GNK8E0gjt/image.png" alt="" width="375"><figcaption><p>Fields &#x26; Groups</p></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/XfGlNNBz7kFNkwSj3Awf/blobs/Bf4gVyZL20WF5xMGsZ0A/image.png" alt="" width="278"><figcaption><p>Create New Field</p></figcaption></figure>



**Finish**

* Once all the details are entered, click "Finish" and the new document type is created

<figure><img src="https://content.gitbook.com/content/XfGlNNBz7kFNkwSj3Awf/blobs/8uZsYA3wHvBBFd4kFgv6/image.png" alt=""><figcaption></figcaption></figure>



### Edit an existing document type

**Select a document type:**&#x20;

* Select the document type you want to edit from the list of existing document types.
* Under the document type you will find various editing options, for example editing the layout, fields, table columns, etc.

<figure><img src="https://content.gitbook.com/content/XfGlNNBz7kFNkwSj3Awf/blobs/rP9WXhYT917AeMjBF0Vu/image.png" alt=""><figcaption></figcaption></figure>

**More Settings:**

* Click the Edit button next to the document type.

<figure><img src="https://content.gitbook.com/content/XfGlNNBz7kFNkwSj3Awf/blobs/B0iH7EKj7j50MyvW7nJ3/image.png" alt=""><figcaption><p>More Settings</p></figcaption></figure>

* Here you can make further settings for the document type, such as design template, whether a document must be approved before export and many other details.

<figure><img src="https://content.gitbook.com/content/XfGlNNBz7kFNkwSj3Awf/blobs/wJp2Y96i39AtNXx2Ul2c/image.png" alt=""><figcaption></figcaption></figure>

### Define extraction rules

**Define rules:**

* Go to the Extraction Rules section.
* Create rules that specify how to extract data from documents. This may include using regular expressions or other pattern recognition techniques.



**Test rules:**

* Test the extraction rules with sample documents to ensure that the data is correctly recognized and extracted.



**Fine-tuning:**

* Adjust the extraction rules based on the test results to improve accuracy and efficiency.



### Training and Documentation

**Inform users:**

* Inform users of the new or changed document type and provide training if necessary.



**Documentation:**

Update system documentation to describe the new or changed document types and their usage. By carefully setting up and managing document types in DocBits, you can ensure that documents are correctly classified and processed efficiently. This improves the overall performance of the document management system and contributes to the accuracy and productivity of your organization.

