Back to Documentation

WhatsApp Business Integration

Connect your WhatsApp Business account for AI-powered customer support. Automate responses, handle inquiries 24/7, and delight your customers.

Prerequisites

Before you begin, make sure you have the following:

  • Meta Business Account

    A verified Meta Business account with access to WhatsApp Business API

  • WhatsApp Business Phone Number

    A phone number registered for WhatsApp Business (not linked to personal WhatsApp)

  • Meta Developer App

    A Meta Developer App with WhatsApp Business API enabled

Step-by-Step Setup

1Create a Meta Developer App

  1. 1Go to Meta for Developers
  2. 2Click My AppsCreate App
  3. 3Select Business as the app type
  4. 4Fill in your app details and click Create App

2Add WhatsApp Product

  1. 1In your app dashboard, click Add Product
  2. 2Find WhatsApp and click Set Up
  3. 3Select your Meta Business Account or create a new one

3Get API Credentials

  1. 1Navigate to WhatsApp → API Setup
  2. 2Copy your Phone Number ID and WhatsApp Business Account ID
  3. 3Generate a Permanent Access Token from System Users in Business Settings

Important: Use a permanent access token for production. Temporary tokens expire after 24 hours.

4Configure in AgentPro

  1. 1Go to Dashboard → Channels → WhatsApp
  2. 2Click Connect Channel
  3. 3Enter your Access Token, Phone Number ID, and Verify Token
  4. 4Click Save & Get Webhook URL

5Configure Webhook in Meta

  1. 1In Meta Developer Console, go to WhatsApp → Configuration
  2. 2Under Webhook, click Edit
  3. 3
    Enter your AgentPro webhook URL:
    https://agentpro.chat/api/v1/webhooks/whatsapp/YOUR_CHANNEL_ID
  4. 4Enter the same Verify Token you used in AgentPro
  5. 5Subscribe to messages webhook field

Features

AI Auto-Response

Automatically respond to customer messages using your trained AI chatbot. 24/7 support without manual intervention.

Human Takeover

Seamlessly transfer conversations to human agents when needed. Agents can reply directly from the Inbox.

Template Messages

Send pre-approved template messages for order updates, appointment reminders, and more.

Rich Media Support

Send and receive images, documents, and other media types for comprehensive support.

Troubleshooting

Webhook verification failing?

  • Ensure the Verify Token matches exactly in both AgentPro and Meta
  • Check that your webhook URL is correct and accessible
  • Make sure your server is responding with a 200 status code

Messages not being received?

  • Verify you've subscribed to the "messages" webhook field
  • Check that your access token hasn't expired
  • Ensure your phone number is properly linked to your Business Account

Bot not responding?

  • Check that a chatbot is linked to your WhatsApp channel
  • Verify your chatbot has a knowledge base configured
  • Ensure AI responses are enabled for the channel

Need Help?

Our support team is here to help you set up your WhatsApp integration.

Contact Support