Meta Cloud API Integration

Connect your AI4Africa bot to WhatsApp via Meta’s official Cloud API.

Prerequisites

  • Meta developer account with WhatsApp Business App
  • Permanent access token
  • Phone-Number ID
  • Verify token (auto-generated in AI4Africa when you pick Meta provider)

Setup Guide

1. Add Webhook in Meta Developer Portal

  1. Select your WhatsApp app → Configuration → Webhooks.
  2. Click “Edit” and paste the Webhook URL from your Bot-Details page.
  3. Enter the Verify Token auto-generated in AI4Africa.

2. Subscribe to Webhook Fields

Subscribe to the following events:

  • messages
  • message_template_status

3. Configure in AI4Africa

  1. Create or edit your bot → WhatsApp tab.
  2. Select Meta Cloud API.
  3. Paste your Access Token & Phone-Number ID.
  4. Save to generate/confirm Webhook URL.

The Verify Token shown in the form must exactly match the one entered in Meta Portal.

Messages sent through Cloud API are billed by Meta. Make sure you have a valid credit line or payment method configured.

Testing Your Integration

  1. Send a WhatsApp message to your Cloud API number.
  2. Verify it appears in AI4Africa Conversations dashboard.
  3. Confirm your bot replies as expected.