# Download file from query node

Sometime, you want to empower your users to filter the table and download the filtered table. Acho App Builder provide an API Service to achieve this task.

Acho support download file from query nodes by action  **API Service** → **Download File**. You can add a button on your app to trigger the action and allow users to download data as a file. Follow these steps to set it up:

1. Select an element, such as a [**Button**](/app-builder/app-construction/elements/web-elements/button.md) or a [**Clickable**](/app-builder/app-construction/elements/web-elements/clickable.md), to add an interaction that will trigger the download.<br>

   <div align="left"><figure><img src="/files/8XekgenNGEjHqFQmy5H6" alt=""><figcaption></figcaption></figure></div>
2. In the Interactions panel, add a supported event(**Click Button** in this example).
3. Then, add an action, select **API Service** → **Download File**.
4. Select which data asset to download data from in the dropdown menu.("Sample\_data" is used in this example).
5. Select the file format of the download, there are two options:&#x20;
   1. CSV: Comma-Separated Values is a popular file format for storing tabular data. It uses plain text with values separated by commas.&#x20;
   2. JSON: JavaScript Object Notation is a lightweight data interchange format. It provides a structured representation of data using key-value pairs, arrays, and nested objects.&#x20;

{% hint style="info" %}
**Is Public File** determine whether or not the action will generate a public link for the file, remember to turn it on if you want to use the link to share with teammates.
{% endhint %}

In this example, when the button is clicked, it will downloads data from the node Sample\_Data as a CSV file.

<figure><img src="/files/2Khm3W4ObI8PSlhODKoO" alt=""><figcaption></figcaption></figure>


---

# 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.acho.io/app-builder/popular-use-cases/download-file-from-query-node.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.
