Overview
Dograh AI answers voice calls that WhatsApp users place to your WhatsApp Business number. Only inbound calls are supported.Prerequisites
- A Meta business portfolio with a WhatsApp Business phone number on Cloud API
- Dograh AI reachable from the internet over HTTPS
Step 1: Create a Meta App
- Go to developers.facebook.com/apps and click Create App
- Enter an app name and contact email, then click Next
- Select Connect with customers through WhatsApp and click Next
- Select the business portfolio that owns your WhatsApp number, click Next, then click Create app
Step 2: Collect Credentials
Phone Number ID and WhatsApp Business account ID- In your app, open Use cases β Connect on WhatsApp β API Setup
- Select your number in the From dropdown
- Copy the Phone number ID and the WhatsApp Business account ID shown below it
- Open Business settings β Users β System users and select a system user with Admin access (click Add to create one)
- Click β― β Assign assets, and give the system user full control of your app and your WhatsApp account
- Click Generate token, select your app, set expiration to Never, and grant
whatsapp_business_messagingandwhatsapp_business_management - Copy the token β Meta shows it only once
- In your app, open App settings β Basic
- Click Show next to App secret and copy it
Step 3: Configure in Dograh AI
- Navigate to /telephony-configurations, click Add configuration, and select WhatsApp
- Enter the Access Token, Phone Number ID, and App Secret, then click Create. Dograh checks them with Meta before saving.
- Open the new configuration. Under Webhook for your Meta app, copy the Callback URL and the Verify token β youβll paste both into Meta in Step 5
- Click Add phone number, enter your WhatsApp Business number with its country code (for example
+15551234567), set the Inbound workflow to the agent that should answer, and click Add. Dograh checks the number against Meta before saving it.
On self-hosted Dograh, the Callback URL must be your backendβs public HTTPS
URL. If the page shows a
localhost address, expose your backend (for
example with a tunnel) and use that hostname instead.Step 4: Subscribe Your App to the WhatsApp Business Account
{"success": true}.
Step 5: Configure the Webhook in Meta
- In your app, open Use cases β Connect on WhatsApp β Configuration
- Paste the Callback URL and Verify token from Step 3, then click Verify and save
- In the Webhook fields list that appears, turn on Subscribe for
calls
Step 6: Turn On Calling
- Open WhatsApp Manager β Account tools β Phone numbers
- Click the gear icon next to your number and open Call settings
- Turn on Allow voice calls
Step 7: Test
Call your business number from the WhatsApp app on a phone. Your Dograh AI agent answers.Troubleshooting
'This business is not accepting calls'
'This business is not accepting calls'
Calling is off for the number. Complete Step 6.
'To use WhatsApp calling features, you need to configure webhooks or set up SIP'
'To use WhatsApp calling features, you need to configure webhooks or set up SIP'
The app has no
calls webhook yet. Complete Step 5, then turn on calling.Create fails with 'Meta did not accept these credentials'
Create fails with 'Meta did not accept these credentials'
Meta could not read the Phone Number ID with the access token. Check the
Phone Number ID against the API Setup page, and that the tokenβs system
user has full control of your WhatsApp account.
Verify and save fails
Verify and save fails
Save the Dograh configuration first, and make sure the Verify token in
Meta matches the one on the configuration page exactly.
Add phone number is rejected
Add phone number is rejected
Dograh asks Meta which number sits behind your Phone Number ID and only
accepts that one. Check that the number you typed matches the number shown
on the API Setup page, and that the access tokenβs system user has full
control of your WhatsApp account.