Platform
WhatsApp calls
Let a voice agent answer WhatsApp voice calls to your WhatsApp Business number, and call your contacts on WhatsApp from a workflow or call list. It is the same agent as on a phone call: the same instructions, voice, tools, knowledge, recording and Quality checks. The number and your WhatsApp Business account stay yours.
Before you start
- A WhatsApp Business Platform (Cloud API) number. A number used in the WhatsApp Business phone app cannot take calls this way.
- WhatsApp Business Calling available for the number. WhatsApp requires a messaging limit of at least 2,000 unique recipients a day.
- The app you use on the WhatsApp Business Platform must be live (published). WhatsApp does not send calls to an app in development mode.
- Telephony switched on for your account (Settings → Telephony). If you do not see the WhatsApp card, contact support.
Set it up
- In your WhatsApp Business account, turn on calling for the number, with SIP as the way calls are delivered.
- Set the number's SIP server to the address in Settings → Telephony → Connection details → WhatsApp: host
sip.inferexai.in, port 5061, transport TLS. Use only one SIP server per number. - Copy the SIP password WhatsApp issues for the number.
- In the portal, open Settings → Telephony → WhatsApp, choose Add number, enter the number, the password and the agent that should answer. The password is stored encrypted and is never shown again.
- Call the number from WhatsApp on another phone (open the business chat and tap the call button). The agent answers.
curl https://api.inferexai.in/v1/telephony/connection \
-H "Authorization: Bearer sk-live-your-key-here"
# "whatsapp": {"sip_server": "sip.inferexai.in", "port": 5061, "transport": "tls"}
Through the API, with a key that has the telephony scope:
curl -X POST https://api.inferexai.in/v1/telephony/whatsapp \
-H "Authorization: Bearer sk-live-your-key-here" \
-H "Content-Type: application/json" \
-d '{
"e164": "+919876543210",
"label": "Support on WhatsApp",
"password": "the-sip-password-whatsapp-issued",
"agent_id": "va_3f2a9c1b7d5e4f608a12",
"outbound": false
}'
Manage numbers
EndpointWhat it does
GET /v1/telephony/whatsappYour WhatsApp numbers, with agent, status and whether each places calls.
POST /v1/telephony/whatsappAdd one: e164, password, optional label, agent_id, outbound.
PATCH /v1/telephony/whatsapp/{id}Change agent_id (or null to detach), label, status (active or disabled), outbound or password.
DELETE /v1/telephony/whatsapp/{id}Remove it; incoming WhatsApp calls are no longer answered.
You can also attach a WhatsApp number from the agent itself: Build → Channels → WhatsApp. Changes take effect at once and do not create a new agent version.
Calling people on WhatsApp
- Mark one WhatsApp number as the one that places calls (
outbound: true). An organisation has one such number at a time. - In a calling workflow or call list, choose the channel WhatsApp call instead of phone. Contacts are called on WhatsApp from that number.
- WhatsApp connects a business call only to people who have given your business permission to call them. A call without permission is reported as failed.
- Calling hours, retries, budgets and the do-not-call list apply exactly as for phone calls.
What callers experience
- The agent's live version answers straight away, with its greeting, disclosure and voice. Audio is encrypted end to end between WhatsApp and us.
- Background noise on the caller's side is reduced before the agent hears it.
- The call shows in the agent's Calls with the channel
whatsapp. call.started and call.completed webhooks carry channel: "whatsapp". - Charges are the same as any agent call, from the number owner's wallet. WhatsApp bills its own calling charges to your WhatsApp Business account.
- A call is not answered when the number is disabled or has no agent, the agent is paused, telephony is off for the account or the wallet is empty.
Troubleshooting
- The portal says WhatsApp calling is not set up: the WhatsApp channel is not yet available for your account. Contact support.
- "e164 must be the business phone number": type the number with its country code, for example
+919876543210. - It rings but no one answers, and the call is not in Calls: WhatsApp is not delivering the call to us. Check that calling and SIP are on for the number, that the SIP server is
sip.inferexai.in port 5061, that no other app has its own SIP server or call handling on the number, and that your app is live (published). - The agent answers but the call drops: the SIP password may be out of date. Copy it again from WhatsApp and update the number.