> For the complete documentation index, see [llms.txt](https://docs.decisionrules.io/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decisionrules.io/doc/v1/decision-tables/import-and-export-rule/import-decision-table.md).

# Import Decision Table

## Importing a Rule

Importing a rule in DecisionRules can involve either:

* **Importing a new rule**
* **Importing a new version of an existing rule**

### Importing a New Rule

You can import a new rule through either the folder sidemenu or the **Rules** section of DecisionRules:

* **Folder sidemenu**: Right-click the folder where you want to import the rule (e.g., Home), and choose **Import**.
* **Rules section**: In the **Rules** section, click the **Import** button in the top-right corner.

<figure><img src="/files/2ITw4XicNuKPsSjmKYdr" alt=""><figcaption><p>Import rule</p></figcaption></figure>

You will then be prompted to drag and drop or choose a file from your system that contains the rule.

* Drag and drop your rule file into the designated dashed area, or click within the area to open a file explorer.
* Supported formats for Decision Tables include **JSON** and **XLSX**.

<figure><img src="/files/RXIZ5y8bpv7uKh4kbsB2" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/5IFgSfc1tfjqB1tEbCos" alt=""><figcaption></figcaption></figure>

Once your rule file is selected, click **Import**.

### Importing a New Version of an Existing Rule

To import a new version of an existing rule, you have three options:

* **Folder sidemenu**: Right-click the rule for which you want to import a new version, and choose **Import Version**.

<figure><img src="/files/3x3FKU9JBmLsf4YVjq3p" alt="" width="247"><figcaption></figcaption></figure>

* **Rules section**: Click the three dots in the bottom-right corner of the rule tile, and select **Import Version**.

<figure><img src="/files/wdxB9V9jsF3M6yBFtATh" alt=""><figcaption></figcaption></figure>

* **Rule settings**: Click the **Import Version** button in the top-right corner.

<figure><img src="/files/4ykHCR5s0qY8pNddswm6" alt=""><figcaption></figcaption></figure>

After selecting your method, a prompt will allow you to choose between two options:

* **Import as new version**: The imported rule will be added as a separate version.
* **Overwrite current version**: The imported rule will replace the current version.

<figure><img src="/files/MEpyXIJ3QqU9ioatFLHn" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
Overwriting the latest version cannot be undone, and the replaced version will be permanently lost.
{% endhint %}

Once you've selected the import option, drag and drop your rule file into the designated area or click to open a file explorer. The supported formats are **JSON** and **XLSX** for Decision Tables.

<figure><img src="/files/Evf9TR5dGjfcdqRBsrYz" alt=""><figcaption></figcaption></figure>

After selecting the file, click **Import**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.decisionrules.io/doc/v1/decision-tables/import-and-export-rule/import-decision-table.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
