WhatsApp Chatbot which provide ISP Service to User
WhatsApp Bot Feature Specification for ISP Customers (Splynx Integration)
Objective:
To develop a WhatsApp chatbot that allows customers to interact with their internet service account using WhatsApp, connected to our self-hosted Splynx system via API.
π Main Menu β First Message: Please choose from the options below:
π 1- View account information and data usage
π« 2- Recharge via voucher
π° 3- Check balance
πΆ 4- Change service plan
π 5- Support & Auto-Replies
π 1. View Account Information and Usage
Bot Reply Example:
π Account Info:
π€ Username:
π€ Name:
π¦ Plan:
π Expiry Date
β± Speed:
π° Balance:
π§Ά Status: π₯ Online
π Data Used:
β± Remaining:
Suggested Splynx API Endpoints:
β’ GET /admin/customers β to fetch customer profile
β’ GET /admin/customers-services β to retrieve current plan
β’ GET /admin/customers/:id/internet-services-usage β for usage statistics
β’ GET /admin/customers/:id/main-balance β for current balance
β’ GET /admin/customers/:id/online-status β (if available)
π« 2. Recharge via Voucher
Flow:
β’ User sends: Recharge 1234567890
β’ Bot validates and replies:
o If invalid: This voucher does not exist or has already been used.
o If valid: Recharge successful. New balance: 47.50 LYD.
Suggested API:
β’ POST /admin/vouchers/redeem
π° 3. Check Balance
Bot Reply: Your current balance is: 0.00 LYD
Suggested API:
β’ GET /admin/customers/:id/main-balance
πΆ 4. Change Service Plan
Flow:
β’ Bot shows available plans:
markdown
-
BAYTTE β 4 Mbps β 50 LYD
-
MAX β 10 Mbps β 120 LYD
-
INFINITY β 12 Mbps β 180 LYD
β’ User selects option
β’ Bot confirms plan update
Suggested API:
β’ PUT /admin/customers-services/:id
(Requires passing the new service ID or plan ID)
π 5. Auto-Replies for Support
Example Keywords and Replies:
β’ Message: Support, Contact
Bot: Please call 091-XXX-XXXX or reply "agent" to speak with a representative.
β’ Message: Slow, Internet problem
Bot: Try restarting your router. If issue persists, reply "test" for a speed check.
β’ Backend Action:
No API needed unless you want to log user inquiries.
π Additional Notes:
β’ Customer should be matched by WhatsApp phone number β Splynx customer login or ID
β’ Splynx API access token will be required (basic or bearer auth)
β’ Secure server to host webhook endpoint (Python, Node.js, etc.)