WhatsApp Integration
Connect your agent to WhatsApp Business for customer communication.
Overview
WhatsApp integration provides:
- Business messaging capabilities
- Rich media support
- Automated responses
- Global reach
- 24-hour messaging window compliance
Prerequisites
- An active AI agent (created in the Agents section)
- A WhatsApp Business Account (WABA)
- A verified phone number in WhatsApp Business
- Access to the Meta Developer Portal
Setup Steps
1. Connect with Embedded Signup (Recommended)
The easiest way to connect WhatsApp is through the embedded Meta signup flow:
- Go to Integrations in the sidebar
- Open the WhatsApp Business card and click Add WhatsApp
- Click Connect with Facebook to open the Meta signup popup
- Log in with your Facebook/Meta account
- Select or create a WhatsApp Business Account
- Choose the phone number to connect
- The popup closes and your connection is established
The embedded signup flow handles most of the configuration automatically. It’s the recommended method for most users.
2. Phone Verification (If Required)
After completing the Meta signup, you may need to verify your phone number:
- Choose how to receive your verification code: SMS or Voice Call
- Click Send Code
- Enter the 6-digit code you receive
- Click Verify
If you didn’t receive the code, click “Didn’t receive the code? Send again” to retry.
3. Two-Step Verification (If Enabled)
If your WhatsApp Business account has Two-Step Verification enabled:
- Enter your 6-digit PIN when prompted
- Click Complete Registration
This PIN was set up in WhatsApp Business Manager → Security Center. It’s different from the SMS verification code.
4. Configure Webhook (If Required)
After setup, you may need to configure your webhook in Meta Business Suite:
- Copy the webhook URL provided after connection
- In Meta Developer Portal, go to WhatsApp → Configuration
- Add the webhook URL
- Subscribe to the
messageswebhook field
Using the Bot
Customer Messages
When customers message your WhatsApp number:
- Message arrives via WhatsApp
- Cuneiform Chat processes the request
- Agent generates response from content
- Response sent back to customer
Conversation Flow
Customer → WhatsApp → Cuneiform Chat → Agent → Response → CustomerFeatures
24-Hour Messaging Window
WhatsApp Business API rules:
- You can respond to customer-initiated messages for 24 hours
- After 24 hours, the window closes until the customer messages again
- Each new customer message reopens the window
Your agent responds within the 24-hour window automatically. Template messages for re-engagement are not currently supported.
Rich Media
Responses can include:
- Text messages
- Links
- Formatted text
Multi-Language
Your agent automatically detects the customer’s language and responds in kind — 176 languages supported, no configuration needed.
Managing Connected Numbers
Each connected WhatsApp number displays:
- Business name or display phone number
- Status badge - Active, Inactive, or Error
- Phone number
- Last activity timestamp
Available Actions
| Action | Description |
|---|---|
| Test Connection | Verifies the integration is working |
| Disconnect | Removes this integration |
Access these via the three-dot menu on the integration card.
Troubleshooting
Connection Failed
- Ensure you have a valid WhatsApp Business Account
- Check that your phone number is verified
- Try the embedded signup flow again
Phone Verification Not Working
- Ensure you have access to the phone number for SMS/Voice
- Wait a few minutes before requesting a new code
- Check that the phone number isn’t already connected elsewhere
Two-Step Verification Error
- Enter the PIN set up in WhatsApp Business Manager → Security Center
- This is different from the SMS verification code
- Contact your WhatsApp Business admin if you don’t know the PIN
Messages Not Arriving
- Verify webhook is configured correctly in Meta Business Suite
- Check webhook subscription includes
messages - Confirm the integration status is “Active”
Response Failures
- Check your agent works in Playground
- Verify the 24-hour window is active (customer messaged recently)
- Check the integration status in the admin panel
Security
- Access tokens are encrypted and stored securely
- Messages processed over secure connections
Compliance
WhatsApp Business has usage policies:
- Respond only to customer-initiated conversations
- Provide opt-out options
- Follow Meta’s Commerce and Business policies
Disconnecting
To remove the WhatsApp integration:
- Go to Integrations in the sidebar
- Click the three-dot menu on your WhatsApp integration
- Select Disconnect
This stops the agent from responding. To fully remove:
- Delete the webhook in Meta Developer Portal
- Optionally remove the WhatsApp product from your Meta app
Common Questions
Q: How do I connect WhatsApp? A: Use the embedded signup by clicking “WhatsApp” in the Integrations tab, then “Connect with Facebook”. This guides you through the Meta signup process automatically.
Q: Why am I asked for a verification code? A: WhatsApp requires phone verification for new connections. Choose SMS or Voice Call to receive a 6-digit code, then enter it to complete setup.
Q: What is the Two-Step Verification PIN? A: If you enabled Two-Step Verification in WhatsApp Business Manager, you’ll need to enter that 6-digit PIN during setup. This is different from the SMS verification code.
Q: Can I connect multiple WhatsApp numbers? A: Yes, you can connect multiple WhatsApp Business numbers. Each number can be connected to a different (or the same) AI agent.