Dust Integration
Prerequisitesβ
- You must have
adminaccess inDust. - Youβll need a Coalesce Catalog API Token. If you donβt have one, reach out to the Catalog ops team to request a new token.
Installationβ
The Dust agent is created at the workspace level. Once set up, it will be accessible to all users in your workspace.
Creating a new Dust agent to work with the Catalog AI Assistant is quick and easy:
- Set the Catalog
API Tokenas a Dust app secret (CATALOG_API_TOKEN) - Create a new
Dustapp that can call the Catalog public API - Create a new
Dustagent that uses the app above as a tool to send results from the CatalogAI Assistantto yourDustusers
Set the Catalog API Token as a Dust app secretβ
πSecrets usable in Dust apps to avoid showing sensitive data in blocks definitions.
- Go to
Admintab on the top left menu - Go to
Developers>Secretson the left menu - Click on the
Create Secretbutton - Set the new secret
CATALOG_API_TOKENwith its value and then clickCreate
Create a New Dust Appβ
This app will act as a tool for the agent:
- It will use the Catalog public API, authenticated with the API Token defined earlier as a secret.
- The app will follow two main steps:
- Send the user's question, email, and the
DustconversationIdto the Catalog AI Assistant, and receive ajobIdin return. - Poll the Catalog public API to retrieve the AI Assistantβs response using the
jobId.
- Send the user's question, email, and the
- Create the new empty app
coalesceAiAssistant:- Go to Spaces tab in the top left menu
- Go to Open Spaces > Apps
- Click on Create a new app button
- Set app name to coalesceAiAssistant and app description to Calling the Catalog AI Assistant to answer your question and show helpful assets
- Add the app logic: build the app blocks according to the Dust app code blocks
Create a New Dust Agentβ
The CoalesceAIAssistant agent will use the app created above as a tool to interact with the Catalog public API, then return the final response to the user.
- Create a new agent with an instruction prompt:
- Click on Create > New Agent
- Set Advanced settings: Model selection Claude Sonnet (recommended), Creativity level Deterministic (recommended)
- Copy and paste this Dust agent main prompt and then click on Next
- Assign the
coalesceAiAssistantapp created above as a tool:- Remove all existing tools
- Click on Add tools > Run Dust app
- Select the
coalesceAiAssistantapp then click on Save - Click on Next
- Configure the global settings and publish the agent:
- Name the agent
CoalesceAiAssistant - Update the agent icon
- Test the agent in the bottom-right corner before publishing
- Set the access to
Published
- Name the agent
Debugβ
- Tool inspection in the chat: You can click on Tool inspection directly in your chat box to view both the input and output of the tool.
- Tool logs: Each response from
CoalesceAiAssistanttriggers a tool call (coalesceAiAssistant). You can view a detailed log of every call, including step-by-step output, by going to the app > Logs > API.
Updateβ
- Since the
Dustagent uses our AI Assistant public API, any updates to the AI Assistant will automatically be reflected inDust.- Updates on the Catalog side are designed to be backward compatible.
- Weβll let you know if any update requires action on your part.
- As the
Dustapp and agent are installed in yourDustworkspace, youβre responsible for updating them if needed. Catalog will notify you if an update is required.