Plugin guides

Plugin ส่วนบุคคลของ Zalo

การรองรับ Zalo ส่วนบุคคลสำหรับ OpenClaw ผ่าน Plugin ที่ใช้ zca-js แบบเนทีฟเพื่อทำงานอัตโนมัติกับบัญชีผู้ใช้ Zalo ทั่วไป โดยไม่จำเป็นต้องใช้ไบนารี CLI ภายนอก zca/openzca

การตั้งชื่อ

รหัสช่องคือ zalouser เพื่อระบุอย่างชัดเจนว่าช่องนี้ทำงานอัตโนมัติกับ บัญชีผู้ใช้ Zalo ส่วนบุคคล (อย่างไม่เป็นทางการ) ส่วนรหัสช่อง zalo ที่แยกต่างหากคือการผสานรวม Zalo Bot/Webhook อย่างเป็นทางการที่รวมมาให้แล้ว โปรดดู Zalo

ตำแหน่งที่ทำงาน

Plugin นี้ทำงาน ภายในกระบวนการ Gateway สำหรับ Gateway ระยะไกล ให้ติดตั้งและกำหนดค่าบนโฮสต์นั้น แล้วรีสตาร์ต Gateway

การติดตั้ง

จาก npm

bash
openclaw plugins install @openclaw/zalouser

ใช้แพ็กเกจเปล่าเพื่อติดตามแท็กรีลีสอย่างเป็นทางการล่าสุด ระบุเวอร์ชันที่แน่นอนเฉพาะเมื่อต้องการให้การติดตั้งทำซ้ำได้ จากนั้นรีสตาร์ต Gateway

จากโฟลเดอร์ภายในเครื่อง (การพัฒนา)

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

จากนั้นรีสตาร์ต Gateway

การกำหนดค่า

การกำหนดค่าช่องอยู่ภายใต้ channels.zalouser (ไม่ใช่ plugins.entries.*):

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

โปรดดู การกำหนดค่าช่อง Zalo ส่วนบุคคล สำหรับการควบคุมการเข้าถึงข้อความส่วนตัว/กลุ่ม การตั้งค่าหลายบัญชี ตัวแปรสภาพแวดล้อม และการแก้ไขปัญหา

CLI

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

การดำเนินการ: send, image, link, friends, groups, me, status

การดำเนินการกับข้อความของช่อง (ไม่ใช่เครื่องมือเอเจนต์) ยังรองรับ react สำหรับการแสดงปฏิกิริยาต่อข้อความด้วย

ที่เกี่ยวข้อง

Was this useful?
On this page

On this page