Plugins

Plugin ส่วนบุคคลสำหรับ Zalo

การรองรับ Zalo Personal สำหรับ OpenClaw ผ่าน Plugin โดยใช้ zca-js แบบเนทีฟเพื่อทำให้บัญชีผู้ใช้ Zalo ปกติทำงานอัตโนมัติ

การตั้งชื่อ

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

ตำแหน่งที่รัน

Plugin นี้รัน ภายในกระบวนการ Gateway

หากคุณใช้ Gateway ระยะไกล ให้ติดตั้ง/กำหนดค่าบน เครื่องที่รัน Gateway แล้วรีสตาร์ท Gateway

ไม่จำเป็นต้องใช้ไบนารี CLI ภายนอกของ zca/openzca

ติดตั้ง

ตัวเลือก A: ติดตั้งจาก npm

openclaw plugins install @openclaw/zalouser

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

รีสตาร์ท Gateway หลังจากนั้น

ตัวเลือก B: ติดตั้งจากโฟลเดอร์ในเครื่อง (dev)

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

รีสตาร์ท Gateway หลังจากนั้น

การกำหนดค่า

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

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

CLI

openclaw channels login --channel zalouser
openclaw channels logout --channel zalouser
openclaw channels status --probe
openclaw message send --channel zalouser --target <threadId> --message "Hello from OpenClaw"
openclaw directory peers list --channel zalouser --query "name"

เครื่องมือ Agent

ชื่อเครื่องมือ: zalouser

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

การดำเนินการกับข้อความ Channel ยังรองรับ react สำหรับการแสดงปฏิกิริยาต่อข้อความด้วย

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