Back to Eliza

Zalouser Connector

packages/docs/connectors/zalouser.md

2.0.12.4 KB
Original Source

Connect your agent to Zalo using a personal account for one-to-one messaging outside of the Official Account system.

Overview

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.

Package Info

FieldValue
Package@elizaos/plugin-zalouser
Config keyconnectors.zalouser

Installation

bash
eliza plugins install zalouser

Setup

  1. Export your Zalo session cookies from the official Zalo app or web client
  2. Note your device IMEI from the Zalo app
  3. Configure the environment variables or eliza.json

Configuration

Set credentials via environment variables:

bash
ZALOUSER_COOKIE_PATH=/path/to/cookies.json
ZALOUSER_IMEI=your-device-imei

Or configure in ~/.eliza/eliza.json:

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

Environment Variables

VariableRequiredDescription
ZALOUSER_COOKIE_PATHYesPath to exported Zalo session cookies
ZALOUSER_IMEIYesDevice IMEI from the official Zalo app
ZALOUSER_USER_AGENTNoBrowser user agent string
ZALOUSER_PROFILESNoMultiple account profiles (JSON)
ZALOUSER_DEFAULT_PROFILENoDefault profile name
ZALOUSER_ALLOWED_THREADSNoComma-separated allowed conversation thread IDs
ZALOUSER_DM_POLICYNoDM acceptance policy
ZALOUSER_GROUP_POLICYNoGroup message policy
ZALOUSER_LISTEN_TIMEOUTNoConnection timeout in milliseconds
ZALOUSER_ENABLEDNoEnable/disable the connector

Features

  • Personal account messaging — Use a personal Zalo account (not Official Account)
  • One-to-one conversations — Direct messaging with Zalo contacts
  • Multiple profiles — Configure multiple account profiles via ZALOUSER_PROFILES
  • Thread filtering — Restrict which conversations the agent participates in

Disabling

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