# Adding/Editing Document Types

{% embed url="<https://youtu.be/pFz_6tvNlU4>" %}
DocBits Document Types Explained: Create, Configure & Assign Processing Settings
{% endembed %}

## 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="/files/l8zlKiOYnvRW9fqxBp31" alt=""><figcaption><p>Settings</p></figcaption></figure>

### Adding a new document type

**Create a new document type:**

* Click the "+ New" button.

<figure><img src="/files/gok5SsN0HsQ7LxosXc0A" 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="/files/MRQV734OjtcMR6MATNn2" alt=""><figcaption></figcaption></figure>

**Amount and date format**

* Enter the format for the amount and date

<figure><img src="/files/fjLT96ZoI7EdI2YjbM7q" 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="/files/PTwQJsxGtEAVhaDCUhqR" 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="/files/yjqlZL5509j4WLmUxNFF" alt="" width="375"><figcaption><p>Fields &#x26; Groups</p></figcaption></figure>

<figure><img src="/files/6OdTVHfmkLM7XHuHHvYn" 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="/files/zlZGcLvQUbeKdKCbdmP3" alt="" width="375"><figcaption><p>Fields &#x26; Groups</p></figcaption></figure>

<figure><img src="/files/jxj8qHjJNRExrTfbiC6U" 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="/files/TndCZFTxFi6iAoCUenuW" alt=""><figcaption></figcaption></figure>

### Edit an existing document type

**Select a document type:**

* 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="/files/0nEnbwuIx1GrKb9JCF9z" alt=""><figcaption></figcaption></figure>

**More Settings:**

* Click the Edit button next to the document type.

<figure><img src="/files/b7rsSOaGnH5hRdlGI5yU" 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="/files/1HmTza9174VU3Uie9maw" 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.docbits.com/administration-and-setup/settings/global-settings/document-types/adding-editing-document-types.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
