Add Human Approval Pauses to Chat Workflows

Add durable, signed human approvals to AI workflows without building polling or approval infrastructure.
30-Second TL;DR
What Changed
The approval wait can last seconds or days and survives deployments and restarts.
Why It Matters
This reduces the infrastructure needed to add human review to AI agents and automated workflows. Builders can ship safer approval gates faster, especially for actions involving external side effects or sensitive data.
What To Do Next
Prototype an approval gate with Chat SDK's requestApprovalWorkflow for one AI agent action that currently requires manual review.
Key Points
- •The approval wait can last seconds or days and survives deployments and restarts.
- •Developers do not need a separate approvals table, an onAction handler, or a polling loop.
- •Approvers can be restricted, platform signatures are verified, and the decision-maker's user.id is returned.
- •After a decision or timeout, the card is edited with the outcome to prevent stale clicks.
Deep Insight
AI-generated analysis for this event — not the original article.
Enhanced Key Takeaways
- •The feature leverages Vercel's AI SDK Workflows, which utilizes a durable execution engine to maintain state across long-running asynchronous processes.
- •Integration is achieved via the 'requestApproval' function within the workflow definition, which automatically handles the serialization of the workflow state to Vercel's infrastructure.
- •Security is enforced through cryptographic signing of approval requests, ensuring that only authorized users within the Vercel project environment can trigger the callback.
- •The system is designed to be provider-agnostic, allowing developers to trigger these approval pauses regardless of whether they are using OpenAI, Anthropic, or other LLM providers via the AI SDK.
- •The 'requestApproval' mechanism is built on top of Vercel's serverless infrastructure, meaning it does not consume execution time while waiting for the human response, optimizing cost for long-duration workflows.
Competitor Analysis
- Vercel AI SDK (Workflows)
- Native/Managed
- LangChain (LangGraph)
- Requires custom state management
- Temporal.io
- Native (Signals/Activities)
- Vercel AI SDK (Workflows)
- Zero-config (Vercel)
- LangChain (LangGraph)
- Self-hosted/Cloud
- Temporal.io
- Self-hosted/Cloud
- Vercel AI SDK (Workflows)
- High (SDK-integrated)
- LangChain (LangGraph)
- Medium (Requires infrastructure)
- Temporal.io
- Low (High complexity)
| Feature | Vercel AI SDK (Workflows) | LangChain (LangGraph) | Temporal.io |
|---|---|---|---|
| Human-in-the-loop | Native/Managed | Requires custom state management | Native (Signals/Activities) |
| Deployment | Zero-config (Vercel) | Self-hosted/Cloud | Self-hosted/Cloud |
| Ease of Use | High (SDK-integrated) | Medium (Requires infrastructure) | Low (High complexity) |
Technical Deep Dive
- The workflow engine uses a state-machine architecture that checkpoints execution at the requestApproval call site.
- State persistence is handled by Vercel's internal KV or equivalent storage layer, allowing the workflow to resume exactly where it left off after a restart.
- The approval card UI is rendered via the AI SDK's client-side components, which communicate with the workflow backend through a secure, authenticated API endpoint.
- Timeout handling is managed by the workflow scheduler, which automatically transitions the workflow to a failure or fallback state if no response is received within the specified duration.
Future ImplicationsAI analysis grounded in cited sources
Timeline
- 2023-11Vercel launches the AI SDK to simplify LLM integration for frontend developers.
- 2024-05Vercel introduces AI SDK 3.0 with support for generative UI and streaming.
- 2025-02Vercel announces AI SDK Workflows to enable stateful, multi-step agentic processes.
- 2026-08Vercel adds human-in-the-loop approval capabilities to AI SDK Workflows.
Weekly AI Recap
Read this week's curated digest of top AI events →
AI-curated news aggregator. All content rights belong to original publishers.
Original source: Vercel News ↗
This is a summary, not the original. Read the source, or get the weekly briefing.
The weekly digest
One email a week. Unsubscribe anytime.