# Import Decision Tree

### Importing a Rule

First, make sure you're logged in and navigate to the **Bussiness Rules** category on the sidebar. &#x20;

Importing a rule can have one of two meanings:

* [Importing a new Rule](#1.-importing-a-new-rule)
* [Importing a new version of an existing Rule](#2.-importing-a-new-version-of-an-existing-rule)&#x20;

#### 1. Importing a new Rule

To import a new Rule navigate to the **Bussiness Rules** category through the sidebar or select a folder you want the rule imported into in the **Folders** manager.

Click the **Import Rule** button on the top right. Shown in the image below.

<figure><img src="https://437457296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MN4F4-qybg8XDATvios%2Fuploads%2FjWwJK2rIGF0rblS6O68X%2Fimage.png?alt=media&#x26;token=12d318ef-e8e0-4914-bfbe-6e293cb563d7" alt=""><figcaption></figcaption></figure>

You will be prompted to drop or choose a file on your system containig the rule.

<figure><img src="https://437457296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MN4F4-qybg8XDATvios%2Fuploads%2F9faxQuejNDXe7jklj8b0%2Fimage.png?alt=media&#x26;token=a96fea85-3e22-48d9-9afb-43f14d5e6ff1" alt=""><figcaption></figcaption></figure>

Drag and drop your rule file into the dashed area or click within it to open a File Explorer. For Decision Trees, the rule file can only have the format of JSON.

<figure><img src="https://437457296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MN4F4-qybg8XDATvios%2Fuploads%2Ffsgpcwaw2pDaCMWnfxVM%2Fimage.png?alt=media&#x26;token=80e805ae-01f9-4e6e-8b3a-ab30d09b5a38" alt=""><figcaption></figcaption></figure>

Once your rule file has been selected, click the **Import** button.

#### 2. Importing a new version of an existing Rule

To import a new version of an existing Rule

<figure><img src="https://437457296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MN4F4-qybg8XDATvios%2Fuploads%2FcANPSPCQmQSw7RMD6dx3%2Fimage.png?alt=media&#x26;token=4690e5bf-4e07-4ec4-8a8b-c7c464c469d2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://437457296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MN4F4-qybg8XDATvios%2Fuploads%2Fd14UdWR7nLoPt0FVEPj1%2Fimage.png?alt=media&#x26;token=a638cfb9-591e-4947-bc6b-3db87b67e46f" alt=""><figcaption></figcaption></figure>

You will be prompted with the following window.

<figure><img src="https://437457296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MN4F4-qybg8XDATvios%2Fuploads%2FyLcCTPof2g5BGvMzdUvN%2Fimage.png?alt=media&#x26;token=357336ab-daec-4a24-b613-88f6a0b39eb5" alt=""><figcaption></figcaption></figure>

First, select whether you would like:

* To import the rule as a new version of the existing rule.

or

* To **overwrite** the latest version of the existing rule.

{% hint style="danger" %}
Overwriting the latest version **cannot be undone**. The overwritten version will be permanently lost.
{% endhint %}

After selecting the method of import, drag and drop your rule file into the dashed area or click within it to open a File Explorer. For Decision Trees, the rule file can only have the format of JSON.

<figure><img src="https://437457296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MN4F4-qybg8XDATvios%2Fuploads%2F2urwq9BkPxSlrIxfUgyq%2Fimage.png?alt=media&#x26;token=ccb61dbf-8b79-46ce-ae7e-2e4e9b1eba56" alt=""><figcaption></figcaption></figure>

Once your rule file has been selected, click the **Import** button.
