@kovaai/zalouser
v2.0.0-beta.3
Published
Kova Zalo Personal Account plugin via native zca-js integration
Downloads
76
Readme
@kovaai/zalouser
Kova plugin for Zalo Personal Account messaging via native zca-js integration.
Warning: Using Zalo automation may result in account suspension or ban. Use at your own risk. This is an unofficial integration.
Features
- Channel plugin integration with setup wizard + QR login
- In-process listener/sender via
zca-js(no external CLI) - Multi-account support
- Agent tool integration (
zalouser) - DM/group policy support
Prerequisites
- Kova Gateway
- Zalo mobile app (for QR login)
No external zca, openzca, or zca-cli binary is required.
Install
Option A: npm
kova plugins install @kovaai/zalouserOption B: local source checkout
PLUGIN_SRC=./path/to/local/zalouser-plugin
kova plugins install "$PLUGIN_SRC"
cd "$PLUGIN_SRC" && pnpm installRestart the Gateway after install.
Quick start
Login (QR)
kova channels login --channel zalouserScan the QR code with the Zalo app on your phone.
Enable channel
channels:
zalouser:
enabled: true
dmPolicy: pairing # pairing | allowlist | open | disabledSend a message
kova message send --channel zalouser --target <threadId> --message "Hello from Kova"Configuration
Basic:
channels:
zalouser:
enabled: true
dmPolicy: pairingMulti-account:
channels:
zalouser:
enabled: true
defaultAccount: default
accounts:
default:
enabled: true
profile: default
work:
enabled: true
profile: workUseful commands
kova channels login --channel zalouser
kova channels login --channel zalouser --account work
kova channels status --probe
kova channels logout --channel zalouser
kova directory self --channel zalouser
kova directory peers list --channel zalouser --query "name"
kova directory groups list --channel zalouser --query "work"
kova directory groups members --channel zalouser --group-id <id>Agent tool
The extension registers a zalouser tool for AI agents.
Available actions: send, image, link, friends, groups, me, status
Troubleshooting
- Login not persisted:
kova channels logout --channel zalouser && kova channels login --channel zalouser - Probe status:
kova channels status --probe - Name resolution issues (allowlist/groups): use numeric IDs or exact Zalo names
Credits
Built on zca-js.
