setup-slack-channel
它能做什么
这项技能带领开发者完成本地 CopilotKit 频道智能体在 Slack 一侧的设置,这涉及多个系统和不同的负责人。适合首次设置 Slack,或修复在线却不回复的频道的开发者。
适用场景
- ✓当你首次为本地 CopilotKit 频道智能体设置 Slack 机器人的时候。
- ✓当某个频道显示需要设置、等待运行时,或对 Slack 提及没有回复的时候。
- ✓当你需要把一个新的 Slack 应用附加到托管的 Intelligence 频道上的时候。
技能链接
https://github.com/CopilotKit/CopilotKit/blob/main/skills/setup-slack-channel/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的 CopilotKit 频道已经在线,但我在 Slack 中提及机器人时它没有回复。请帮我找出缺少了什么。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会按顺序带你检查每个系统:Slack 工作区、Slack 应用及其令牌、Intelligence 项目和频道、本地运行时以及智能体后端。它会检查消息传递的每一段是否正确连接,因为错误的设置可能安装得很顺利,却什么也回复不了。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Set up a Slack Channel for a local Channels agent
Take a developer from a code checkout to a working local Slack agent. Five separate systems have to line up, and they are owned by four different parties:
| System | Who owns it | Where you work on it |
|---|---|---|
| Slack workspace | Workspace owner / app manager | Slack, in a browser |
| Slack app + its tokens | The developer | api.slack.com, in a browser |
| Intelligence project, API key, Channel, Slack adapter | The developer | The Intelligence dashboard, in a browser |
| Local Channels runtime | The developer | This repo, in the shell |
| AG-UI agent backend | The developer | This repo, in the shell |
How delivery actually works — two legs, two mechanisms
Getting this wrong is the most expensive mistake available here, because a misconfigured Slack app installs cleanly and answers nothing.
| Leg | Mechanism | What authenticates it |
|---|---|---|
| Slack → Intelligence | Slack posts events over HTTPS to an Intelligence-hosted Request URL: https://intelligence.copilotkit.ai/api/channels/adapters/slack/events |
The app's signing secret, held by Intelligence |
| Intelligence → your runtime | Your runtime dials out to the realtime gateway over a websocket | CPK_INTELLIGENCE_API_KEY |
Two consequences:
- No tunnel and no public URL of your own is needed — but not because of Socket Mode. It is because Intelligence owns the public URL, and because the second leg is outbound from your machine.
- Socket Mode is off, and there is no
xapp-app-level token in this workflow at all. A managed Slack app needssocket_mode_enabled: falseand arequest_url. If you create the app with Socket Mode on and no Request URL, no event ever reaches Intelligence.
The Slack adapter form in Intelligence therefore asks for exactly two values: the
bot token (xoxb-) and the signing secret. Nothing else.
Most of this workflow happens in a browser, not a shell. The supported path
for v1 is the Intelligence browser experience. copilotkit channels does list
commands for Channel creation, adapter attach, and key issuance — do not use
them here; they are not hardened for this workflow yet. Never invent a command
name to fill a gap, and if you are unsure whether a command covers something,
check its --help rather than guessing.
Drive that browser yourself. That is the default here, not a bonus. Check what you actually have before Phase 0 and say which it is — never assume either way.
If you have no browser or computer-use tool, ask the developer to install one before you start. Work out which harness you are running in and name the single route that applies rather than reciting all of them: Claude Code and Codex each ship their own browser support and enable it differently, and most other harnesses take a general browser-use MCP server such as Playwright MCP. If you are not sure what your harness supports, look it up before you guess. Tell them what it buys — driving turns this into typing three secrets, while the fallback is roughly fifteen manual browser steps. Only if they decline, walk them through those steps one action at a time.
Done means three things, all verified
Do not report success until all three hold. Any one alone is a false positive.
- The Slack app is installed in a workspace, and the bot is a member of the channel you will test in.
- The managed Channel reports
online— from `co
常见问题
为什么需要这么多步骤?
由不同方负责的五个独立系统必须协调一致,Slack 的回复才能到达。
谁需要做什么?
工作区所有者或应用管理员负责 Slack 访问,开发者负责应用、令牌和 Intelligence 项目。
Slack 应用是由智能体创建的吗?
技能会引导你创建并附加它,因为部分步骤需要你在浏览器中于 Slack 和 api.slack.com 上完成。
详情
作者的原始描述
Use for the PROVIDER half of getting a locally running CopilotKit Channels agent to answer in Slack, when no Slack app exists yet — setting up a Channels bot in Slack for the first time, creating the Slack app and its tokens, attaching it to a managed Intelligence Channel, or when a Channel reports setup_required, sits at "Waiting for runtime", the Channel is Online but a Slack mention gets no reply, or a Slack app was built with Socket Mode instead of an Intelligence Request URL. Scoped to an OpenTag checkout, or the OpenTag example inside a channels-sdk clone — the phases assume those conven
repo: CopilotKit/CopilotKit
热度
- GitHub 星标
- 38k
- 排名
- #7490
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
channels-setup
38k引导你的智能体使用 CopilotKit 的分步设置,让你从头到尾在 Slack 或 Microsoft Teams 中获得第一个能回答问题的智能体。
copilotkit-channels
38k帮你的智能体设置或定制托管的 CopilotKit 频道,使智能体能够在 Slack 或 Microsoft Teams 中回答问题。
copilotkit-cli
38k帮你的智能体使用 CopilotKit 命令行工具检查项目设置、创建项目并管理托管设置。
copilotkit
38k帮你的智能体在编写代码之前查找最新的 CopilotKit 文档和源码,而不是依赖对一个不断变化的 API 的记忆。