WhatsApp Business
Send and manage WhatsApp messages from your business number through Meta's Cloud API.
Connect it with: API key. WhatsApp Business's own documentation: https://developers.facebook.com/docs/whatsapp/cloud-api/get-started.
What agents can do
Connect WhatsApp Business so the agents working your tasks can reach it. With it connected, they can:
- Send an approved template message, for example an order update or an appointment reminder.
- Reply with a free-form message inside a conversation's 24-hour customer service window.
- List and check the status of the business account's message templates.
- Read the phone number's quality rating and messaging limit.
Before you start
- A Meta business portfolio and a Meta app with the WhatsApp product added (developers.facebook.com/apps > Create app > Business, then Add product > WhatsApp).
- A business phone number registered under WhatsApp > API Setup, or Meta's free test number.
- A system user in Business settings > Users > System users, with your app and the WhatsApp Business Account assigned to it under Assign assets.
- A Jaah account. Anyone can add a personal secret; an organization secret needs an Org Owner or Admin.
Connect with WhatsApp Business
Jaah connects to WhatsApp Business with an API key, not with a sign-in button.
Connect with an API key
Find each value first:
- Access token: Meta Business Suite > Business settings (business.facebook.com/settings) > Users > System users > select the system user > Generate new token. Pick your app, set the expiry to Never, and tick whatsapp_business_messaging and whatsapp_business_management.
- Phone number ID: Meta App Dashboard (developers.facebook.com/apps) > your app > WhatsApp > API Setup > Phone number ID, under the From number.
- WhatsApp Business Account ID: Meta App Dashboard > your app > WhatsApp > API Setup > WhatsApp Business Account ID, shown beside the Phone number ID.
Then add it to Jaah:
- In Jaah, open Secrets, select New, and pick the WhatsApp Business card.
- Name the secret and choose who can use it.
- Fill in Access token, Phone number ID, WhatsApp Business Account ID.
- Select Save. Jaah tests the secret straight away (see Test the connection).
Jaah encrypts what you type and never shows it again — not to you, and not to an admin.
Use your own OAuth app
Not used: Jaah connects to WhatsApp Business with an API key, not through an OAuth app.
Test the connection
Select Test on the secret. Jaah calls WhatsApp Business's API once (GET https://graph.facebook.com/v23.0/me?fields=id,name) with the stored values, and shows who it answered as, or which value WhatsApp Business refused and the status it answered. Jaah also tests automatically when you save or reconnect.
The last result and its time stay on the secret's page, so you can see whether it still works without testing again.
Who can use it
Every secret has an owner, and the owner decides who can use it:
- Personal — only your own tasks can use it. This is the default.
- Organization — every task in the organization can use it. Only Org Owners and Admins can choose this.
- Attached to a project — every task on that project can use it, whoever started the task. See Attach a secret to a project.
More on owners and access: How secrets work.
Use it in an agent session
An agent asks for the secret with its credential_get tool, by the secret's path, when it needs it, and gets the values for that one call. The path is the owner's prefix and the secret's name:
org/<name>for an organization secret,projects/<project>/<name>for one attached to a project,me/<name>for your personal one.
A key connection hands the agent its fields: access_token, phone_number_id, business_account_id.
Tell the agent in your task description which secret to use, for example “use the WhatsApp Business secret org/whatsapp-business”.
Manage, rotate or disconnect
Everything is on the secret's page under Secrets:
- Rotate a key: create a new key at the vendor first, then select Replace on the secret and paste it. Revoke the old key at WhatsApp Business once the test passes. Steps: Replace or delete a secret.
- Disconnect: select Delete. The stored values are destroyed and agents lose access on their next call. To end access at WhatsApp Business's side too, revoke or delete the key at WhatsApp Business.
Limitations
- WhatsApp allows a business to start a conversation only with an approved message template; free-form text is allowed only within 24 hours of the customer's last message.
- A user access token from the API Setup page expires within a day. Use a system user token with expiry Never for a lasting connection.
- Meta charges per conversation and sets a daily messaging limit per phone number.
- Agents can do only what the connected WhatsApp Business account allows.
Troubleshooting
Test fails with HTTP 400 or says the access token was rejected
Meta answers an expired or revoked token with error 190. Generate a new system user token in Business settings > Users > System users and select Replace on the secret.
Sending fails with error 131030 (recipient not in allowed list)
With Meta's test number you can message only the numbers added under WhatsApp > API Setup > To. Add the recipient there, or register your own business number.
Sending a template fails with error 132001
The template name or language does not exist on this WhatsApp Business Account. Check WhatsApp Manager > Message templates for the exact name and language code.
Still stuck? Select Test and read the result: it names the value WhatsApp Business refused and the status it answered.
FAQ
Is this the WhatsApp Business app on my phone?
No. This is Meta's WhatsApp Cloud API. A number in use on the WhatsApp Business app must be migrated before the API can send from it.
Can I send WhatsApp messages through Twilio instead?
Yes. Connect Twilio instead and use a Twilio-approved WhatsApp sender; you do not need this connection then.
Can Jaah or an admin see the key or token?
No. Jaah stores it encrypted and never shows it again. Only the tasks allowed to use the secret receive it, at the moment they ask for it.
Can I connect more than one WhatsApp Business account?
Yes. Add one secret per account, each with its own name, and tell the agent which one to use.