Sign InOpen Brain
Back
VercelEngineering PostOfficial SourcetoolsNew

Pause workflows for approval with Chat SDK

Add durable, verified human approval before agents deploy, alter production data, or take other consequential actions.

VercelAug 6, 20262 min
Open SourceOpen MarkdownOpen JSON
Source Summary

Chat SDK can pause a workflow for a verified human decision and resume after seconds or days, without a custom approvals table, action handler, or polling loop.

Practical Implication

Use this as a durable gate before an agent deploys, changes production data, or takes another consequential action. Scoped approvers, platform-signature checks, and the returned user identity reduce the custom authorization plumbing.

Agent-Ready Context
Chat SDK’s new **chat/workflow** path adds requestApproval, which posts Approve and Deny controls and suspends a Workflow SDK run. The wait survives deploys and restarts, and Thread state crosses the workflow boundary automatically.

Use this as a durable gate before an agent deploys, changes production data, or takes another consequential action. **Scoped approvers**, platform-signature checks, and the returned user identity reduce the custom authorization plumbing.

The material covers a binary approval card, timeout handling, and an edited-in-place audit outcome. It does not describe richer review flows, delegation, or how long approval records remain available.
Context Map
toolscoding#agent-sdks#tool-use#agent-reliabilityGeneric AgentPrepare Coding Session
Rate This Item
Personal Note

No note yet. Notes are included in exported bundles.

Related — Every Edge Explained

No approved edges yet for this post.