Kỹ thuật Tích hợp Hệ sinh thái (Messaging & Gateway Engineering)Updated: 2026-11-247 min read
Connect Zalo OA/ZBS & 8 BYO SMS Providers via Unified Gateway
Avoid writing bespoke vendor wrappers. Habify Base wraps Zalo OA token refresh (OAuth v4 + PKCE) and 8 BYO SMS carriers behind one consistent server API.
Key Takeaways
- Zalo ZBS & customer care messages backed by automated OAuth v4 + PKCE token lifecycle
- 8 BYO SMS providers supported: eSMS, SpeedSMS, VietGuys, FPT, VHT, Twilio, Vonage, Generic VN
- Built-in URL shortening for SMS links via link-service with click analytics
- Multi-channel escalation across in-app inbox, push, email, Zalo, and SMS
Step 1: Authorize Your Organization's Zalo OA via OAuth v4 + PKCE
Call connectOa() to start Zalo OAuth v4 + PKCE. Once authorized, tokens are encrypted in your project Vault and refreshed automatically.
ts
const { authorize_url } = await habifyServer.zalo.connectOa({
redirect_uri: "https://yourapp.vn/admin/zalo/callback"
});Step 2: Register BYO SMS Brandname & Dispatch Messages
Register your BYO SMS provider credentials and send messages through one typed SDK method.
ts
await habifyServer.sms.sendMessage({
provider_account_id: process.env.SMS_ACCOUNT_ID!,
sender: "YOURBRAND",
to: "0909123456",
template_code: "order_confirmed",
variables: { order_id: "HB-2026" }
});Frequently Asked Questions
Does Habify resell ZBS or SMS message credits?
No. All Zalo OA and SMS routes operate strictly in BYO mode using your own carrier contracts and sender IDs.