Skip to content

nightmare5831/ISP_WhatsApp-ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

46 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ISP_ChatBot--whatsapp

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

  1. BAYTTE – 4 Mbps – 50 LYD

  2. MAX – 10 Mbps – 120 LYD

  3. 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.)

About

WhatsApp Chatbot which provide ISP Service to User

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published