# Export Decision Tree

## Exporting a Rule

First, make sure you're logged in and navigate to the **Business Rules** category on the sidebar.

To access the Export window either:

* Right-click on the rule you wish to export in the Folders manager, then select **Export**. (Image 1)
* Find the rule you wish to export in the list of rules in the **Business Rules** tab on the sidebar. (Image 1)

<figure><img src="/files/3gl2FHJ4CIfc10OA8L5H" alt=""><figcaption><p>Image 1</p></figcaption></figure>

or

* Navigate to the rule you wish to export and into it's settings, then click on **Export** in the top right corner. (Image 2)&#x20;

<figure><img src="/files/7Y0lVdWyCGJyMH2pzmDm" alt=""><figcaption><p>Image 2</p></figcaption></figure>

For Decision Trees, the only format option is JSON.

Click on the **Export** button and a file containing your rule will be downloaded automatically.


---

# 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.decisionrules.io/doc/v1/decision-trees/import-and-export-rule/export-decision-tree.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.
