Overview
The WhatsApp Business integration supports:- Receiving messages from WhatsApp Business accounts
- Message processing by AGO agents
- Text messages with support for long responses (auto-split at 4096 characters)
- Media messages (images, documents, audio, video)
- Location sharing
- Secure webhook validation with HMAC-SHA256
Prerequisites
Before setting up the integration, you need:- Meta Business Account: A verified Meta Business account
- WhatsApp Business Platform Access: Access to the WhatsApp Business Platform through Meta
- System User: A System User with appropriate permissions for the WhatsApp Business Account
- Phone Number: A phone number registered with WhatsApp Business Platform
Setup Guide
There are two ways to connect a WhatsApp number. Connect WhatsApp is the recommended path: you sign in to Facebook in a popup and AGO collects the credentials for you. Manual setup is still available for cases where you already hold a System User token.Connect WhatsApp (recommended)
1
Start the connection
- Log in to your AGO Admin panel
- Navigate to Settings > Integrations > WhatsApp
- Click Connect WhatsApp
2
Sign in and pick your number
- A Facebook popup opens. Sign in with the account that manages your business.
- Select or create your Meta Business and WhatsApp Business Account.
- Pick or add the phone number you want to connect and verify it.
- The popup closes and returns you to AGO.
3
Finish the connection
- Enter the 6-digit PIN used for WhatsApp two-step verification on that number.
- Optionally choose an Assigned Agent to handle messages for this number.
- Click Finish connection.
During the Facebook popup, the business adds its own payment method in WhatsApp Manager. Meta bills WhatsApp conversation usage directly to that business — AGO only bills for the AGO subscription.
Manual setup (fallback)
Use this when you already have a System User access token and prefer to enter credentials by hand.1
Get Your WhatsApp Business Credentials
- Go to the Meta Business Suite
- Navigate to WhatsApp Manager
- Select your WhatsApp Business Account
- Note down the following:
- Phone Number ID: Found in the phone number settings
- WhatsApp Business Account ID (WABA ID): Found in the account settings
- Access Token: Generate a System User Access Token with
whatsapp_business_messagingandwhatsapp_business_managementpermissions
2
Add the Account in AGO
- Log in to your AGO Admin panel
- Navigate to Settings > Integrations > WhatsApp
- Expand Advanced: manual setup and click Add Account
- Fill in the required fields:
- Phone Number ID: Your WhatsApp Phone Number ID
- WhatsApp Business Account ID: Your WABA ID
- Access Token: Your System User Access Token
- Phone Number: The phone number (e.g., +1234567890)
- Display Name (Optional): A friendly name for the account
- Assigned Agent (Optional): Select a specific agent to handle messages
- Click Add Account
- The system will automatically test the connection
3
Test the Integration
- In the AGO Admin panel, find your connected account
- Click Test to verify the connection
- If successful, you’ll see the phone number details and quality rating
- Send a test message from WhatsApp to your business number
Supported Message Types
Incoming Messages (From Users)
Outgoing Messages (From AGO)
Features
Long Message Handling
WhatsApp has a 4096 character limit per message. AGO automatically splits longer responses intelligently:- Prioritizes splitting at paragraph breaks
- Falls back to sentence endings
- Then word boundaries
- Small pause (0.5s) between split messages
Agent Assignment
You can assign specific agents to each WhatsApp account:- Messages are routed to the assigned agent
- If no agent is assigned, the default agent handles messages
- Change agent assignments anytime in the admin panel
Voice messages
When a user sends a voice message, AGO transcribes the recording to text and the assigned agent answers it like any typed message, using its knowledge and tools. The reply comes back as text. Transcription detects the spoken language automatically, so users can record in their own language. In the conversation view, transcribed voice messages are marked with a 🎤 so you can tell them apart from typed messages. If a recording can’t be transcribed (for example, no speech is detected), the agent still receives a short placeholder and responds normally.Message Queuing
When users send multiple messages rapidly (within 2 seconds), AGO:- Queues the messages
- Merges them into a single request
- Provides a unified response
Troubleshooting
Common Issues
Common Issues
Connection Test Failed: Invalid Access Token
- Verify your access token has not expired
- Ensure the token has
whatsapp_business_messagingpermission - Generate a new token if necessary
- Check that the account is marked as “Connected” in AGO
- Verify the Phone Number ID is correct
- AGO automatically deduplicates messages within a 1-hour window
- If you see duplicates, check if you have multiple webhook subscriptions
Checking Connection Status
Checking Connection Status
- Go to Settings > Integrations > WhatsApp
- Check the status badge on each account:
- Connected: Account is working
- Connection Failed: See error details
- Not Tested: Click Test to verify
Webhook Health
Webhook Health
The integration displays webhook status:
- Webhook Active: Webhook is properly configured
- Webhook Inactive: Check Meta webhook configuration
Security
The WhatsApp integration includes several security measures:- Webhook Signature Validation: All incoming webhooks are validated using HMAC-SHA256
- Encrypted Token Storage: Access tokens are encrypted at rest
- Verify Token Protection: Webhook verification uses a separate token
Limitations
- Only one account can use each Phone Number ID (unique constraint)
- Media uploads require publicly accessible URLs
- Interactive message templates are not currently supported
- Template messages require separate configuration in Meta
Support
If you encounter issues:- Check the troubleshooting section above
- Contact support with your account details and error messages
