App Logo
dust.tt

Ask Dust

Start a new Dust conversation, send one question to an agent, and wait for the answer to finish (up to 3 minutes). Returns the answer text, the conversation and message ids, the conversation URL, which agent answered, and whether generation completed. Requires a signed-in dust.tt session. The agent defaults to "dust", the workspace's general-purpose agent; pass agent to address another one by its sId (list them with list_agents). Dust answers asynchronously, so this polls the conversation until the agent's turn stops changing: completed=false means the 3-minute budget ran out while the agent was still working, and the partial answer is returned rather than an error — re-read it later with get_conversation_messages using the conversationId. This creates a real conversation in the workspace; delete it with delete_conversation if it was only a test.

Input

question required

The question to send as the first message of a new conversation.

agent optional

Agent sId to ask, e.g. "dust" (general purpose) or "helper" (help on using Dust). Defaults to "dust".

Default: "dust"
workspaceId optional

Workspace sId to create the conversation in. Omit to use the first workspace on the account.

timeoutSeconds optional

How long to wait for the agent to finish (default 180).

Default: 180

Output

url required

Link to the conversation in the Dust web app.

agent required

The agent that answered, as its sId.

answer required

The agent's answer as the markdown it emitted. Null when the agent produced no text at all — which happens on a tool-only or errored turn and is a real outcome, not a parse failure.

completed required

True when the agent's turn finished inside the timeout. False means the answer is partial — re-read it later with get_conversation_messages.

messageId required

sId of the agent's message.

waitedSeconds required

How long the poll actually waited before returning.

conversationId required

Conversation sId — the join key for get_conversation_messages.

userMessageId optional

sId of the question as Dust stored it.

Start building not clicking