OpenClaw-style chat bot: drive ARTEX from Telegram (inbound bridge + remote approvals)

オープン
#5 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Shiv9993 がすでに取り組んでいます。

2026年11月21日 から。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, typescript
領域
backend

調査の方向性

The issue names no files; start from the existing notify.KindTelegram channel and the HTTP endpoints that list and decide pending interception decisions, since both are to be reused. Then trace how the Main agent's task conversation is invoked from web chat so the bridge can relay into the same conversation. Done means a whitelisted chat can run /tasks, /pause, /resume, /findings, text reaches the selected task's agent, and Allow/Block buttons resolve a pending decision with a nonce; add the System Settings presence line and [tgbot] logs.

索引モデルが issue の本文から書いたものです。

説明

Idea

An always-on assistant bot in the spirit of OpenClaw: talk to your ARTEX from a chat app (Telegram first), get pushed what matters, and act remotely — instead of watching the web UI.

Why this is very feasible here

Most of the pieces already exist:

  • Telegram outbound is done: the notification system already ships a Telegram channel (bot token + chat id, notify.KindTelegram) — findings and digest pushes work today
  • The conversational brain exists: the Main agent is the human interface (task chat, hints, intent steering) and the Auto agent already creates/controls tasks and assets through natural language
  • Approvals have an API: pending interception decisions are listable and decidable over HTTP
  • The container has outbound network access, so long polling needs no inbound port

The missing piece is the inbound bridge: receive messages, route them to the right conversation, reply.

Proposed v1 scope

  • A single Telegram bot (token stored like a notify channel) with a strict chat-id whitelist — unknown chats get one refusal line and are ignored
  • Message routing:
    • plain text with a selected/last task → main-agent conversation of that task (same path as the web chat), reply relayed back, truncated with a link
    • /tasks, /task <id>, /pause <id>, /resume <id> → platform controls via the existing APIs
    • findings digest on demand (/findings)
  • Remote approvals: when an interception decision is pending, push it with inline keyboard buttons (Allow / Block / preview snippet); the callback hits the existing decision API
  • Presence: a small "bot online" indicator in the UI (System Settings), logs tagged [tgbot]

Security notes

  • whitelist is mandatory, not optional; no evidence bodies or credentials in outbound messages by default — summaries and links only (chat apps are an external data surface, unlike the local UI)
  • bot token lives in the DB like other channel secrets; rotating it must not require a restart
  • approvals via callback carry a per-message nonce so a leaked button URL cannot be replayed

Out of scope for v1

Other bridges (Discord, WhatsApp adapters) — the bridge core should be transport-agnostic so they slot in later; voice; proactive chatty summaries beyond the existing digest system.

Open questions

  • one bot per deployment or per task? (proposal: one bot, task chosen by command)
  • should the main-agent conversation history be shared between web chat and the bot? (proposal: yes, same conversation, so context stays single)
主要言語
Go
スター
18.7k
フォーク
7k
平均マージ
10時間 41分
マージ済み PR(30日)
342

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

BaaRai/ARTEX のほかの issue

BaaRai/ARTEX の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。