Pause AI execution to get human approval before executing sensitive tool calls. Uses tool confirmation flow with the AI SDK.
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/Create systems that require human verification for high-value transactions, fund transfers, and sensitive financial operations.
Build medical AI assistants that suggest diagnoses but require doctor confirmation before final recommendations.
Develop tools that analyze legal documents and flag issues but require lawyer approval for final decisions.
Create moderation AI that flags inappropriate content but requires human review before taking action.
The human-in-the-loop pattern demo is being prepared.
Download the pattern to try it with your API key