senclaw/ai-chat

app Nền tảng chatbot CSKH nhiều bot: mỗi bot có system prompt, kiến thức riêng (dùng lại knowledge của SenClaw), và CHÍNH SÁCH BẢO MẬT riêng — chỉ được truy cập đúng các MCP/skill cho phép trong cài đặt. Hỗ trợ kênh Telegram (polling) + Web (WebSocket) + Zalo OA + Facebook Messenger (đều polling, không webhook) và TikTok Shop IM (thử nghiệm). Là module chat hỗ trợ của AI Office: hội thoại có thể bàn giao (handoff) cho nhân sự/agent của văn phòng.

Install

senclaw app install senclaw/ai-chat

Verifies sha512 and SenClaw’s signature before writing to disk.

Documentation

AI Chat — SenClaw Space App

Nền tảng chatbot CSKH nhiều bot, port sang Rust từ ai-agent-chatbot (Go), theo khuôn mẫu apps/ai-office. Là module chat hỗ trợ của AI Office.

Điểm chính

  • Dùng lại SenClaw qua bridge (llm.request, agent.run, knowledge.*) — không có LLM/vector/DB riêng. Trạng thái app lưu trong SQLite (~/.senclaw/space-apps/ai-chat/ai-chat.db).
  • Mỗi bot có: system prompt, model, không gian kiến thức riêng ai-chat:<key> (dùng lại knowledge của SenClaw), và chính sách bảo mật riêng.
  • Chính sách MCP/skill cưỡng chế ở daemon: use_tools=true + allowed_mcp=[...] → agent chỉ nhận ĐÚNG các công cụ đó (thay đổi nhỏ, cộng thêm ở agent.run bridge lõi). allowed_mcp=[] ⇒ không có công cụ nào (không bao giờ mở "tất cả").
  • Kiến thức: màn hình Knowledge ghi thẳng vào knowledge space của SenClaw; engine tự chèn ngữ cảnh (pre-retrieval) nên cả bot không-công-cụ vẫn có RAG.
  • Kênh: Telegram (polling), Web (WebSocket), Zalo OA + Facebook Messenger (polling + Send API), TikTok Shop IM (thử nghiệm). Không dùng webhook → không cần domain/callback công khai.
  • Handoff / Support Inbox: hội thoại có thể bàn giao cho người thật hoặc cho AI Office.
  • **MCP ai-chat-mcp**: để daemon/AI Office điều khiển nền tảng (tạo/cấu hình bot, gửi tin, bàn giao…).

Chạy khi phát triển

cargo run -p ai-chat            # http://127.0.0.1:4440 (cần daemon SenClaw ở 18788)
npm --prefix apps/ai-chat/web run dev   # Vite dev server cho web UI

Đóng gói

apps/ai-chat/scripts/pack.sh    # build web + binary → release/ + ai-chat-app.zip

Cấu hình

  • PORT (mặc định 4440), SENCLAW_BASE_URL (mặc định http://127.0.0.1:18788), SENCLAW_SPACE_APP_ID (ai-chat).
  • Token/credential của từng kênh nhập trong màn hình Channels (lưu trong SQLite, che khi trả về UI).

Declared permissions

{
  "network": [
    "127.0.0.1"
  ],
  "exec": [
    "./ai-chat"
  ]
}

Declared by the publisher, not enforced by SenClaw. The CLI compares this against what you already have installed and asks before anything widens.

Published by

@senclawtrusted
benji
44 packages · 0 downloads · member since 2026-07 · GitHub since 2015-06

The checkmark means SenClaw confirmed who this publisher is. It says nothing about whether their packages are safe.

About

Owner@senclaw
Latest1.0.0
Downloads (30d)0
Repositorygithub.com/NortonBen/senclaw-app

Versions

VersionTagsArtifactsPublished
1.0.0latestdarwin-arm64, linux-x64, win32-x642026-08-07

Artifacts · 1.0.0

PlatformFormatSignatureFileSize
darwin-arm64zipunsignedai-chat-app.zip3482 KB
linux-x64zipunsignedai-chat-app.zip3841 KB
win32-x64zipunsignedai-chat-app.zip3800 KB

Unsigned builds require sign-in to download and are not distributed to the auto-updater, because unsigned executables from a new domain get flagged as unsafe. Sign and notarize (macOS) or Authenticode-sign (Windows) to distribute publicly.

Auto-update endpoints

For a Tauri app — add to tauri.conf.json:

"endpoints": ["https://senclaw.bacnd.com/api/v1/updates/tauri/senclaw/ai-chat/{{target}}/{{arch}}/{{current_version}}"]

For an electron-updater app — generic provider URL:

https://senclaw.bacnd.com/updates/senclaw/ai-chat/stable

Only signed/notarized artifacts are offered as updates — a client fetches the update without credentials, and unsigned binaries are not publicly downloadable.

Something wrong with this package?

Report this package

Report this package

Tell us what is wrong and a moderator will look at it. Be specific — a report that names a version and a behaviour can be checked in minutes; one that says “looks sketchy” cannot be acted on at all.

Not about this package? Contact us instead. What happens to a report is described in reporting and moderation.

API: GET https://senclaw.bacnd.com/api/v1/packages/senclaw/ai-chat