Vercel has recently added the callbackUrl attribute to button and modal components within the Chat SDK. This feature allows AI applications to pause automated workflows and await user input directly from the chat interface.
How it works
According to Vercel's announcement, developers can now configure a callbackUrl for individual buttons inside the <Card> component. When a user clicks a button, the Chat SDK sends a payload containing event information or form data (for <Modal>) to the specified endpoint. This mechanism works seamlessly with the Workflow SDK, allowing the process to resume after human intervention.
Why it matters
This is an effective solution for building 'human-in-the-loop' AI workflows. In Vietnam, developers building customer support chatbots or automated approval systems can leverage this feature to naturally integrate human verification steps without having to switch contexts to another dashboard.