AI generates content, pauses via workflow hook until human approves/rejects via webhook. On approval, sends/finalizes; on reject, refines with feedback.
Loading interactive preview...
Automatically installs the pattern and its dependencies in your project.
Download the complete pattern as a standalone Next.js project.
Add your AI provider API key to enable real functionality.
Open http://localhost:3000 to see the pattern in action.
The pattern is ready to use. Modify the components, API routes, and styling to fit your application.
app/page.tsxapp/api/Adapt this pattern for your specific use case and requirements.
Use this pattern to learn AI SDK concepts and prototype new ideas.
Integrate AI capabilities into existing applications and workflows.
Quickly build minimum viable products with AI-powered features.
Pause AI execution to get human approval before executing sensitive tool calls. Uses tool confirmation flow with the AI SDK.
Stateful conversation agent with Workflow DevKit that persists messages across pauses/resumes, calls tools, and streams responses using DurableAgent.
The workflow-approval pattern demo is being prepared.
Download the pattern to try it with your API key