๐ WhatsApp Business
WhatsApp Business Bot Setup
Connect WhatsApp Business API to CodeCanvas and automate customer replies. Requires a Meta Developer account.
โฑ Takes about 10 minutes ยท Intermediate
โ ๏ธWhatsApp Business API requires a Facebook/Meta Developer account and a phone number not already on WhatsApp. Personal WhatsApp cannot be used.
1
Create a Meta Developer Account
Go to developers.facebook.com and log in with your Facebook account.
- Click My Apps โ Create App
- Select Business as the app type
- Enter your app name and contact email
- Click Create App
2
Add WhatsApp Product to Your App
- Inside your app dashboard, scroll down to find WhatsApp
- Click Set Up next to WhatsApp
- Select or create a Meta Business Account
- You will land on the WhatsApp Getting Started page
๐กOn the Getting Started page, you will see a test phone number and a temporary access token for testing.
3
Get Your Phone Number ID and Token
You need two things from the WhatsApp Getting Started page:
- Phone Number ID โ a number like
123456789012345
- Temporary Access Token โ starts with
EAA...
โ ๏ธThe temporary token expires in 24 hours. For permanent use, create a System User Token in Meta Business Settings โ System Users.
4
Create Bot on CodeCanvas
- Go to CodeCanvas Dashboard โ Bots
- Click + Create New Bot
- Select WhatsApp as platform
- Enter your Phone Number ID and Access Token
- Click Create Bot โ your webhook URL is generated
5
Set Up Webhook in Meta
Go back to your Meta App โ WhatsApp โ Configuration:
- In Webhook section, click Edit
- Paste your CodeCanvas webhook URL in Callback URL
- Enter your bot's webhook secret as the Verify Token (find this in your bot settings)
- Click Verify and Save
- Under Webhook fields, subscribe to messages
๐กAfter saving, send a WhatsApp message to your test number. It should appear in your CodeCanvas Messages dashboard!
Other Platform Guides