创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

Mastra为Slack智能体推出生成式UI卡片

AI 总结

Mastra宣布为运行在Slack中的智能体提供生成式UI支持。据厂商介绍,启用generativeUI后,智能体可通过render_card工具即时创建Slack原生卡片,并使用字段、表格、图表、图片和链接按钮,通过Slack Block Kit呈现在对话串中。该功能要求使用1.83.0或更高版本的@mastra/core,API目前仍处于实验阶段,版本更新时可能发生变化。

深度见解

该功能让智能体开发者能将结构化回复转换为动态的Slack原生界面,而不再局限于纯文本或预先定义的卡片。

Your agents can now use generative UI cards in Slack. Turn on generativeUI and the agent gets a render_card tool that posts rich, native cards to the thread.

Agents in Slack usually reply using long blocks of plain text or markdown, making it difficult to see how numbers compare or change over time. With generative UI, the agent decides how to present the data, using fields for key facts, tables for rows of data, charts for metrics or trends, images, and link buttons that open related pages.

Your browser does not support the video tag.A Deploy Agent in Slack answers with a deploy summary, a bar chart of build times, and a table of shipped commits, followed by the setup code and connecting Slack with Mastra Connect.

You've always been able to post UI cards in Slack by predefining them in code, but before generative UI, each card's structure was fixed in advance. Now, with generative UI, the agent creates the card on the fly, choosing the most suitable UI element for each response.

To render Slack-native UI elements, agents call the render_card tool, passing in an object that meets the json-render spec. Mastra can then post responses to the thread using Slack's Block Kit elements.

#Mastra#Slack#Mastra Connect#@json-render/chat

原文约 2 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。