# Save Assets Block

Save such resources as pictures, video, audio, or files from an element or URL.

* **Type**\
  Indicates where to get the assets: from a URL or elements like pictures, audio, or video.
* **URL**\
  URL of the resource. For instance, `https://example.com/image.png`
* **Element selector**
* **File name**\
  The filename for the resource. Leave the input blank if you don't want to rename the resource.
* **On conflict**\
  Specifies what to do if there is a conflict between an asset file name and an existing one.
  * `"uniquify"`\
    The browser will change the filename to make it unique.
  * `"overwrite"`\
    The browser will replace the previous file by the newly-downloaded file.
  * `"prompt"`\
    The browser will ask the user whether to uniquify or overwrite.
* **Save items' download ids**\
  Save the download IDs of the downloaded resources into a variable or the workflow table. It returns an array of integers.

  You can pass this download ID to the Handle Download block if you wish to retrieve the file path of the downloaded resource.

Please note:

This block cannot function without an active tab. For this reason, use the Active Tab block or the New Tab block before using this one.


---

# 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.goless.com/blocks/web-interaction/save-assets-block.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.
