> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dust.tt/llms.txt
> Use this file to discover all available pages before exploring further.

# Import data with Dust Labs scripts

> Import Jira, Linear, Guru, Front, or Dropbox data into a Dust folder with open-source scripts, when a native tool doesn't cover your use case.

Dust Labs scripts are open-source scripts that import data from another product into a [folder](https://docs.dust.tt/docs/user-documentation/data-sources/folders.md) in Dust, through the Dust API. Agents can then search that data like the rest of their knowledge.

> [!NOTE]
>
> Dust Labs scripts are examples, not native connections. You run, schedule, and maintain them yourself, on your own computer or server. Check the code before you run it.

## Use a native tool first

Every product below has a native tool, which lets agents read and act on live data without running a script. Use a script when agents need to search a copy of the data, for example the full history of your issues or conversations.

| Source | What the script imports | Native tool |
| :- | :- | :- |
| [Jira](https://github.com/dust-tt/dust-labs/tree/main/jira) | Recently updated issues that match your JQL query. | [Jira](https://docs.dust.tt/docs/user-documentation/agents/tools/jira.md) |
| [Linear](https://github.com/dust-tt/dust-labs/tree/main/linear) | Issues with their comments, attachments, and history, filtered by team, project, state, label, or update date. | [Linear](https://docs.dust.tt/docs/user-documentation/agents/tools/linear.md) |
| [Guru](https://github.com/dust-tt/dust-labs/tree/main/guru) | All the cards of your Guru knowledge base. | [Guru](https://docs.dust.tt/docs/user-documentation/agents/tools/guru.md) |
| [Front](https://github.com/dust-tt/dust-labs/tree/main/front) | Conversations, one document per conversation with all its messages, up to 2 MB each. | [Front](https://docs.dust.tt/docs/user-documentation/agents/tools/front.md) |
| [Dropbox](https://github.com/dust-tt/dust-labs/tree/main/dropbox) | Files filtered by extension, including Paper docs, Markdown, and Word files. | [Dropbox](https://docs.dust.tt/docs/user-documentation/agents/tools/dropbox.md) |

The link on each source opens the script's README on GitHub, with its settings and an example of the imported data.

The HubSpot and Salesforce scripts are deprecated and no longer maintained. Use the [HubSpot](https://docs.dust.tt/docs/user-documentation/agents/tools/hubspot.md) and [Salesforce](https://docs.dust.tt/docs/user-documentation/agents/tools/salesforce.md) tools instead.

## Before you start

* **A folder:** create the [folder](https://docs.dust.tt/docs/user-documentation/data-sources/folders.md) that receives the data, in the Space where agents should find it.
* **A Dust API key:** an admin creates it in **Admin** > **Developers** > **API keys**. Under **Spaces**, add the Space that holds the folder, so the key can write to it.
* **Node.js and npm:** every script is a Node.js application.
* **Access to the source:** an API token for the product you import from. The script's README says which one and how to create it.

## Run a script

**1. Get the code**

Clone the Dust Labs repository and open the script's folder, for example for Jira:

```bash theme={null}
git clone https://github.com/dust-tt/dust-labs.git
cd dust-labs/jira
```

**2. Install the dependencies**

```bash theme={null}
npm install
```

**3. Add your settings**

Create a `.env` file in the script's folder with the variables listed in its README: your Dust API key, workspace ID, folder ID, and Space ID when the script asks for one, then the source's token and filters.

The scripts send data to `https://dust.tt/api/v1`. If your workspace is in the EU region (`eu.dust.tt`), replace it with `https://eu.dust.tt/api/v1` in the script's code.

**4. Run the import**

Run the command given in the README. The script sends each item to your folder as a document.

Each run imports the data once. To keep the folder up to date, run the script on a schedule, for example with a daily cron job on a server.

## Related

> [card] [Folders](https://docs.dust.tt/docs/user-documentation/data-sources/folders.md)
>
> Add your own content to Dust and keep it in a Space.

> [card] [Add data with Zapier](https://docs.dust.tt/docs/user-documentation/data-sources/custom-connections/zapier-automatically-add-datasource.md)
>
> Send data to a Dust folder from Zapier, without code.

> [card] [Data sources API](https://docs.dust.tt/docs/developer-platform/core-concepts/datasources.md)
>
> Send content to a folder with the Dust API.

> [card] [Tools](https://docs.dust.tt/docs/user-documentation/agents/tools/index)
>
> All the tools your agents can use.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.