capabilities.work

Post Follow-up Message and Poll

A 2-step recipe with Dust. We can help you get access.

Recipe · 2 steps

Post Follow-up Message and Poll

with Dust

Add a message to a conversation and poll until the agent answers.

  1. Post a new human message into the conversation, mentioning the agent so a reply is generated.
  2. Fetch the conversation and check whether a completed agent message is present. 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.
  • cId: The identifier of the existing conversation.
  • agentConfigurationId: The sId of the agent configuration to mention.
  • content: The text of the follow-up human message.
  • username: Username to attach to the message context.
  • timezone: IANA timezone for the message context.
For your developer

Arazzo workflow dust-tt:post-message-and-poll, 2 operations: {$sourceDescriptions.conversationsApi.url}#/paths/~1api~1v1~1w~1{wId}~1assistant~1conversations~1{cId}~1messages/post → {$sourceDescriptions.conversationsApi.url}#/paths/~1api~1v1~1w~1{wId}~1assistant~1conversations~1{cId}/get. Specs on APIs.io.