Mastra agents can now reply in Slack with tables, charts and other native UI elements. The agent uses a new `render_card` tool to post rich cards to the thread. Each card is created on the fly instead of being predefined. The agent chooses the best UI element for each response. Cards use the json-render spec and Slack Block Kit elements. Generative UI is still experimental and the API may change.
What changed
Agents in Slack replied with plain text or markdown only.
What it unlocks
Agents can now post tables, charts, and other Slack-native UI elements dynamically.
What you need to act on it
- @mastra/core@1.83.0 or later
- generativeUI: true on the Slack provider
- @json-render/chat installed
Sources