This is a template for generating Whatsapp bots which are immediately deployable to Heroku, powered by Meta's Whatsapp Cloud API
You can deploy this sample app on Heroku (for testing) by clicking here:
Add a name and region for this bot, then click Deploy App button.
Wait for the build to finish
When Heroku has successfully deployed your application, click on Manage App
Go to the Settings > Reveal Config Vars, and add the following variables:
TOKEN: <your temporary access token or permanent token from Whatsapp/Getting Started>
PHONE: <your phone number ID from Whatsapp/Getting Started>
APP_SECRET: <any random string (no numbers) which you will also add to Meta Webhooks>
When you have finished, click Open app. You'll be sent to a website which says "Hello, It Works"
Now your callback URL will be
https://<app_name>.herokuapp.com/whatsapiOpen Meta Developers Whatsapp/Configuration panel and click "Edit" beside webhooks textbox
On the dialog box, for Callback URL enter
https://<app_name>.herokuapp.com/whatsapiFor Verify Token enter the APP_SECRET you previously set on Heroku. Click Verify and Save.
- WhatsApp Cloud API official documentation
- Heyoo WhatsApp API Python Wrapper
- Create a Facebook App ID App Secret
- Jaxparrow [Original Creator]
- NullCode1337 [Revamped project]








