Converse with an Agent
A 2-step recipe with Dust. We can help you get access.
Recipe · 2 steps
Converse with an Agent
with Dust
Create a conversation that mentions an agent and poll for the agent's answer.
- Create a new conversation seeded with a human message that mentions the target agent so the agent begins generating a reply.
- Fetch the conversation and check whether the latest agent message has reached a completed status. Repeat until the agent has answered.
What you'll need to have ready
- apiToken: Dust API key used as the Bearer token.
- wId: The workspace identifier.
- agentConfigurationId: The sId of the agent configuration to mention in the message.
- content: The text of the first human message in the conversation.
- title: Optional title for the new conversation.
- username: Username to attach to the message context.
- timezone: IANA timezone for the message context (e.g. America/New_York).
For your developer
Arazzo workflow dust-tt:converse-with-agent, 2 operations: {$sourceDescriptions.conversationsApi.url}#/paths/~1api~1v1~1w~1{wId}~1assistant~1conversations/post → {$sourceDescriptions.conversationsApi.url}#/paths/~1api~1v1~1w~1{wId}~1assistant~1conversations~1{cId}/get. Specs on APIs.io.