Chapter 1
WhatsApp Business
The channel for customer conversations, AI replies, campaigns, reminders and sending invoices. Connect it first.
What you need from Meta first
NEXTOSA uses the official WhatsApp Business Platform, so you need a Meta Business account with a WhatsApp Business Account and a phone number added to it. From Meta's developer console you collect: a permanent access token (create it for a system user so it does not expire), the Phone Number ID of the number you want to connect, the WhatsApp Business Account ID (WABA ID), and optionally your Meta App ID and your Meta App Secret.
- 1Create or open your Meta Business account and your app in Meta's developer console.
- 2Add the WhatsApp product and a phone number to your WhatsApp Business Account.
- 3Create a permanent access token for a system user with WhatsApp permissions and copy it.
- 4Copy the Phone Number ID and the WhatsApp Business Account ID from the WhatsApp section of the console.
- 5Copy the Meta App ID from the app dashboard if you plan to use templates with an image, video or document header.
- 6Copy the App Secret from App settings, Basic in the same console if you want NEXTOSA to verify that incoming messages really come from Meta (recommended).
Connect a number
Open Settings, Integrations, WhatsApp and choose Add WhatsApp Number. NEXTOSA checks the details with Meta before saving, so a wrong token or ID is rejected straight away with a plain message (for example that the token looks invalid or expired, or that Meta cannot find the ID).
- 1Give the number a label such as Sales or Support. The label is what your team sees on conversation tags and number pickers.
- 2Paste the permanent token, the Phone Number ID and the WhatsApp Business Account ID.
- 3Add the Meta App ID if you want media-header templates.
- 4Paste the Meta App Secret if you have it (optional, recommended). It is stored encrypted, never shown again, and used only to check the signature on incoming messages.
- 5Choose the mode (Auto or Approval, explained below) and save.
Several numbers, one primary
A workspace can hold more than one number, up to your plan's limit. One is the primary number and is used when the app sends something on its own and no number is named. Each number has its own mode and can be given its own AI agent. A number can be connected to only one NEXTOSA workspace at a time; connecting one that is already in use elsewhere is refused. Every conversation lives on the number it came in on, and replies always leave from that same number.
Auto or Approval mode
Auto lets the AI reply to a customer straight away. Approval holds every AI draft in the Approval Inbox until a person approves, edits or rejects it. Start in Approval while you are tuning your instructions, then move to Auto once you trust the answers. The mode is set per number and can be changed any time.
- 1Open Settings, Integrations, WhatsApp and pick the number.
- 2Choose Auto or Approval.
- 3In Approval mode, review drafts on the Approval Inbox page.
Receiving customer messages: the webhook
Incoming messages reach NEXTOSA through a webhook that you register once in your Meta app. You give Meta two things: a callback address and a verify token. Meta calls the address to confirm the token matches, and from then on sends every incoming message and delivery status to it. The values below are examples: use the real callback address and verify token that belong to your NEXTOSA account (ask the NEXTOSA team through the Contact page if you do not have them), and never publish the real token anywhere public.
- 1In Meta's developer console open your app, then WhatsApp, then Configuration.
- 2In the Webhook section choose Edit.
- 3Callback URL: https://your-server.com/api/whatsapp/webhook (replace it with the callback address for your account; the path always ends in /api/whatsapp/webhook).
- 4Verify token: YOUR_SECURE_TOKEN (replace it with the real verify token for your account, exactly as given, with no spaces).
- 5Choose Verify and save. If Meta says it could not verify, the address or the token does not match what NEXTOSA expects.
- 6Under Webhook fields, subscribe to the messages field, so incoming messages and message statuses are delivered.
- 7Send a test message from a personal phone to your connected number and confirm it appears in Conversations.
Verifying that messages really come from Meta
Meta signs every message it sends to the webhook with the App Secret of your Meta app. When you save that secret on the number, NEXTOSA checks the signature on each incoming message and refuses anything that does not match, so nobody who learns the callback address can invent customer messages. The connection card shows whether the check is on. Numbers without a secret keep working for now, but we recommend adding it to every number. You can replace the secret at any time by choosing Update credentials; leaving the field blank keeps the existing one.
If messages do not arrive
Check these in order. First, the number is connected in NEXTOSA and its Phone Number ID matches the number you are texting. Second, the webhook shows as verified in Meta and the messages field is subscribed. Third, the callback address is typed exactly, including https and the full path. Fourth, the verify token matches exactly. A token that was changed on the server stops Meta from re-verifying, so if it was changed, update it in Meta as well. If you added an App Secret, make sure it is the secret of the same Meta app that owns the webhook: a wrong secret makes NEXTOSA refuse every incoming message as unsigned. Customer messages sent to you do not count against your monthly message allowance.
Templates and the 24-hour window
WhatsApp only lets you send a free-form message within 24 hours of the customer's last message. Outside that window you must use a template that Meta has approved. Create templates on the Templates page, then submit for approval. A template goes Draft, then Pending, then Approved or Rejected, and only Approved templates can be sent. Some automations need a template shaped a particular way, for example invoices, receipts, proposals and demand letters need a Document header and exactly one variable in the body (the client's first name) so the PDF can be attached.
- 1Open Templates and create a template with a clear category and body.
- 2For document sends, set the header to Document and upload an example PDF.
- 3Click Submit for Approval and wait for Meta's review.
- 4Once Approved, select it in the matching Settings automation (invoices, receipts, reminders and so on).
What counts against your plan
Every message your workspace successfully sends counts toward the monthly WhatsApp allowance of your plan: replies, AI replies, templates, campaigns, reminders and document sends. Incoming messages and failed sends do not count. See the Plan limits page for the numbers per plan.
Update or disconnect
To rotate a token, choose Update credentials and paste the new one; leaving the token blank keeps the existing one. Disconnecting stops automated replies and the Approval Inbox for that number until you reconnect, and asks for your password.