WhatsApp Business API Setup
How to setup your WhatsApp business API for WACT
WhatsApp Business API Setup Guide with Permanent Access Token (via Facebook Developers)
β Prerequisites
Make sure you have the following ready:
- A verified Facebook Business Manager account
- A Facebook (Meta) developer account (https://developers.facebook.com/)
- A phone number not linked to any WhatsApp account (can receive SMS or voice)
- Admin access to your Facebook Business Manager
Note: If you do not yet have a WABA, you will be guided to create one when you add your phone number in Step 1.
Β
π οΈ Step 1: Create a Facebook App
- Click "Create App"
- In the pop-up:
- App Name: Choose a name (e.g.,
LeadGen WhatsApp App
) - Contact Email: Use your business email
- Use Case: Select "Other"
- App Type: Select "Business"
- Business Account: Choose your verified Business Manager
- Click Create App and complete the CAPTCHA if prompted
Β
π¬ Step 2: Add WhatsApp Product to the App
- In the App Dashboard, scroll to "Add Products to Your App"
- Locate WhatsApp and click Set Up
Β
βοΈ Step 3: Create a WhatsApp Business Account (WABA)
- Go to WhatsApp > Getting Started inside your app
- Click Create WhatsApp Business Account if none exists
- Link it to your Business Manager account
Β
βοΈ Step 4: Add and Verify a Phone Number
- In WhatsApp > Getting Started, click Add Phone Number
- Enter a number that:
- Is not registered with WhatsApp or WhatsApp Business
- Can receive SMS or voice calls
- Verify the number via the chosen method
Once verified, Meta will provide you with:
- phone_number_id
- whatsapp_business_account_id
These are needed for API messaging and must be securely stored
Β
π Step 5: Add Your Webhook URL (WAct Specific)
This allows Meta to notify your app (e.g. on message received).
- Go to your app dashboard
- Click: WhatsApp > Configuration
- Under Webhook, click Edit
- Enter the following:
- Callback URL:
https://app.waconversiontracking.com/api/webhook
- Verify Token:
waconv123
- Click Verify and Save
Meta will confirm if the webhook is correctly configured and reachable.
Β
π Step 6: Subscribe to Webhook Events
- Still in WhatsApp > Configuration
- Under Webhook fields, click Manage
- Select and enable the following fields:
account_alerts
messages
- Click Save
These events allow your system to react to incoming messages or alerts in real time.
Β
π Step 7: Generate an Access Token (Permanent)
- In the left panel, click System Users
- Click Add:
- Name:
WhatsAppBotUser
- Role: Admin
- After creation, click Assign Assets
- Select your Facebook App
- Grant Full Control (Manage App)
- Click Generate Token
- Choose your app
- Set Expiration: Never
- Select permissions:
whatsapp_business_messaging
whatsapp_business_management
- Click Generate Token
Important: Copy the token immediately. You wonβt be able to view it again. This token will be used by your to configure your WhatsApp Business API connection in WACT.
Β
π Step 8: Assign System User to WABA
- In Business Settings, go to Accounts > WhatsApp Accounts
- Select your WABA
- Under People, click Add People
- Select your System User and assign Full Control -Β Manage WhatsApp business accounts
This ensures the user associated with the generated token has the right permissions.