Chat SDK adds native Slack agent support
TL;DR · AI 摘要
Chat SDK adds native Slack agent support - Vercel Chat SDK's Slack adapter now supports the agent messaging experience S...
核心要点
- 主题聚焦:Chat SDK adds native Slack agent support
- 来源:Vercel News,建议结合原文判断细节。
- AI 分析暂不可用,本条为保底评分与摘要。
Chat SDK adds native Slack agent support - Vercel
Chat SDK's Slack adapter now supports the agent messaging experience Slack introduced on June 30 . Agents built with Chat SDK could already talk in channels and DMs and stream replies token-by-token. This update adds the Agent badge, agent conversations in the Messages tab, suggested prompts, rotating status messages, and native feedback buttons.
lib/bot.ts
1
import
{
Chat
}
from
"chat"
;
2
import
{
createSlackAdapter
}
from
"@chat-adapter/slack"
;
3
4
const
bot
=
new
Chat
(
{
5
userName
:
"mybot"
,
6
adapters
:
{
7
slack
:
createSlackAdapter
(
{
8
agentView
:
true
,
9
suggestedPrompts
:
{
10
title
:
"Welcome! What can I do for you?"
,
11
prompts
:
[
12
{
title
:
"Catch me up"
,
message
:
"What did I miss today?"
}
,
13
{
title
:
"Draft a message"
,
message
:
"Help me draft a message"
}
,
14
]
,
15
}
,
16
loadingMessages
:
[
"Thinking..."
,
"Digging through the archives..."
]
,
17
feedbackButtons
:
true
,
18
}
)
,
19
}
,
20
}
)
;Configure your native Slack agent in Chat SDK
Here's what the adapter gives you:
- Suggested prompts, per thread: Pass a static payload or an async resolver that receives the thread context, including what the user is currently viewing under agent_view . Prompts are pinned automatically whenever an agent thread opens.
- Native streaming with a fallback: Streamed replies render token-by-token via Slack's streaming API, including task and plan cards. If a workspace doesn't support streaming (e.g., GovSlack), the adapter switches to post-and-edit mid-stream without losing content.
- Built-in feedback: Set feedbackButtons: true and every streamed reply ends with Slack's native thumbs-up and thumbs-down buttons. Clicks dispatch through the regular bot.onAction flow with a positive or negative value.
One thing to know: under agent_view , Slack threads each user message individually, so channel history only returns the user's side of a DM. Use Chat SDK transcripts to build AI conversation history instead.
Read the documentation to get started, or begin with one of our templates .