What you need before starting
- A Meta developer account and an app with the WhatsApp product.
- A phone number for the bot and, for real use, your business verified.
- A server with a domain and valid HTTPS.
If you also plan to use a virtual number in the WhatsApp app, start with what to check first.
The steps, in short
- Create the app in Meta and get the number’s ID and an access token.
- Expose an endpoint on your server for the webhook, with a domain and an HTTPS certificate.
- Verify the webhook: Meta makes an initial request with a verify token that your endpoint must echo back.
- Validate the signature of every incoming message (the
X-Hub-Signature-256header) to make sure it comes from Meta. - Respond fast: acknowledge with a 200 right away and process the message in the background, with a queue if volume grows.
- Generate a permanent token with a system user; the temporary token expires in hours.
- Create message templates to start conversations outside the 24-hour window.
- Monitor: log send errors and alert if the webhook stops receiving events.
Common mistakes
- Using the temporary test token in production and the bot stops working the next day.
- Processing everything inside the same request, so Meta retries or disables the webhook because of slowness.
- Treating duplicate messages as new ones: store the message ID.
- Keeping the token in the code or the repository.
How we help
We deploy your backend with HTTPS, signature verification, a processing queue and monitoring. If you need to connect the bot to your ERP or CRM, we do that too.