babyvibe/deplao-builder
À propos
App Desktop integration Zalo, Facebook & Telegram personal for Multi-Account management, CRM, Marketing, POS, ERP, Workflow and AI Assistant integration. Built on top of zca-js, fbchat-v2, telegram-api.
Gestion et financeWhat you can do
- 👤 Multi-account Zalo, Facebook Messenger, Telegram Bot, Telegram User - unlimited accounts, fast switching
- 💬 Unified inbox - merged mode consolidates conversations from multiple accounts into one view
- 📱 Old message sync - pull Zalo chat history from your phone into the app by time range; sync Facebook Messenger history by time range
- 👥 CRM & Campaign - contacts, labels, internal notes, re-engagement; campaigns for friends and customers who have messaged you, with a chat-style content preview and realtime stats
Progression mesurée des étoiles
- in 24h
- -1
- in 7 days
- 0
- in 15 days
- +6
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalDeplao
Desktop app for managing multiple Zalo, Facebook Messenger & Telegram accounts CRM · Marketing · ERP · POS · Workflow · AI Assistant — all in one unified workspace
📥 Download | ✨ Features | 🔒 Security | 🛠️ Tech Stack | 📦 Install | 🌐 Public API | 📝 MIT | 📞 Contact
⬇️ Download
|
Deplao-Setup-26.12.0.exe |
Deplao-26.12.0-arm64.dmg |
|
Deplao-26.12.0.AppImage |
Deplao-26.12.0.dmg |
⚠️ Security warning on first launch (blocked by Windows / macOS / Linux)
Deplao is not code-signed (we're bootstrapped), so your OS may show a warning when opening the installer.
🪟 Windows (.exe)
Windows may show "Windows protected your PC":
👉 How to proceed:
- Click More info
- Click Run anyway
🍎 macOS (.dmg)
macOS may show "cannot be opened because it is from an unidentified developer"
👉 How to proceed:
Option 1:
- Right-click the file → Open
- Click Open again
Option 2 (if still blocked):
- Go to System Settings → Privacy & Security
- Scroll down to Security
- Click Open Anyway
🐧 Ubuntu Linux (.AppImage)
After downloading the .AppImage file:
chmod +x Deplao-*.AppImage
./Deplao-*.AppImage
If you get "FUSE: fuse2 not available", install
libfuse2:sudo apt install libfuse2
Or install the .deb package:
sudo dpkg -i Deplao_*_amd64.deb
🚀 What is Deplao?
At a glance, Deplao is:
- An operations hub: multiple Zalo, Facebook Messenger, Telegram accounts, a unified inbox, quick replies, chat history sync
- A customer management layer: CRM, labels, interaction history, campaigns for friends and customers who have messaged you
- An automation layer: workflows, AI, triggers and actions running in the background
- A business connection layer: POS, shipping, payments, Public API, webhooks and your own apps
- An internal management layer: reports, ERP, permissions, employee workspaces, cloud backups
✨ Highlights
- 👤 Multi-account Zalo, Facebook Messenger, Telegram Bot, Telegram User - unlimited accounts, fast switching
- 💬 Unified inbox - merged mode consolidates conversations from multiple accounts into one view
- 📱 Old message sync - pull Zalo chat history from your phone into the app by time range; sync Facebook Messenger history by time range
- 👥 CRM & Campaign - contacts, labels, internal notes, re-engagement; campaigns for friends and customers who have messaged you, with a chat-style content preview and realtime stats
- ⚙️ Workflow automation - drag-and-drop Trigger → Node → Action or chat with the AI copilot to build flows, test them in Simulation mode, run 24/7 with no code
- 🤖 AI Assistant - reply suggestions, in-chat AI Q&A, message classification and 24/7 auto-replies
- 🔗 External integrations - POS, shipping, payments, Google Sheets, Telegram, Email, HTTP Request... usable in chat or workflows
- 🧩 Apps & Public API - ~300 APIs, webhooks, realtime events and your own apps running inside Deplao
- ☁️ Internet & Cloud - a fixed Internet address through your own Cloudflare; media plus encrypted DB backup + sync on Cloudflare R2 or Google Drive (Google One), with usage and estimated cost; restore to a new machine
- 📈 Reports & analytics - track messages, contacts, labels, employees, campaigns, workflows, AI
- 🗂️ Internal ERP - tasks, calendars, notes and team coordination within the same system
- 🧑💼 Boss ↔ Employee workspaces - connect via LAN or the Internet, automatic reconnects, two-way realtime sync, fine-grained permissions and per-employee performance tracking
- 🎨 Light / Dark UI - one color system and component set, a compact navigation bar with a "Tools" group
- 🔒 Per-account proxy - assign a dedicated proxy to each account, add / change / remove it anytime without logging in again
- 🔐 Local-first data - prioritizes data ownership and security on the user's machine
Screenshots
Screens are ordered by real usage flow: dashboard → chat → CRM → workflow → integrations / reports / ERP → extension tools (demo data; the app UI is in Vietnamese).
Multi-account dashboard |
Unified chat with AI reply suggestions |
CRM & contacts |
Campaigns for friends & customers |
Workflow editor |
Workflow details |
Create workflows by talking to AI |
POS, shipping & payment integrations |
Reports & analytics |
Employee management |
Internal ERP |
Apps, API & Webhook |
Internet & Cloud (Cloudflare · Google Drive) |
Sync old messages from your phone |
🎯 Who is it for?
Deplao is a great fit for:
- Online shops and sales teams closing orders via Zalo, Facebook Messenger, Telegram
- Workflow automation and customer care, with campaigns for friends and customers who have messaged you
- SMEs needing multiple staff handling inboxes simultaneously
- Marketing agencies or freelancers managing multiple client accounts
- Spas, clinics, education, F&B and businesses requiring recurring customer care
- Teams wanting chat, CRM, workflow, AI and ERP in a single desktop app
- Developers who want to connect Zalo, Facebook Messenger, Telegram to their own systems via the API, webhooks or custom apps
🧩 Core feature groups
1) Multi-account & unified inbox
- Log in to multiple Zalo (personal / Business), Facebook Messenger, Telegram bot and Telegram user accounts
- Visual account management dashboard; re-login Facebook Messenger in place when the session expires
- Merge multiple accounts into one unified inbox
- Accent-insensitive search by name, nickname, phone number
- Quick filters: unread, labels (Local / Zalo) and channel
- Quick actions: create groups, join a group by link, add friends, add appointments and notes
- Bulk mark-as-read by the time of the last message (runs in the background), synced to Zalo, Telegram, Facebook Messenger
- Sync old Zalo messages from your phone by time range; sync Facebook Messenger history per account and time range
- Assign a dedicated proxy per account
2) Full-featured chat
- Send rich text, images, albums, videos, files, voice messages
- Send emoji, stickers, replies, member mentions, reactions
- Send polls, group notes, reminders, contact cards
- Quick messages: save message templates and trigger them by keyword
- Unlimited pinned messages, Starred messages, Zalo My Documents, media and file management
- Correct forwarding for every Zalo message type, date markers while scrolling, photo gallery
- Telegram: create groups / channels, group / channel management, contacts, call log, Sticker · GIF panel synced with your account
3) CRM & customer care
- Sync friends, joined groups and contact profiles
- Store phone number, gender, birthday, internal notes
- Two-way Zalo label sync and Local labels shared across accounts
- Filter contacts by multiple criteria for targeted outreach
- Send campaigns to friends and customers who have messaged you (messages, group invites) with realtime progress; chat-style content preview, send image first / text first or merge image + text
4) Workflow automation
- No-code drag-and-drop workflows with an auto-layout button
- Chat-style AI copilot to create and edit workflows from prompts (see section 7)
- Simulation mode to test runs without sending real messages
- Triggers: messages, labels, reactions, cron schedules, group events, webhooks...; filters by sender role, only when @mentioned
- Actions: send messages, images/files, find users, manage groups, mute, forward, recall...
- Integrations: logic, Google Sheets, AI, Telegram, Email, Notion and HTTP Request
- Execution history for easy debugging
5) Sales integrations
- POS: KiotViet, Haravan, Sapo, Nhanh.vn, Pancake POS
- Shipping: GHN, GHTK
- Payments: Sepay, Casso
- AI Assistant for reply suggestions and in-chat Q&A (see section 7)
- Combine into closed-loop sales and customer care workflows
6) Reports, ERP & employee management
- Reports: messages, contacts, campaigns, workflows, AI, employees
- Internal ERP: Tasks, Calendar, Notes; work alerts to employees via Zalo (new tasks, due soon, leave requests)
- Boss ↔ Employee model with module-level permissions; employees only see their assigned accounts
- Employees connect over LAN or the Internet, reconnect automatically, realtime sync including edits / deletes / reactions
- Track individual and team performance across time periods
7) 🤖 AI Assistant
- Smart reply suggestions in conversations
- Ask AI questions directly in the chat window
- Create and edit workflows with Vietnamese prompts through the AI copilot — no drag-and-drop needed
- Use AI nodes in workflows to build 24/7 auto-reply chatbots
- Multi-platform AI support: OpenAI, Claude, Gemini, DeepSeek, Grok, … and local AI gateways like 9Router, OpenRouter, etc.
8) 🧩 Apps, Public API & Webhook
- Public API v1 with ~300 operations, API keys scoped by permission / account / IP / expiry, request log
- Realtime events and signed outgoing webhooks, a docs page + OpenAPI
- Install or write your own apps that run inside Deplao, with an SDK and CLI (see Public API)
9) ☁️ Internet & Cloud (Cloudflare · Google Drive)
- One place to configure your Internet address (temporary address, automatic Cloudflare, ngrok, manual Cloudflare) for remote employees, webhooks and payments
- Choose where to store: Cloudflare R2 or Google Drive (Google One) — sign in to Google in your browser; Deplao only sees the files it created
- Store media on the chosen storage, fetch it back when local files are missing, optionally free up disk space
- Back up & sync the DB to the chosen storage, encrypted on your machine; restore to a new or standby machine
- Usage & cost: % of the free tier and billing thresholds, this month's estimated cost (R2), what counts as a write / read / download
🔒 Security & data
Deplao is designed to run locally on the user's machine:
- All messages, contacts, CRM data, settings and media are stored locally
- Zalo logs in with a QR code and no password is stored; login sessions (cookies, tokens) stay on the machine and are encrypted with the OS key (Zalo and Telegram sessions, bot tokens, Facebook Messenger cookies)
- Storage directory can be moved to another drive at any time
- The cloud is optional and uses your own Cloudflare / Google account (on Google Drive, Deplao only gets access to the files it created); DB backups are encrypted on the machine before upload
- The Public API is off by default, API keys are limited by permission, account and IP; apps run only within the permissions you approved
- Employees can only access their assigned accounts; locking an employee or changing their password revokes their session immediately
- Ideal for teams wanting tighter internal data control
- Deplao is a tool for managing your own accounts: follow the terms of Zalo, Facebook Messenger, Telegram and the personal data protection rules that apply to you; do not use it to send spam or collect data unlawfully
💻 Runtime requirements
- Stable 24/7 internet connection for conversation sync and automation
- Keep the app running if using workflows or team operations
🛠️ Tech Stack
Deplao is built on the following core technologies:
- Messaging libraries: zca-js (Zalo), fbchat-v2 (Facebook Messenger, a Go bridge based on mautrix-meta), GramJS (Telegram User), Telegram Bot API
- AI Gateway: 9router, OpenRouter or direct OpenAI, Claude, Gemini...
- Languages: TypeScript, JavaScript, Go, SQL, HTML, CSS
- Desktop: Electron, React, Vite
- UI: Tailwind CSS, PostCSS
- Local storage: SQLite via
better-sqlite3 - State & UI specialized: Zustand, React Flow, Recharts, Quill
- Realtime & API: Socket.IO, REST API v1 + OpenAPI, webhooks
- Cloud (optional): Cloudflare Tunnel, Cloudflare R2, Google Drive API (Google One)
- Integrations & automation: Axios, Google APIs / Google Sheets, node-cron, Telegram Bot API, etc.
Installation
🛠️ Build from source
Requirements
- Windows 10/11, macOS (Apple Silicon / Intel), or Ubuntu 20.04+
- Node.js 18+ recommended
- npm 9+
Install dependencies
npm install --legacy-peer-deps
Run in development mode
npm run dev
Build production app
npm run production
Local data
- App data is stored in local SQLite
- Storage directory can be changed in
Settings
🗺️ Architecture & Flow Diagrams
1️⃣ Build Pipeline
flowchart LR
subgraph SRC["📁 Source Code"]
E("⚡ electron/\n*.ts")
S("🔧 services/\n*.ts")
R("🎨 src/ui/\n*.tsx")
G("🐹 bridge-e2ee/\nGo")
end
subgraph COMPILE["🔨 Compile"]
TSC("tsc\ntsconfig.electron")
VITE("vite build\n+ Tailwind CSS")
GO("go build\nfbchat-v2 bridge")
end
subgraph OUT["📦 Output"]
DE("dist-electron/\nmain · services · ipc")
D("dist/\nindex.html · assets")
B("bridge-e2ee/build/\nfbchat bridge")
end
subgraph PKG["🚀 Package"]
EB(("electron\nbuilder"))
WIN("🪟 Windows\n.exe / dir")
MAC("🍎 macOS\n.dmg arm64 · x64")
LIN("🐧 Linux\n.AppImage · .deb")
end
E & S --> TSC --> DE
R --> VITE --> D
G --> GO --> B
DE & D & B --> EB --> WIN & MAC & LIN
2️⃣ Runtime Architecture
mindmap
root((🖥️ Deplao))
⚙️ Main Process
📡 IPC Handlers
login · zalo · fb · telegram
crm · workflow · erp
api · plugins · cloudflare
🔧 Services
DatabaseService
WorkspaceManager
WorkflowEngineService
CRMQueueService
HttpRelayService
ApiRouter · Webhook
PluginManager
AIAssistantService
🎨 Renderer
⚛️ React Pages
Dashboard
Chat & Inbox
CRM & Campaign
Workflow Editor
Integrations · Apps
ERP · Settings
🗃️ Zustand State
accountStore
chatStore
workspaceStore
employeeStore
📱 Messaging channels
zca-js · Zalo
fbchat-v2 · Facebook Messenger
GramJS · Telegram User
Bot API · Telegram Bot
🌐 External APIs
OpenAI · Claude · Gemini
Google Sheets
KiotViet · Haravan · Sapo
GHN · GHTK
Cloudflare Tunnel · R2
Google Drive
3️⃣ Boss ↔ Employee Model (REST API)
flowchart TB
subgraph BOSS["🖥️ BOSS Machine - Local Workspace"]
BZ("📱 Zalo / FB / Telegram\nAccounts")
BSV("🔧 Services\nCRM · ERP · AI · Workflow · Library")
BSD[("🗄️ SQLite DB\n+ Media Files")]
BRL("🔁 Relay Server\nHTTP REST + Socket.IO :9900")
BRS("📡 REST API Handlers\n/api/query | /api/command\n/api/library | /api/media")
end
subgraph NET["🌐 Connection"]
LAN("🏠 LAN\n192.168.x.x:9900")
WAN("🌍 Internet\nCloudflare Tunnel / ngrok")
end
subgraph EMP["💻 Employee - Remote Workspace"]
EA("📲 Deplao App\nEmployee Mode")
DA("🔀 DataAccessor\nauto routing")
RQ("🌐 RestQueryService\nHTTP REST client")
EP("🔐 Permission Filter\nerp · crm · workflow · ...")
EU("👁️ UI\nassigned accounts only")
MC("📦 Media Cache\nworkspace → Boss → CDN")
EC("⚡ Employee Cache\nconversations · messages · labels")
end
BZ --> BSV
BSV <--> BSD
BSV --> BRL
BRL --> BRS
BRL <-->|HTTP REST + Socket.IO| LAN & WAN
LAN <-->|HTTP fetch| RQ
WAN <-->|HTTP fetch| RQ
RQ -->|/api/query · /api/command| BRS
RQ -->|/api/media| MC
RQ -->|/api/library| BSV
EA --> DA -->|boss mode → IPC| EU
DA -->|employee → REST| RQ
EA --> EP --> EU
EA --> EC
EA --> MC
Employees fetch data through the REST API (HTTP fetch → Boss) instead of syncing the whole DB. DataAccessor routes automatically: standalone/boss → direct IPC, employee → RestQueryService → Boss. Socket.IO carries realtime events, with automatic reconnects and missed-event catch-up. Media is cached locally with a workspace → Boss → CDN cascade. An employee's Facebook Messenger / Telegram actions run through the Boss machine. Remote employees connect through a fixed Internet address (Cloudflare Tunnel) or ngrok.
4️⃣ Multi-account & Local Storage
flowchart LR
subgraph ACCS["👤 Accounts"]
Z1("Zalo #1\nzca-js")
ZN("Zalo #N\nzca-js")
FB("Facebook Messenger\nfbchat-v2 bridge")
TG("Telegram\nUser · Bot")
end
subgraph STORE["💾 Local Storage"]
DB[("🗄️ SQLite\ndeplao-tool.db\nmessages · contacts\ncrm · workflow · erp")]
MED("📁 FileStorage\n~/media/\nphotos · videos · files")
ES("🔑 electron-store\ncookies · tokens\nsettings")
end
subgraph WS["🗂️ Workspace Manager"]
WA("🏠 Local WS\nDefault")
WB("🌐 Remote WS\nBoss")
WC("⚙️ Custom WS\ncustom path")
end
subgraph CLOUD["☁️ Cloudflare R2 / Google Drive (optional)"]
R2M("Media")
R2B("DB backups\nencrypted on device")
end
Z1 & ZN & FB & TG -->|"messages · contacts"| DB
Z1 & ZN & FB & TG -->|"photos · videos · files"| MED
ES -->|"cookie session"| Z1 & ZN & FB & TG
DB & ES <-->|"path resolve\nswitch workspace"| WS
WA & WB & WC -.-|"each WS = own DB"| DB
MED -.->|"background upload"| R2M
DB -.->|"hourly / realtime"| R2B
Each Workspace has its own DB + media folder — switch or move to another drive without losing data. Media and the DB can also be backed up to your own Cloudflare R2 or Google Drive (Google One) and restored on a new machine.
🌐 Public API & Extension Apps
Deplao ships a Public API v1 with ~300 operations (accounts, Zalo / Facebook Messenger / Telegram chat, groups, labels, contacts, CRM, workflows, integrations, ERP, AI, reports, media, employees) to connect your website, n8n, sales software or your own systems. The API runs on the machine where Deplao is installed (default port 9900) and is off by default until you enable it. Every call goes through the app's normal flow: a message sent via the API shows up in the chat window, is saved to the DB and triggers workflows just like one you send yourself.
Quick start
- Open Tools → Apps, API & Webhook → API and turn on the API server.
- Click Create API key, choose scopes and allowed accounts. The
dpk_...key is shown only once. - Try it:
curl -H "Authorization: Bearer dpk_xxx" http://127.0.0.1:9900/api/v1/accounts
- Full docs (guides, endpoint list, "Try it" button, curl commands):
http://127.0.0.1:9900/docs - OpenAPI for Postman / Insomnia / SDK generation:
http://127.0.0.1:9900/api/v1/openapi.json - Realtime events (Socket.IO, SSE, polling) and outgoing webhooks with HMAC signatures and retries
- Remote access (employees, incoming webhooks, payments): use the Internet address from Settings → Internet & Cloud
Build your own apps
Apps (plugins) run inside Deplao: their own page, chat side panels, composer buttons, settings, workflow nodes and schedules. Install from a zip file or a folder and review permissions before they run; an app can only call the API within the permissions you approved and on the accounts you granted. The toolkit lives in packages/: the @deplao/plugin-sdk SDK and the deplao-plugin CLI.
node packages/plugin-cli/bin/deplao-plugin.js create my-app --runtime web
node packages/plugin-cli/bin/deplao-plugin.js validate my-app
node packages/plugin-cli/bin/deplao-plugin.js pack my-app --out my-app.zip
📣 Contact & support
- Bug reports, feedback or support: 👉 Open an issue
🙏 Acknowledgements
Special thanks to the projects: zca-js, fbchat-v2 (mautrix-meta) & GramJS.
📝 License
Distributed under the MIT license. See LICENSE for details.
Explorer des projets similaires
Chargement…