Chuyển đến nội dung
Skillpedia
Email và tin nhắn394k · #11

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.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/openclaw/openclaw/blob/main/custodian-skills/configure-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

“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

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ự