packages/docs/connectors/zalouser.md
Connect your agent to Zalo using a personal account for one-to-one messaging outside of the Official Account system.
The Zalouser connector is a personal-account variant of the Zalo connector. Instead of the Zalo Official Account API, it uses exported session cookies from a personal Zalo account to enable direct messaging.
| Field | Value |
|---|---|
| Package | @elizaos/plugin-zalouser |
| Config key | connectors.zalouser |
eliza plugins install zalouser
eliza.jsonSet credentials via environment variables:
ZALOUSER_COOKIE_PATH=/path/to/cookies.json
ZALOUSER_IMEI=your-device-imei
Or configure in ~/.eliza/eliza.json:
{
"connectors": {
"zalouser": {
"enabled": true
}
}
}
| Variable | Required | Description |
|---|---|---|
ZALOUSER_COOKIE_PATH | Yes | Path to exported Zalo session cookies |
ZALOUSER_IMEI | Yes | Device IMEI from the official Zalo app |
ZALOUSER_USER_AGENT | No | Browser user agent string |
ZALOUSER_PROFILES | No | Multiple account profiles (JSON) |
ZALOUSER_DEFAULT_PROFILE | No | Default profile name |
ZALOUSER_ALLOWED_THREADS | No | Comma-separated allowed conversation thread IDs |
ZALOUSER_DM_POLICY | No | DM acceptance policy |
ZALOUSER_GROUP_POLICY | No | Group message policy |
ZALOUSER_LISTEN_TIMEOUT | No | Connection timeout in milliseconds |
ZALOUSER_ENABLED | No | Enable/disable the connector |
ZALOUSER_PROFILES{
"connectors": {
"zalouser": {
"enabled": false
}
}
}