capabilities.work

Message an Agent and Submit Feedback

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

Recipe · 3 steps

Message an Agent and Submit Feedback

with Dust

Post a message, poll for the agent reply, and submit feedback on it.

  1. Post a human message that mentions the agent so a reply is generated.
  2. Fetch the conversation and capture the agent message id once a completed agent message is present.
  3. Submit thumbs feedback for the agent message.
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 human message.
  • thumbDirection: Direction of the feedback, either up or down.
  • feedbackContent: Optional free-text feedback comment.
For your developer

Arazzo workflow dust-tt:message-and-submit-feedback, 3 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 → {$sourceDescriptions.feedbacksApi.url}#/paths/~1api~1v1~1w~1{wId}~1assistant~1conversations~1{cId}~1messages~1{mId}~1feedbacks/post. Specs on APIs.io.