WhatsApp setup
Connect a brand's WhatsApp Business number through Meta's Cloud API, so chats land in the inbox and campaigns and automations can send templates.
Who can use this: Admins and the Owner (
integrations:manage).
What you need
- A Meta app of your own with the WhatsApp product (the Cloud API). Antero does not use an app of its own: messages go through yours.
- A WhatsApp Business number added to that app, and its WhatsApp Business Account.
- A permanent access token: a System User token from your Business Manager with the
whatsapp_business_messagingandwhatsapp_business_managementpermissions. A temporary token stops working when it expires. - The app's App secret, from App settings → Basic in your Meta app.
- A brand in Antero for the number. Each number belongs to one brand, and each brand has at most one WhatsApp number.
Connect the number
- In your Meta app, open WhatsApp → API Setup and copy the Phone number ID (it is not the phone number itself) and the WhatsApp Business Account ID.
- In Antero, open Workspace → Integrations → WhatsApp Cloud API and click Add connection.
- Used for: the brand whose inbox should get this number's chats. It starts on the brand you are working in.
- Fill in the fields:
| Field | What to enter |
|---|---|
| Phone number ID | Digits only, from API Setup. |
| WhatsApp Business Account ID | Digits only, from the same page. Antero reads your message templates from this account. |
| Access token | The permanent System User token. Stored as a secret. |
| App secret | From App settings → Basic. Antero uses it to check that webhook calls really come from Meta. Stored as a secret. |
- Save. Antero shows the Verify token once, in a box at the top of the page. Copy it now. If you lose it, click Rotate secret for a new one.
- Copy the Callback URL from the connection's row. It looks like
https://your-antero-address/webhooks/whatsapp/{public_id}.
Set the webhook in Meta
- In your Meta app's WhatsApp webhook settings, paste the Callback URL and the Verify token, then verify and save. Meta calls the URL once with the token; Antero answers only when the token matches.
- Subscribe to the
messageswebhook field. It carries customers' messages and the delivery receipts (sent, delivered, read, failed) of what you send. - Back in Antero, click Send test.
Every call Meta makes afterwards must carry a valid X-Hub-Signature-256 header, made with your app secret. Calls without it are refused.
Send test
Send test looks the number up with your token, keeps its display number and verified name (shown on the row), and loads the number's message templates. It answers, for example, "Connected to +60 12-345 6789 · Aminah Catering. 4 message templates loaded."
A token Meta no longer accepts marks the connection Failing, during a test or during real sending.
Message templates
Templates are written and approved in Meta's WhatsApp Manager, not in Antero. Send test loads the latest ones; templates deleted in Meta disappear from Antero at the same time.
The Message templates list on the app page shows each template's name, language, text and one of these:
| Status | Meaning |
|---|---|
| Ready | Approved and Antero can fill it in. It appears in the template pickers. |
| Not supported | Approved, but it has something Antero cannot send yet. |
| Awaiting approval | Meta has not approved it yet. |
| Rejected | Meta rejected it. |
Antero fills in body variables, numbered ({{1}}) or named. A template can also have a text header without variables, a footer, and quick-reply, phone-number or website buttons whose link has no variable. Templates with a media header (image, video or document), a header variable or a link variable are not supported yet.
Templates are used by WhatsApp campaigns, the automation step Send a WhatsApp template, the inbox once the 24-hour window has closed, and booking page reminders (whose variables are filled in order: the customer's first name, when, what, and the brand).
The 24-hour window
WhatsApp only allows free text and files within 24 hours of the customer's last message. After that, the inbox asks you to pick an approved template, and the automation step Reply on WhatsApp is skipped with "The customer has not written in the last 24 hours, so WhatsApp only allows a template." Every new message from the customer opens the window again.
Brands and numbers
- A WhatsApp connection is always for one brand. Its conversations, contacts and campaigns are that brand's.
- A connection only takes events for its own phone number ID. Events for other numbers on the same Meta app are ignored.
- A customer's first message makes the conversation, and a contact when the plan's contact limit allows. See Inbox.
Files
- Photos, documents, voice notes and videos customers send are kept in Antero when they arrive, up to 16 MB each, counted in the plan's storage. WhatsApp itself keeps them for about a week; when your storage is full they stay viewable only while WhatsApp still has them.
- From the inbox you can send, within the 24-hour window, a JPEG or PNG photo up to 5 MB, or up to 16 MB for a PDF or Office document, an MP4 video, or MP3, AAC, M4A or OGG audio, with a caption of up to 1,024 characters.
Opt-out keywords
A customer who sends a message that is only STOP, STOP ALL, UNSUBSCRIBE or BERHENTI (in any letter case) is opted out of WhatsApp campaigns and automation messages. START or MULA opts them back in.
- Antero replies to confirm, in Malay for
BERHENTIandMULAand in English otherwise. - These keywords never start automations, and the chatbot does not answer them.
- The contact's page shows that they opted out.
Troubleshooting
- Meta cannot verify the callback URL. The verify token does not match. Paste it again, or rotate it and paste the new one.
- No messages arrive. Check that the
messagesfield is subscribed and that the App secret is right: with a wrong secret every call is refused (HTTP 403). Check the Phone number ID too, since events for other numbers are ignored. - The same message came twice. Meta sometimes repeats a delivery; Antero ignores repeats by their message ID.
- A template is missing. Click Send test to load the latest templates. Only Ready templates can be picked.
- The connection is Failing. The access token was revoked or expired. Make a new permanent System User token, paste it with Edit connection, then Send test.
All webhook endpoints are listed in Inbound webhooks.