configure-channel
Skill này làm gì
Skill đưa cho agent AI các lệnh từng bước để kết nối một kênh chat với OpenClaw và xác nhận nó hoạt động. Nó dành cho những ai muốn OpenClaw giao tiếp qua một ứng dụng nhắn tin.
Khi nào nên dùng
- ✓Khi bạn muốn kết nối OpenClaw với một ứng dụng chat như Telegram.
- ✓Khi bạn cần kiểm tra trạng thái hiện tại của các kênh chat OpenClaw.
- ✓Khi bạn muốn thay đổi ai được nhắn cho bot OpenClaw mà không vô tình mở quyền truy cập.
Liên kết skill
https://github.com/openclaw/openclaw/blob/main/custodian-skills/configure-channel/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Giúp tôi kết nối bot OpenClaw với Telegram và kiểm tra xem nó có trả lời tôi không.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill kiểm tra các kênh nào đã được thiết lập, sau đó thêm token bot dưới dạng tham chiếu bảo mật thay vì văn bản thuần. Cuối cùng skill xác nhận kênh hoạt động bằng một tin nhắn thật.
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.
Configure a channel
Never print or persist secret values; channel tokens enter config only as SecretRefs, or through the in-session connect_channel flow where the operator types the secret into a masked prompt. Never hand-edit config files on disk. Every run ends with the observable Prove result or an exact explanation of why it could not be proven.
Gather
openclaw channels list --all
openclaw channels status
openclaw config get channels --json # "Config path not found" is normal before first setup
Confirm the exact config path before writing — key names differ per channel (channels.telegram.botToken, channels.discord.token, ...):
openclaw config schema --json | jq '.properties.channels.properties.telegram'
Mutate
Confirm the intended account and access changes with the operator before writing. Preserve existing approved allowlist entries, dmPolicy, and groupPolicy unless their replacement or change is explicitly approved; never broaden access to make a check pass.
Preferred shell path — token staged as an env var on the gateway process or in a 0600 file, wired as a SecretRef (Telegram example):
openclaw config set channels.telegram.botToken --ref-provider default --ref-source env --ref-id TELEGRAM_BOT_TOKEN
With the bot connected and DM policy pairing, ask the operator to DM it. Read Your Telegram user id in the pairing reply, or run openclaw logs --follow and read senderUserId in that sender's telegram pairing request entry. Stop following once captured; keep unrelated logs private. If the current policy prevents this flow, use an already verified ID or report the discovery blocker; do not broaden access.
Use the numeric Telegram user ID, not a phone number, username, chat/group ID, or bot ID. In this single-user example, 123456789 is a placeholder: replace it with the verified, approved user ID and retain any other approved entries.
openclaw config set channels.telegram.allowFrom '["123456789"]' --strict-json
Multi-field changes in one validated write:
openclaw config patch --stdin <<'JSON'
{ channels: { telegram: { enabled: true, groupPolicy: "allowlist" } } }
JSON
In-session alternative: call the connect_channel tool action with the channel id — the operator enters the token in a masked prompt, never in chat. Avoid openclaw channels add --token <value>: it puts the secret in argv and process listings.
Repair
openclaw doctor --lint
openclaw channels status --probe
doctor --lint can exit 1 for findings: read the report and continue the remaining checks. Ordinary doctor and doctor --non-interactive can write config/state; do not use them for diagnosis before approval. Apply openclaw doctor --fix --non-interactive only after explicit approval, then re-check status.
Prove
Send one real, clearly labeled test message and confirm delivery from the command result (use --dry-run first to inspect the payload):
openclaw message send --channel telegram --target <chatId> --message "OpenClaw channel test — please ignore" --dry-run
openclaw message send --channel telegram --target <chatId> --message "OpenClaw channel test — please ignore"
If sending fails, report the exact account, permission, destination, or network blocker without exposing credentials.
Report
State the channel and account changed, the exact config paths written (never values), the test destination, and the observed delivery result. List any remaining operator action.
Further reference: https://docs.openclaw.ai/channels/telegram (and the matching page for other channels)
Câu hỏi thường gặp
Token bot của tôi có bị lưu dạng văn bản thuần không?
Không. Token được lưu dưới dạng tham chiếu tới một biến môi trường hoặc file bảo mật, nên chính bí mật không được ghi vào cấu hình.
Skill có thay đổi ai được phép nhắn cho bot không?
Skill giữ nguyên các thiết lập quyền truy cập đã được duyệt trừ khi bạn đồng ý thay đổi, và không mở rộng quyền chỉ để vượt qua một bước kiểm tra.
Skill hỗ trợ những ứng dụng chat nào?
Skill hỗ trợ nhiều ứng dụng chat, gồm Telegram và Discord, và mỗi ứng dụng có các thiết lập riêng.
Chi tiết
Mô tả gốc của tác giả
Configure and prove a chat channel with non-interactive one-liners; secrets only as SecretRefs.
repo: openclaw/openclaw
Độ phổ biến
- Sao GitHub
- 394k
- Vị trí xếp hạng
- #11
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
discord-user-post
394kCho phép agent của bạn đăng tin nhắn đã duyệt lên Discord dưới tên bạn qua app Discord trên máy tính, sau khi xác nhận đúng kênh.
discrawl
394kCho phép agent của bạn tìm kiếm và tóm tắt kho lưu trữ tin nhắn Discord trên máy, kiểm tra độ mới của dữ liệu và đọc tin nhắn trực tiếp.
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
graincrawl
394kCho phép agent của bạn tìm trong ghi chú cuộc họp và bản chép lời Granola đã lưu, kiểm tra độ mới và đếm số cuộc họp trong một khoảng thời gian.
Skill tương tự
to-questionnaire
310kBiến một câu hỏi bạn không tự trả lời được thành bảng câu hỏi bằng văn bản để người khác điền, qua email hoặc trong cuộc họp.
email-ops
280kGiúp agent quản lý email, sắp xếp hộp thư và kiểm tra việc gửi thư. Đảm bảo các thư quan trọng được gửi đi và theo dõi được.
messages-ops
280kGiúp agent đọc tin nhắn và mã xác minh. Hữu ích để kiểm tra cuộc trò chuyện trước khi trả lời hoặc chứng minh đã xem tin nhắn nào.