TL;DR
- Agents write JSON specs from a typed component catalog that json-render converts into platform-native cards for Slack, Teams, and other Chat SDK adapters
- Cards stream in real-time, updating at 500ms intervals by default, with validation that throws readable errors for invalid specs or platform limit violations
- The catalog includes tables, charts, buttons, and more components, eliminating the need to maintain separate tools for each message format
- Platform support
- Slack, Teams, and all Chat SDK
- Update interval
- 500 ms by default
What happened
Vercel announced that Chat SDK agents can now stream generative UI directly to chat platforms using json-render. Agents write JSON specifications from a typed component catalog, which json-render then converts into native card formats for each platform—Block Kit for Slack, Adaptive Cards for Teams, and platform-specific formats for other Chat SDK adapters. This eliminates the need to build and maintain separate tools for different message shapes.
How it works
The integration uses a standardized component catalog defined through json-render's schema and standardComponentDefinitions. When an agent is mentioned in a thread, it generates text using a language model, and the streamCard function posts that output as a structured card. The card begins rendering once its root element has content, then updates incrementally as the model continues generating. By default, updates are sent at most once every 500 milliseconds, matching Chat SDK's streaming interval. Once the stream completes, the message displays the final, validated card.
- Agent writes JSON specs from the typed catalog
- json-render converts specs to platform-native cards
- streamCard posts cards and updates as content streams in
- Updates throttled to 500ms by default to match Chat SDK timing
import { defineCatalog } from "@json-render/core" ;
import {
schema ,
standardComponentDefinitions ,
streamCard ,
} from "@json-render/chat" ;
import { streamText } from "ai" ;
const catalog = defineCatalog ( schema , {
components : standardComponentDefinitions ,
} ) ;
bot . onNewMention ( async ( thread , message ) => {
const result = streamText ( {
model : "anthropic/claude-haiku-5.5" ,
system : catalog . prompt ( ) ,
prompt : message . text ,
} ) ;
await streamCard ( thread , result . textStream ) ;
} ) ;What changed
The catalog covers tables, charts, buttons, and additional components. The toCard function validates every element's properties against its component schema, throwing a CardSpecError with readable issues for each problem. These validation errors can be sent back to the model for correction. Additionally, adapters respect platform-specific content limits—for example, the Slack adapter converts a second table to a code block if it exceeds limits. You can pass limits to the validation to reject specs that would be degraded, rather than accepting the downgraded output.
Who it affects
Developers building agents that interact with Slack, Microsoft Teams, or other platforms using Vercel's Chat SDK can now generate interactive UI directly without writing platform-specific formatting logic. This applies to teams using the Anthropic Claude models or other language models through Vercel's AI SDK, particularly those relying on agent-based workflows for customer communication, internal tooling, or data presentation in chat platforms.
Next steps
To get started, consult the json-render documentation or try the interactive playground. The catalog prompt can be passed to your language model to guide it toward generating valid specs. If you encounter validation errors, review the readable issue descriptions to understand what the model generated incorrectly, then either refine the system prompt or set stricter platform limits to prevent spec degradation.
Source
Vercel Bloghttps://vercel.com/changelog/json-render-and-chat-sdk-agentsAI-assisted, verified against the source. This post was drafted with AI from the primary source linked above and checked automatically against it. For anything you depend on, read the original.
- #vercel
- #chatsdk
- #aiagents
- #generativeui
- #slack


