Plugin guides

Zalo Personal 外掛

透過使用原生 zca-js 的外掛,讓 OpenClaw 支援 Zalo Personal,以自動操作一般 Zalo 使用者帳號。不需要外部 zca/openzca 命令列介面二進位檔。

命名

頻道 ID 為 zalouser,以明確表示這會自動操作個人 Zalo 使用者帳號(非官方)。另一個 zalo 頻道 ID 則是官方內建的 Zalo Bot/網路鉤子整合,請參閱 Zalo

執行位置

此外掛在閘道程序內執行。若使用遠端閘道,請在該主機上安裝並設定此外掛,然後重新啟動閘道。

安裝

從 npm 安裝

bash
openclaw plugins install @openclaw/zalouser

使用不含版本的套件名稱即可跟隨目前的官方發行標籤;只有在需要可重現的安裝時,才固定使用確切版本。完成後請重新啟動閘道。

從本機資料夾安裝(開發)

bash
PLUGIN_SRC=./path/to/local/zalouser-pluginopenclaw plugins install "$PLUGIN_SRC"cd "$PLUGIN_SRC" && pnpm install

完成後請重新啟動閘道。

設定

頻道設定位於 channels.zalouser(而非 plugins.entries.*):

json5
{  channels: {    zalouser: {      enabled: true,      dmPolicy: "pairing",    },  },}

如需了解私訊/群組存取控制、多帳號設定、環境變數及疑難排解,請參閱 Zalo Personal 頻道設定

命令列介面

bash
openclaw channels login --channel zalouseropenclaw channels login --channel zalouser --account <name>openclaw channels logout --channel zalouseropenclaw channels status --probeopenclaw message send --channel zalouser --target <threadId> --message "Hello from OpenClaw"openclaw directory self --channel zalouseropenclaw directory peers list --channel zalouser --query "name"openclaw directory groups list --channel zalouser --query "name"openclaw directory groups members --channel zalouser --group-id <id>

代理程式工具

工具名稱:zalouser

操作:sendimagelinkfriendsgroupsmestatus

頻道訊息操作(非代理程式工具)也支援使用 react 新增訊息表情回應。

相關內容

Was this useful?
On this page

On this page