Back to Eliza

Zalo User Plugin

packages/docs/plugin-registry/platform/zalouser.md

2.0.11.7 KB
Original Source

The Zalo User plugin connects Eliza agents to Zalo via a personal account, enabling one-to-one and group messaging outside the Official Account API.

Package: @elizaos/plugin-zalouser

Installation

bash
eliza plugins install zalouser

Setup

1. Obtain Credentials

The Zalo User connector authenticates with a device IMEI and session cookie from your personal Zalo account.

2. Configure Eliza

Set environment variables:

bash
export ZALOUSER_IMEI=YOUR_DEVICE_IMEI
export ZALOUSER_COOKIE_PATH=/path/to/cookie

Or enable the connector in eliza.json:

json
{
  "connectors": {
    "zalouser": {
      "enabled": true
    }
  }
}

Environment Variables

VariableDescription
ZALOUSER_IMEIDevice IMEI identifier (required)
ZALOUSER_PROFILESProfile configuration
ZALOUSER_DEFAULT_PROFILEDefault profile to use
ZALOUSER_COOKIE_PATHPath to session cookie file
ZALOUSER_USER_AGENTUser agent string for requests
ZALOUSER_DM_POLICYDM policy (allow, deny, allowlist)
ZALOUSER_GROUP_POLICYGroup message policy (allow, deny)
ZALOUSER_ALLOWED_THREADSComma-separated list of allowed thread IDs
ZALOUSER_LISTEN_TIMEOUTTimeout for listening to events
ZALOUSER_ENABLEDEnable or disable the connector

Features

  • Personal-account one-to-one messaging (unlike the Official Account variant)
  • DM and group policy controls
  • Multi-profile support via ZALOUSER_PROFILES
  • Thread allowlisting via ZALOUSER_ALLOWED_THREADS