The WhatsApp Business API integration enables the platform to receive customer messages via webhooks and send automated responses through Meta’s Cloud API.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/KevinhosUTP/Automatizacion-Lurwis/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Meta Business account
- WhatsApp Business app registered
- Phone number verified with Meta
- Access token from Meta for Developers
Webhook Setup
Create webhook endpoint
The platform exposes a webhook at
/webhook/meta-verify to receive WhatsApp messages.Configure webhook in Meta for Developers
Navigate to your WhatsApp Business app configuration:
- Go to Meta for Developers Console
- Select your app → WhatsApp → Configuration
- Add webhook URL:
https://your-domain.com/webhook/meta-verify - Set verify token:
meta-verify - Subscribe to messages field
Message Reception
When WhatsApp receives a message, Meta sends a POST request with this structure:Sending Messages
To send responses back to customers, the platform uses the WhatsApp Cloud API:Credentials Configuration
Store these credentials securely in n8n or environment variables:| Field | Description | Example |
|---|---|---|
| Access Token | Meta app access token | EAABsbCS... |
| Phone Number ID | WhatsApp Business phone number ID | 947279508470714 |
| Verify Token | Custom token for webhook verification | meta-verify |
| Webhook URL | Public endpoint for receiving messages | https://server.com/webhook/meta-verify |
Access tokens expire periodically. Use system user tokens for production to avoid expiration.
Error Handling
The webhook implements multiple error response scenarios:Rate Limits
- Business (unverified): 1,000 conversations per 24 hours
- Business (verified): Unlimited conversations
- Message rate: 80 messages/second per phone number
- Webhook timeout: 20 seconds
Testing
Test your webhook integration:Send test message
Send a message from your phone to the WhatsApp Business number and verify:
- Webhook receives the message
- Message is extracted correctly
- Response is sent back
Troubleshooting
Webhook verification fails
Webhook verification fails
- Verify the verify token matches exactly:
meta-verify - Check that webhook URL is publicly accessible
- Ensure HTTPS is properly configured
- Return challenge as plain text, not JSON
Messages not received
Messages not received
- Check webhook is subscribed to messages field
- Verify phone number has active WhatsApp Business API
- Check webhook logs in Meta console for errors
- Ensure endpoint returns 200 within 20 seconds
Cannot send messages
Cannot send messages
- Verify access token is valid and not expired
- Check phone number ID matches the business number
- Ensure recipient number is in E.164 format (e.g.,
51900769907) - Verify message template is approved (for initial contact)
Related Resources
WhatsApp Cloud API Docs
Official Meta documentation
Receptor Workflow
See how messages are processed