討論:OpenClaw/施采邑
跳至導覽
跳至搜尋
準備 line channel
用 Cloudflare Quick Tunnel 讓筆電中的 openClaw 擁有 URL
- 有此 URL , Line 公司的官方帳號才有辦法與筆電中的 OpenClaw 溝通
- 到「LINE Developers Console → 選擇你的 Provider → Messaging API Channel」
需要取得:- Channel secret:在「Basic settings」頁面。
- Channel access token:在「Messaging API」頁面底部產生,建議使用長效 token。
安裝
先備知識: openclaw 有數個內建助手(助理)
- main:預設進行一般對話的助理,用 talk to agent 可以叫出。
- crestodian:負責安裝、修復、模型選擇和路由設定,而不是平常對話。
以下操作均在有完整權限之 powerShell 中操作:
- 執行「iwr -useb https://openclaw.ai/install.ps1 | iex」
- 允許程式變更電腦
- 選用 openai-codex 模型
- 安裝外掛:openclaw plugins install @openclaw/line
- 加入 line 通訊渠道:openclaw channels add --channel line
互動如下:- Channel access token:貼上 LINE 的 Channel access token
- Channel secret:貼上 LINE 的 Channel secret
- DM policy:建議選 pairing
- Route to agent:選 main
- Webhook path:使用預設的 /line/webhook