The WhatsApp integration allows you to connect an AI Employee (Agent) to your WhatsApp Business account via Meta’s Cloud API. Once configured, the AI will automatically respond to incoming messages according to your settings. You can also intervene manually at any time through ZappWay’s Inbox interface.
Important: After migrating a phone number to the WhatsApp Business Platform, that number cannot be used simultaneously in the standard WhatsApp Business App. It must be dedicated exclusively to one platform.
Navigate to https://business.facebook.com.
Click “Create Account.”
Fill out the required information:
Continue through the prompts to finalize setup. When prompted:
Tip: Meta may limit certain features on new accounts until you complete the verification process. Follow all on-screen instructions and provide any additional documents requested.
Click “Create App.”
When prompted “What do you want your app to do?”, select “Other.”
Choose “Business” as your app type.
Complete the form by providing:
Click “Create App.”
Inside your newly created App’s dashboard, locate the “Products” section.
Select “+ Add Product.”
Find “WhatsApp” in the list, and click “Set Up.”
Note:
- If Meta requests additional business verification at this stage, complete that process before proceeding.
- If you do not see WhatsApp listed, ensure you are working under the correct Business Manager account.
To manage long-lived tokens and assign the necessary permissions, you must create a System User inside Business Manager.
In Business Manager, navigate to Business Settings → Users → System Users.
Click “Add” (or “Add System User”).
Enter a descriptive name (for example, “ZappWay WhatsApp Bot”) and choose “Admin” as the role.
Confirm by clicking “Create.”
Select the newly created System User from the list.
Click “Add Assets.”
Click “Assign.”
Verify:
- The System User should now have “Manage App” listed under its App permissions.
- This ensures the user can generate tokens and configure the WhatsApp product.
This token will be used to authenticate your integration from ZappWay.
Still in Business Settings → System Users, select the System User you created.
Click “Generate New Token.”
Choose the WhatsApp App you linked in Step 3.
Select all of the following permissions:
Click “Generate Token.”
Copy the token that appears and store it securely (for example, in a password manager or environment variable).
Security Tip:
- Never hardcode this token into your code repository.
- Use environment variables or a secrets manager in production.
To send and receive messages through the API, you need an active and verified phone number.
In your Meta App’s WhatsApp dashboard (navigate to developers.facebook.com/apps/<YOUR_APP_ID>/whatsapp-business/wa-dev-console), find the “Numbers” section.
Click “Add Phone Number.”
You have two options:
Click “Register.”
Meta will send a verification code via SMS or voice call to that number.
Enter the verification code in the prompt to confirm and activate the number.
Once verified, your number will appear as “Active” and you will see:
Keep a Note Of:
- Phone Number ID format: typically a long numeric string.
- Business Account ID: also a numeric string you may need later.
To allow ZappWay to receive incoming message events, you must configure a webhook.
In your Meta App’s WhatsApp settings (go to developers.facebook.com/apps/<YOUR_APP_ID>/whatsapp-business/wa-settings), locate the “Webhooks” section.
In “Callback URL,” enter the URL provided by ZappWay, which will look like:
In “Verify Token,” enter the verification token that ZappWay creates for you. This token will be visible in the ZappWay interface during integration setup.
Under “Webhook Fields,” make sure to select at least “messages.” This allows ZappWay to receive incoming text messages.
Click “Save” or “Continue.” Once saved, Meta will send a challenge to your callback URL to verify it. If ZappWay is properly configured, it will automatically respond with the expected challenge value.
Validation Checklist:
- Confirm that messages is checked under Webhook Fields.
- If Meta returns a challenge error (HTTP 403 or 404), double-check that your callback URL and verification token match exactly what ZappWay provided.
Follow these steps within the ZappWay dashboard to complete the integration.
Copy the long-lived access token you generated in Step 4.
Paste it into the “System User Token” field.
Click “Continue.”
Enter the Phone Number ID you obtained in Step 5.
Click “Continue.”
ZappWay will display two read-only fields:
https://app.zappway.ai/api/integrations/whatsapp/webhook?service_provider_id=abcdef123456
)Copy each of these values. You will enter them in your Meta App’s Webhook settings (refer back to Step 6).
Confirm that you have selected “messages” under Webhook Fields in the Meta dashboard.
Click “Save.”
Once you click “Save,” ZappWay considers the integration configured. It will wait for Meta to deliver webhook events to the callback URL you provided.
Now that the backend integration is set up, you must link (pair) your WhatsApp Business number with ZappWay by scanning a QR code.
Troubleshooting Tips:
- If the QR code does not appear, ensure your browser is not blocking pop-ups or that your session in ZappWay has not timed out.
- If pairing fails repeatedly, verify that no other active sessions exist for the same number. You may need to log out from other linked devices first.
After pairing, perform these final verifications to ensure your integration is fully functional.
If Messages Do Not Arrive:
- Confirm that the webhook callback URL is reachable (no firewall blocking, valid SSL certificate).
- Check ZappWay’s webhook logs to see if Meta is delivering the events.
- Ensure “messages” remains selected under Webhook Fields in your Meta App settings.
Access Token Expired (401 Unauthorized):
Webhook Verification Failures (403/404):
Session Failure (stream:error 515):
By following these steps carefully, you will have a robust, fully functional WhatsApp integration in ZappWay, enabling your AI Employee to handle customer interactions seamlessly.
Useful Links:
Follows these instructions exactly, and your integration will be set up successfully.