WhatsApp Business Integration
Learn how to connect WhatsApp Business to ReplyDock and configure API access.
WhatsApp Business Integration
Connect your WhatsApp Business account to ReplyDock to manage customer conversations from WhatsApp in your centralized dashboard.
Prerequisites
Before you begin, ensure you have:
- A WhatsApp Business Account (not personal WhatsApp)
- A Facebook Business Manager account
- Admin access to both accounts
- A ReplyDock account with Admin permissions
- A verified business phone number
Overview
WhatsApp Business integration uses the WhatsApp Business API (Cloud API) provided by Meta. This guide covers two methods:
- Quick Setup - Using ReplyDock's guided integration (recommended)
- Manual Setup - For advanced users or custom deployments
Method 1: Quick Setup (Recommended)
Step 1: Start Integration
- Log in to your ReplyDock dashboard
- Navigate to Settings → Integrations
- Click on the WhatsApp Business card
- Click Connect WhatsApp Business
Step 2: Connect Facebook Account
- You'll be redirected to Facebook's authorization page
- Log in with your Facebook Business Manager credentials
- Select the Facebook Business Account you want to use
- Review and accept the permissions:
- Manage WhatsApp Business accounts
- Send and receive WhatsApp messages
- Access business profile information
- Click Continue
Step 3: Select WhatsApp Business Account
- Choose your WhatsApp Business Account from the list
- Select the phone number you want to connect
- Verify the phone number is correctly displayed
- Click Confirm
Step 4: Configure Message Settings
- Set up your business profile:
- Business name
- Business description
- Profile photo
- Business category
- Configure automated messages:
- Greeting message: Sent when customers first message you
- Away message: Sent when your team is offline
- Quick replies: Pre-configured response buttons
- Click Save & Continue
Step 5: Test Your Connection
- Send a test message to your WhatsApp Business number
- Verify it appears in your ReplyDock inbox
- Reply to the test message from ReplyDock
- Confirm the reply is delivered to WhatsApp
Method 2: Manual Setup (Advanced)
For self-hosted deployments or custom integrations, you can manually configure WhatsApp API access.
Step 1: Create a Meta App
- Go to Meta for Developers
- Click My Apps → Create App
- Select Business as the app type
- Fill in app details:
- App name: "ReplyDock WhatsApp Integration"
- App contact email: your-email@company.com
- Business Account: Select your Facebook Business Manager
- Click Create App
Step 2: Add WhatsApp Product
- In your app dashboard, click Add Product
- Find WhatsApp and click Set Up
- Select Cloud API (not On-Premises API)
- Click Get Started
Step 3: Get Your API Credentials
- Navigate to WhatsApp → API Setup
- Copy the following credentials:
- Phone Number ID: Found under "Phone number ID"
- WhatsApp Business Account ID: Found under "WhatsApp Business Account ID"
- Generate an access token:
- Click Generate Token
- Select your app and required permissions
- Copy the Temporary Access Token (valid for 24 hours)
Step 4: Create a System User (Permanent Token)
For production use, create a permanent access token:
- Go to Facebook Business Manager
- Navigate to Business Settings → Users → System Users
- Click Add and create a new system user:
- Name: "ReplyDock API User"
- Role: Admin
- Click Add Assets
- Select your WhatsApp app and grant full control
- Generate a token:
- Click Generate New Token
- Select your app
- Choose permissions:
whatsapp_business_managementwhatsapp_business_messaging
- Set token expiration (60 days or Never)
- Copy and securely store the Permanent Access Token
Step 5: Configure Webhook
Set up a webhook to receive incoming WhatsApp messages:
- In your Meta app, go to WhatsApp → Configuration
- Click Edit in the Webhook section
- Enter your webhook URL:
https://your-replydock-instance.com/api/webhooks/whatsapp - Enter a Verify Token (create a random secure string)
- Click Verify and Save
- Subscribe to webhook fields:
messages- Receive incoming messagesmessage_template_status_update- Template status updates
Step 6: Add Credentials to ReplyDock
- In ReplyDock, go to Settings → Integrations → WhatsApp
- Click Manual Configuration
- Enter your credentials:
- Phone Number ID: Your Phone Number ID from Step 3
- Business Account ID: Your WhatsApp Business Account ID
- Access Token: Your permanent access token from Step 4
- Verify Token: The verify token you created in Step 5
- Click Save Configuration
- Click Test Connection to verify
Step 7: Register Your Phone Number
Before you can send messages, you must verify your business phone number:
- In Meta App dashboard, go to WhatsApp → API Setup
- Click Add Phone Number
- Enter your business phone number
- Select verification method:
- SMS: Receive a code via text
- Voice: Receive a code via phone call
- Enter the verification code
- Complete business verification (if required)
Step 8: Configure Message Templates
WhatsApp requires pre-approved message templates for business-initiated conversations:
Creating a Template
- In Meta App, go to WhatsApp → Message Templates
- Click Create Template
- Fill in template details:
- Template name: Use lowercase, underscores (e.g.,
order_confirmation) - Category: Select appropriate category (Marketing, Utility, Authentication)
- Language: Choose your primary language
- Template name: Use lowercase, underscores (e.g.,
- Add template content:
- Header (optional): Text, image, or document
- Body: Your message text (use
{{1}},{{2}}for variables) - Footer (optional): Additional info
- Buttons (optional): Call-to-action or quick reply buttons
- Click Submit for review
Templates typically take 24-48 hours for approval.
Using Templates in ReplyDock
- Navigate to Settings → WhatsApp → Message Templates
- Click Sync Templates to import approved templates
- When starting a new conversation with a customer, select a template
- Fill in any required variables
- Send the message
Step 9: Set Up Auto-Responses
Configure automated messages for common scenarios:
Greeting Message
-
Go to Settings → WhatsApp → Auto-Responses
-
Enable Greeting Message
-
Customize your welcome message:
Hi! 👋 Thanks for reaching out. How can we help you today? -
Set trigger: "First message from new contact"
-
Save changes
Away Message
-
Enable Away Message
-
Set your offline hours
-
Customize the message:
Thanks for your message! Our team is currently offline. Business hours: Monday-Friday, 9 AM - 6 PM EST We'll respond within 24 hours. -
Save changes
Step 10: Configure Message Routing
Set up how WhatsApp messages are assigned to your team:
- Navigate to Settings → Integrations → WhatsApp → Routing
- Choose routing strategy:
- Round Robin: Distribute evenly across available agents
- Load Balanced: Assign to agents with fewest active conversations
- Skill-Based: Route based on tags or keywords
- Set default assignee for unmatched messages
- Configure business hours and after-hours handling
- Save routing rules
Troubleshooting
Messages Not Appearing in ReplyDock
- Verify webhook is correctly configured and receiving events
- Check that your access token is valid and not expired
- Ensure Phone Number ID is correctly entered in ReplyDock
- Verify webhook subscription includes
messagesfield
Cannot Send Messages to Customers
- Template Required: For the first message in a conversation, you must use an approved template
- 24-Hour Window: After a customer messages you, you have 24 hours to reply freely without a template
- Token Expired: Regenerate your access token if needed
- Phone Number Not Verified: Complete phone number verification in Meta App
Template Rejected
- Review WhatsApp's Business Policy
- Avoid promotional language in Utility templates
- Use proper grammar and formatting
- Include opt-out information for Marketing templates
Webhook Verification Failed
- Double-check the verify token matches exactly
- Ensure your webhook URL is publicly accessible (not localhost)
- Check webhook endpoint is responding with correct challenge token
- Review server logs for error messages
Security Best Practices
- Protect access tokens: Never commit tokens to version control
- Use system user tokens: Avoid using personal Facebook account tokens
- Rotate tokens regularly: Update access tokens every 60 days
- Enable two-factor authentication: Secure your Meta and Facebook accounts
- Monitor API usage: Set up alerts for unusual activity
- Limit permissions: Only grant necessary WhatsApp permissions
Compliance & Best Practices
WhatsApp Business Policy
- Obtain consent: Only message customers who have opted in
- Respect opt-outs: Honor customer unsubscribe requests immediately
- Be transparent: Clearly identify your business in messages
- Quality matters: Maintain high message quality to avoid rate limiting
Data Privacy
- Customer conversations are end-to-end encrypted
- ReplyDock does not store message content on external servers
- Comply with GDPR, CCPA, and local data protection laws
- Include privacy policy link in your business profile
Rate Limits
WhatsApp enforces messaging limits based on your phone number's quality rating:
| Quality Rating | Daily Message Limit | | -------------- | ------------------- | | High | Unlimited | | Medium | 10,000 messages | | Low | 1,000 messages |
Maintain high quality by:
- Responding promptly to customer messages
- Avoiding spam or excessive promotional content
- Keeping conversation blocks below 2%
- Using approved message templates
Next Steps
- Configure Slack Integration
- Set up canned responses
- Create automated workflows
- Monitor analytics and performance
Need Help?
- Documentation: Visit our complete docs
- Support: Email support@replydock.app
- WhatsApp Issues: Check Meta's official documentation
- Community: Join our Slack community for tips and troubleshooting
Pro Tip: Start with a single phone number and test thoroughly before scaling to multiple numbers or high-volume messaging.