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:

  • 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

  1. Go to https://developers.facebook.com/apps
  1. Click "Create App"
  1. 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
  1. Click Create App and complete the CAPTCHA if prompted
Β 

πŸ’¬ Step 2: Add WhatsApp Product to the App

  1. In the App Dashboard, scroll to "Add Products to Your App"
  1. Locate WhatsApp and click Set Up
Β 

☎️ Step 3: Create a WhatsApp Business Account (WABA)

  1. Go to WhatsApp > Getting Started inside your app
  1. Click Create WhatsApp Business Account if none exists
  1. Link it to your Business Manager account
Β 

☎️ Step 4: Add and Verify a Phone Number

  1. In WhatsApp > Getting Started, click Add Phone Number
  1. Enter a number that:
      • Is not registered with WhatsApp or WhatsApp Business
      • Can receive SMS or voice calls
  1. 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).

  1. Go to your app dashboard
  1. Click: WhatsApp > Configuration
  1. Under Webhook, click Edit
  1. Enter the following:
      • Callback URL: https://app.waconversiontracking.com/api/webhook
      • Verify Token: waconv123
  1. Click Verify and Save

Meta will confirm if the webhook is correctly configured and reachable.

Β 

πŸ“ƒ Step 6: Subscribe to Webhook Events

  1. Still in WhatsApp > Configuration
  1. Under Webhook fields, click Manage
  1. Select and enable the following fields:
      • account_alerts
      • messages
  1. Click Save

These events allow your system to react to incoming messages or alerts in real time.

Β 

πŸ”‘ Step 7: Generate an Access Token (Permanent)

  1. Go to https://business.facebook.com/settings/
  1. In the left panel, click System Users
  1. Click Add:
      • Name: WhatsAppBotUser
      • Role: Admin
  1. After creation, click Assign Assets
      • Select your Facebook App
      • Grant Full Control (Manage App)
  1. Click Generate Token
      • Choose your app
      • Set Expiration: Never
      • Select permissions:
        • whatsapp_business_messaging
        • whatsapp_business_management
  1. 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

  1. In Business Settings, go to Accounts > WhatsApp Accounts
  1. Select your WABA
  1. Under People, click Add People
  1. 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.