> 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/rule-flow/import-and-export-rule/export-rule-flow.md).

# Export Rule Flow

## Exporting a Rule

First, make sure you're logged in and navigate to the **Bussiness 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**.
* Find the rule you wish to export in the list of rules in the **Bussiness Rules** tab on the sidebar.&#x20;

<figure><img src="/files/GqnOctBJITkeTpgpYZJP" 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/aAZhxoIuDDgswUxjh84G" alt=""><figcaption><p>Image 2</p></figcaption></figure>

You will be prompted with the following window.

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

For Rule Flows, the only format option is JSON.

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

{% hint style="info" %}
When exporting a Rule Flow, every other Rule used within the Rule Flow is exported as well, within the same file.
{% endhint %}

{% hint style="warning" %}
Export of Rule Flow with another nested Rule Flow is not allowed.
{% endhint %}


---

# 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/rule-flow/import-and-export-rule/export-rule-flow.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.
