Chuyển đến nội dung
Skillpedia
Lập trình chung38k · #7490

setup-slack-channel

Skill này làm gì

Skill này hướng dẫn lập trình viên qua phần Slack của một agent kênh CopilotKit cục bộ, vốn trải qua nhiều hệ thống do các bên khác nhau sở hữu. Skill dành cho lập trình viên thiết lập Slack lần đầu hoặc sửa một kênh đang trực tuyến nhưng không trả lời.

Khi nào nên dùng

  • ✓Khi bạn thiết lập bot Slack cho một agent kênh CopilotKit cục bộ lần đầu.
  • ✓Khi một kênh hiển thị cần thiết lập, đang chờ runtime, hoặc không nhận được trả lời khi nhắc đến bot trên Slack.
  • ✓Khi bạn cần gắn một ứng dụng Slack mới vào một kênh Intelligence được quản lý.

Liên kết skill

https://github.com/CopilotKit/CopilotKit/blob/main/skills/setup-slack-channel/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/CopilotKit/CopilotKit/blob/main/skills/setup-slack-channel/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Kênh CopilotKit của tôi đang trực tuyến, nhưng khi tôi nhắc đến bot trong Slack thì nó không trả lời. Hãy giúp tôi tìm xem thiếu gì.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent hướng dẫn bạn qua từng hệ thống theo thứ tự: không gian làm việc Slack, ứng dụng Slack và các token của nó, dự án và kênh Intelligence, runtime cục bộ và backend agent. Nó kiểm tra cách mỗi chặng của việc giao tin được kết nối, vì một thiết lập sai có thể cài đặt sạch mà vẫn không trả lời gì.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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 needs socket_mode_enabled: false and a request_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.

  1. The Slack app is installed in a workspace, and the bot is a member of the channel you will test in.
  2. The managed Channel reports online — from `co
Câu hỏi thường gặp

Vì sao phải nhiều bước như vậy?

Năm hệ thống riêng biệt do các bên khác nhau sở hữu phải khớp nhau trước khi một trả lời trên Slack có thể đến.

Ai cần làm gì?

Chủ không gian làm việc hoặc người quản lý ứng dụng xử lý quyền truy cập Slack, còn lập trình viên xử lý ứng dụng, các token và dự án Intelligence.

Ứng dụng Slack có do agent tạo không?

Skill hướng dẫn bạn tạo và gắn nó, vì một số bước diễn ra trong Slack và api.slack.com trên trình duyệt của bạn.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
38k
Vị trí xếp hạng
#7490
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự