
Vercel Blog · 1 min readJavaScript
Chat SDK agents can now stream generative UI with json-render
Learn how to stream generative UI from a Chat SDK agent using json-render, converting JSON specs into platform‑native cards like Slack Block Kit or Teams Adaptive Cards. The guide shows defining a component catalog, streaming text, and validating specs before posting. This enables dynamic, rich messages without separate tooling.
- Define a typed component catalog with defineCatalog and standardComponentDefinitions.
- Stream text with streamText and convert to cards using streamCard.
- Validate specs with toCard and enforce platform limits to avoid truncation.