Import an Agent and Start a Conversation
A 2-step recipe with Dust. We can help you get access.
Recipe · 2 steps
Import an Agent and Start a Conversation
with Dust · Artificial Intelligence Management
Import an agent configuration and open a conversation mentioning it.
- Create a new agent configuration from the supplied JSON definition and capture its sId.
- Open a conversation seeded with a message that mentions the newly imported agent.
What you'll need to have ready
- apiToken: Dust API key used as the Bearer token.
- wId: The workspace identifier.
- agent: Agent definition with handle, description, scope, max_steps_per_run, and visualization_enabled.
- instructions: Instructions for the agent.
- generationSettings: Model generation settings (model_id, provider_id, temperature, reasoning_effort).
- tags: Tags to attach to the agent.
- editors: Editors for the agent.
- toolset: Toolset (MCP tools) for the agent.
- content: The text of the first human message in the conversation.
For your developer
Arazzo workflow dust-tt:import-agent-and-converse, 2 operations: {$sourceDescriptions.agentsApi.url}#/paths/~1api~1v1~1w~1{wId}~1assistant~1agent_configurations~1import/post → {$sourceDescriptions.conversationsApi.url}#/paths/~1api~1v1~1w~1{wId}~1assistant~1conversations/post. Specs on APIs.io.