Approve a Pending Agent Tool Action
A 3-step recipe with Dust. We can help you get access.
Recipe · 3 steps
Approve a Pending Agent Tool Action
with Dust
Open a conversation, wait for an agent message, and validate its pending action.
- Open a conversation that mentions the agent without skipping tool validation so the agent can request an action.
- Fetch the conversation and capture the agent message id once a completed agent message is present.
- Approve or reject the pending action on the agent message.
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.
- content: The text of the first human message.
- actionId: The id of the action to validate, as surfaced by the agent.
- approved: Whether to approve (true) or reject (false) the action.
For your developer
Arazzo workflow dust-tt:approve-agent-action, 3 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 → {$sourceDescriptions.conversationsApi.url}#/paths/~1api~1v1~1w~1{wId}~1assistant~1conversations~1{cId}~1messages~1{mId}~1validate-action/post. Specs on APIs.io.