OpenAI logo
AI SDK icon

Human-in-the-Loop Assistant

AI SDK v5 + Official HITL Pattern

Human-in-the-Loop Demo

This demo shows how AI can pause and ask for human approval before taking action. Built with AI SDK v5 and the human-in-the-loop pattern . Try these examples: weather check, content moderation, shopping cart, user approval, or payment processing. Tools requiring approval will wait for your confirmation. Auto-execute tools run immediately. This keeps AI safe and trustworthy.