WhatsApp Integration
Communicate with your customers via WhatsApp using the WhatsApp Business API.
Requirements
For WhatsApp integration:
- A verified phone number
- WhatsApp Business account
- Meta Business account (optional)
Setup Steps
1. Connecting WhatsApp
- Go to Settings > Channels > WhatsApp
- Click the Connect WhatsApp button
- Scan the QR code with your phone
- Wait for the connection confirmation
2. Profile Settings
Configure your WhatsApp Business profile:
- Business name
- Category
- Description
- Address
- Website
3. Welcome Message
Automatic welcome message for first-time contacts:
Hello! Welcome to DOLU.ai.
How can I help you?4. Away Message
Automatic reply outside business hours:
We are currently outside business hours.
We will get back to you as soon as possible.
Business hours: Weekdays 09:00 - 18:00Message Types
Text Messages
You can send and receive regular text messages.
Media Messages
Supported formats:
| Type | Formats | Max Size |
|---|---|---|
| Image | JPG, PNG | 5 MB |
| Video | MP4 | 16 MB |
| Audio | MP3, OGG | 16 MB |
| Document | PDF, DOC | 100 MB |
Location
You can send and receive location information.
Contacts
Contact cards can be shared.
Message Templates
Use approved templates for WhatsApp Business API:
Template Types
- Informational: Order updates, appointment reminders
- Marketing: Campaigns and promotions (approval required)
- Authentication: OTP and verification codes
Creating a Template
- Go to Settings > Message Templates
- Create a New Template
- Select the category
- Write the content
- Add variables:
{{1}},{{2}}
- Submit for approval
Example Template:
Hello `{{1}}`,
Your order `{{2}}` has been shipped.
Tracking number: `{{3}}`
DOLU.ai24-Hour Rule
An important rule in WhatsApp Business API:
- You can send free replies within 24 hours after the customer sends a message
- After 24 hours, you can only send approved templates
Labels
Label conversations in WhatsApp:
- New customer
- Preparing for shipment
- Awaiting payment
- Completed
Bulk Messaging
Send bulk messages with approved templates:
- Go to Marketing > Campaigns
- Create a New Campaign
- Select the target audience
- Select the template
- Set the schedule
- Send
Prohibited Content
Content that should not be sent on WhatsApp:
- Spam and unsolicited messages
- Misleading content
- Illegal products
- Hate speech
- Adult content
Troubleshooting
QR Code Not Scanning
- Check your phone camera
- Increase screen brightness
- Refresh the page
Connection Lost
- Make sure your phone is connected to the internet
- Reconnect WhatsApp
- Re-open the session
Message Not Sending
- Check the number format (+90XXXXXXXXXX)
- Check internet connection
- Make sure the WhatsApp account is active
API Usage
bash
# Send message
POST /api/v1/messages/whatsapp
{
"to": "+905551234567",
"message": "Hello!"
}
# Template message
POST /api/v1/messages/whatsapp/template
{
"to": "+905551234567",
"template": "order_update",
"parameters": ["John", "12345", "ABC123"]
}Best Practices
- Respond quickly: Pay attention to the 24-hour rule
- Be personal: Use the customer's name
- Keep it short: Avoid long messages
- Use media: Visuals are effective
- Timing: Send messages at appropriate hours
