WhatsApp Account

Quản lý tập trung tài khoản WhatsApp Business với cấu hình, giám sát và tối ưu hiệu suất.

Quản Lý Tài Khoản
API Configuration
Template Sync
Performance Monitoring

Tổng quan WhatsApp Account

Module WhatsApp Account cung cấp giao diện quản lý tập trung cho tài khoản WhatsApp Business. Cho phép cấu hình nhiều tài khoản, quản lý credentials, đồng bộ templates, theo dõi usage và giám sát hiệu suất gửi tin nhắn.

Điểm chính

  • Quản lý nhiều tài khoản WhatsApp Business

  • Cấu hình API credentials an toàn

  • Đồng bộ message templates từ Meta

  • Theo dõi usage và billing

  • Monitor delivery rate và performance

  • Webhook configuration và testing

  • Health check tự động

  • Multi-user access control


Tạo và cấu hình tài khoản

Quy trình thiết lập tài khoản WhatsApp Business:

Các bước thực hiện

  • 1. Truy cập Settings > Technical > WhatsApp Accounts

  • 2. Click "Create" để tạo tài khoản mới

  • 3. Nhập tên tài khoản (internal reference)

  • 4. Nhập Phone Number ID từ Meta Business Manager

  • 5. Nhập WhatsApp Business Account ID (WABA ID)

  • 6. Nhập Access Token (permanent token khuyến nghị)

  • 7. Cấu hình webhook URL và verify token

  • 8. Test connection và lưu cấu hình


API Credentials Management

Quản lý thông tin xác thực API:

Điểm chính

  • Phone Number ID - ID của số điện thoại WhatsApp

  • WABA ID - WhatsApp Business Account identifier

  • Access Token - Token xác thực API (mã hóa trong DB)

  • API Version - Phiên bản WhatsApp API đang sử dụng

  • Token expiry tracking - Theo dõi hết hạn token

  • Token rotation support - Hỗ trợ xoay token

  • Credential validation - Kiểm tra tính hợp lệ

  • Secure storage - Lưu trữ an toàn với encryption


Template Synchronization

Đồng bộ message templates từ Meta Business Manager:

Điểm chính

  • Sync tự động templates đã được phê duyệt

  • Cập nhật status template (approved, rejected, pending)

  • Đồng bộ template parameters và structure

  • Multi-language template support

  • Template category mapping

  • Version control cho template changes

  • Scheduled sync để cập nhật định kỳ

  • Manual sync button cho cập nhật ngay


Webhook Configuration

Cấu hình webhook để nhận callback từ WhatsApp:

Điểm chính

  • Webhook URL - Endpoint nhận status updates

  • Verify Token - Token xác thực webhook

  • Webhook events subscription (messages, status)

  • Signature verification cho bảo mật

  • Retry policy cho failed webhooks

  • Webhook logs để debug

  • Test webhook functionality

  • IP whitelist cho webhook endpoint


Usage Tracking và Billing

Theo dõi sử dụng và chi phí:

Điểm chính

  • Số tin nhắn đã gửi theo ngày/tuần/tháng

  • Phân loại theo template type (marketing, utility)

  • Chi phí ước tính theo pricing tier

  • Conversation-based pricing tracking

  • Usage alerts khi đạt ngưỡng

  • Cost breakdown by template

  • Export usage reports

  • Budget management và forecasting


Performance Monitoring

Giám sát hiệu suất tài khoản:

Điểm chính

  • Delivery rate - Tỷ lệ gửi thành công

  • Read rate - Tỷ lệ tin nhắn được đọc

  • Average delivery time - Thời gian gửi trung bình

  • Failed message rate - Tỷ lệ thất bại

  • Error distribution - Phân bố lỗi

  • API response time tracking

  • Rate limit monitoring

  • Health score tổng thể


Health Check System

Hệ thống kiểm tra sức khỏe tự động:

Điểm chính

  • Periodic connection test

  • API credential validation

  • Webhook connectivity check

  • Template sync status verification

  • Rate limit status monitoring

  • Phone number status check

  • Alert khi phát hiện vấn đề

  • Auto-disable account khi lỗi nghiêm trọng


Multi-Account Management

Quản lý nhiều tài khoản WhatsApp:

Điểm chính

  • Tạo tài khoản cho từng brand/department

  • Phân quyền access theo user groups

  • Default account selection

  • Account switching trong workflows

  • Load balancing giữa các accounts

  • Failover sang backup account

  • Consolidated reporting across accounts

  • Centralized template library


Security Features

Tính năng bảo mật:

Điểm chính

  • Encrypted storage cho API credentials

  • Access control list (ACL)

  • Audit log cho mọi thay đổi

  • Two-factor authentication support

  • IP restriction cho API calls

  • Webhook signature verification

  • Token expiry notifications

  • Suspicious activity detection


Integration Settings

Cấu hình tích hợp với Odoo modules:

Điểm chính

  • Default templates cho từng module

  • Auto-send rules configuration

  • Fallback email settings

  • Notification preferences

  • Language detection settings

  • Time zone configuration

  • Opt-out management

  • GDPR compliance settings


Rate Limiting Configuration

Cấu hình giới hạn tốc độ gửi:

Điểm chính

  • Messages per second limit

  • Daily message quota

  • Tier-based rate limits

  • Burst allowance configuration

  • Queue management settings

  • Priority message handling

  • Throttling strategy

  • Rate limit alerts


Testing và Debugging

Công cụ test và debug:

Điểm chính

  • Send test message function

  • Template preview với sample data

  • Webhook test tool

  • API connection tester

  • Log viewer với filtering

  • Error code lookup

  • Message trace functionality

  • Debug mode cho detailed logging


Backup và Recovery

Sao lưu và khôi phục cấu hình:

Điểm chính

  • Export account configuration

  • Import configuration từ backup

  • Template backup và restore

  • Credential rotation procedure

  • Disaster recovery plan

  • Configuration versioning

  • Rollback capability

  • Migration tools cho account transfer


Mẹo sử dụng thực tế

Điểm chính

  • Sử dụng permanent token thay vì temporary

  • Backup credentials ở nơi an toàn

  • Set up webhook ngay từ đầu

  • Monitor health score hàng ngày

  • Sync templates định kỳ

  • Review usage reports hàng tuần

  • Test account sau mỗi thay đổi

  • Document account purpose và owner

  • Set up alerts cho critical metrics

  • Keep API version updated


Khắc phục sự cố

Giải pháp cho vấn đề thường gặp:

Điểm chính

  • Connection failed: Verify credentials và network

  • Template sync failed: Check WABA permissions

  • Webhook not receiving: Verify URL và firewall

  • High failure rate: Review phone number quality

  • Rate limit hit: Adjust sending speed

  • Token expired: Rotate và update token

  • Cost spike: Audit template usage

  • Health check failing: Run diagnostic tool


Best Practices

Thực hành tốt nhất:

Điểm chính

  • Separate accounts cho production và testing

  • Regular credential rotation

  • Monitor và optimize delivery rate

  • Keep templates organized và documented

  • Set realistic rate limits

  • Implement proper error handling

  • Regular backup của configuration

  • Train team trên account management

  • Document escalation procedures

  • Review security settings quarterly


Thuật ngữ quan trọng

Các khái niệm cần hiểu:

Điểm chính

  • Phone Number ID - Identifier của số WhatsApp

  • WABA - WhatsApp Business Account

  • Access Token - API authentication token

  • Webhook - Callback endpoint cho status updates

  • Template Sync - Đồng bộ templates từ Meta

  • Health Score - Điểm đánh giá sức khỏe account

  • Rate Limit - Giới hạn số tin nhắn/giây

  • Delivery Rate - Tỷ lệ gửi thành công