AI Briefing
KO

Pause Workflows While Awaiting Approval with Chat SDK

·2026.08.06 09:00

Key point

The Chat SDK pauses Workflow SDK workflows until a decision is made using button-based approval requests.

1 / 2

Details

The new chat/workflow path and requestApproval call in Chat SDK allow for the simple implementation of Workflow SDK workflows that require human approval. Approval requests are sent as cards containing Approve and Deny buttons, and the workflow is paused until a decision is made.

Wait times can be set from seconds to days, and the state persists even after deployments or restarts. There is no need to build separate approval tables, onAction handlers, or polling loops, and Thread instances are automatically serialized across workflow boundaries.

Key features include:

  • Approver Restriction: Specify approvers to limit which users can approve; clicks by unauthorized users leave only an informational message while the workflow continues to wait.
  • Verified Decisions: Platform signatures are verified for every click, and the user.id in the result contains information about the actual decision-maker.
  • Audit Trail: When a decision is made or a timeout occurs, the card is edited with the result text to prevent stale clicks.

In the example, the workflow waits for deployment approval for 24 hours and then deploys the specified version only if the approved value is true.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.