WhatsApp Integration Setup
Learn how to integrate WhatsApp with your AI4Africa bot. Choose between Twilio, Meta Cloud API, or WAHA.
Choose Your Provider
Meta Cloud API
Official Cloud API direct from Meta. No on-prem server required.
Recommended for production if you have a verified WhatsApp Business account.
Twilio (Recommended)
Official WhatsApp Business API provider with enterprise-grade reliability
Recommended for businesses requiring reliable service and official support
WAHA
Connect using your existing WhatsApp account through WAHA server
Suitable for testing or personal use. Not recommended for production.
Bailey AI4Africa
AvailableOur custom WhatsApp automation solution built specifically for African businesses.
Get started with Bailey AI4Africa for reliable WhatsApp automation.
Setup Instructions
Twilio Setup
1. Twilio Account Setup
- Sign up for a Twilio account at twilio.com
- Navigate to the WhatsApp section in your Twilio Console
- Follow Twilio's verification process for WhatsApp Business API
2. Get Your Credentials
Account SID & Auth Token
Find these in your Twilio Console dashboard
WhatsApp Number
Your approved WhatsApp Business number
3. Configure Webhook
After creating your bot, you'll receive a webhook URL. just Copy and paste this URL to your Twilio WhatsApp configuration:
https://api.ai4africa.app/api/v1/whatsapp/webhook/[bot_id]
WAHA Setup
1. Server Setup
- Set up a server to host WAHA
- Install Docker on your server
- Pull and run the WAHA Docker image
2. WhatsApp Connection
After starting WAHA, you'll need to:
- Scan the QR code with your WhatsApp
- Wait for the connection to be established
- Copy your WAHA API token
Security Notice
WAHA provides unofficial access to WhatsApp. Use this method with caution and be aware of potential WhatsApp terms of service implications.
Troubleshooting
Common Issues
Webhook Not Receiving Messages
Verify your webhook URL is correct and your server is accessible from the internet
WAHA Connection Issues
Ensure your WAHA server is running and your WhatsApp is connected