Bỏ qua đến nội dung chính
Back to home
Tech tools-ai 1 min read

Vercel Chat SDK supports callback URLs for buttons and modals 💬

The latest update to the Vercel Chat SDK enables 'human-in-the-loop' workflow integration by sending payloads directly to endpoints when users interact with chat cards.

Tier 2 · sources 99% confidence Reviewed
Sources vercel.com

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.