ElRoi Pay
AdminIntegrationsWhatsApp Bot

WhatsApp Bot Integration

Manage bot credentials, linked accounts, transaction monitoring, and security controls.

Bot Active

WhatsApp Bot

Active & Running

WhatsApp Business: +233248073506

Disable Bot

API Provider

Meta Cloud API

Webhook Status

Connected

Webhook URL

https://api.elroipay.com/webhooks/whatsapp

12,847

WhatsApp-Linked Users

34.0% of 37,800 total users

3,241

Active Today

8,934

Transactions Today

267,420 this month

GHS 2,847,320

Volume Today

GHS 85,219,450 this month

127

Failed Transactions

1.2s

Avg Response Time

↓ 0.3s vs last week

3.2%

Human Escalation Rate

↓ 0.4% vs last week

14

Suspicious Alerts

Command Frequency Breakdown

BAL
45,23028.5%
SEND
38,94024.5%
STATEMENT
22,15013.9%
BNPL
18,67011.7%
SCORE
12,3407.8%
SUSU
9,8206.2%
TOPUP
6,5404.1%
POINTS
3,2102%
HELP
2,1001.3%

Total commands processed: 159,000 this month

Failed Commands Log(for UX improvement)

186 total failures
Failed CommandError TypeSuggested FixOccurrencesLast Seen
SENDD 50 0244123456typo
SEND
472025-02-10 16:42:15
BALLANCEtypo
BALANCE
342025-02-10 16:38:22
CHECK BALANCEunrecognized
BAL
282025-02-10 16:35:10
TRANSFER 100unrecognized
SEND
222025-02-10 16:30:45
MY SCOREunrecognized
SCORE
192025-02-10 16:28:33
PAYLATERtypo
BNPL
152025-02-10 16:25:18
SHOW TRANSACTIONSunrecognized
STATEMENT
122025-02-10 16:22:05
ADD MONEYunrecognized
TOPUP
92025-02-10 16:18:50

UX Improvement Opportunity: Consider adding natural language processing to auto-correct common typos like "SENDD" → "SEND" and "BALLANCE" → "BALANCE".

Account Linking Architecture

User sends LINK
Bot calls /api/whatsapp/link/initiate
6-digit OTP generated (5 min expiry)
OTP stored in user_whatsapp_links
User confirms OTP
WhatsApp # bound to user_id

Secure Execution Layer

Validate linked account
Validate user session status
Validate balance
Run fraud scoring
Log transaction
Require YES confirmation
Generate transaction hash
Store in audit_logs