Skip to main content
Dust Labs scripts are open-source scripts that import data from another product into a folder in Dust, through the Dust API. Agents can then search that data like the rest of their knowledge.
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. 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 and Salesforce tools instead.

Before you start

  • A folder: create the folder 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:
2

Install the dependencies

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.

Folders

Add your own content to Dust and keep it in a Space.

Add data with Zapier

Send data to a Dust folder from Zapier, without code.

Data sources API

Send content to a folder with the Dust API.

Tools

All the tools your agents can use.