prompt2bot logoprompt2bot
Connecting Your Bot to WhatsApp Business API

Connecting Your Bot to WhatsApp Business API

2026-12-04

by Uri Walevski

Try Mentat, a personal AI assistant on WhatsApp with its own computer, browser, and phone.

Try it

Prompt2Bot is an official Meta Tech Provider. Connecting your bot to the official WhatsApp Business API takes about a minute in one click. You don't need a Meta Developer account, System User tokens, App Secrets, or manual webhook configuration.

What You Need to Get Started

Starting from scratch is simpler than most people expect:

  • A regular Facebook account. Meta uses it inside the setup popup to create or select a Business Portfolio. You don't need a Facebook Business Page.
  • No company paperwork to launch. Business verification documents aren't required to get started. Unverified accounts start with 250 business-initiated conversations per day and unlimited replies to incoming customer messages.
  • A phone number (three options):
    • A fresh or dedicated number not currently registered on WhatsApp (verified by SMS or voice call during setup).
    • Your existing WhatsApp Business mobile app number using Coexistence, so you keep using the mobile app on the same number alongside your AI bot.
    • Meta's built-in virtual number option, where Meta offers it in your region.
  • No credit card needed for incoming support. Replying to customers who message you first within WhatsApp's 24-hour customer service window is free from Meta. You only need a payment method in Meta Business Manager if you send proactive or scheduled template messages outside that 24-hour window.

Connect in 1 Click (Recommended)

There are two ways to start the 1-click flow:

Option 1: From the dashboard

  1. Go directly to /connect-whatsapp, or open your bot in the prompt2bot dashboard under WhatsApp for Business.
  2. If you already use the WhatsApp Business mobile app on this number and want to keep using it alongside your bot, check Keep using my existing WhatsApp Business mobile app (Coexistence).
  3. Click Connect Official WhatsApp.
  4. Complete Meta's popup: log in with Facebook, pick or create a Business Portfolio, and either verify your phone number via SMS/voice call or scan the QR code inside the popup (for Coexistence).

Option 2: Through Bob in chat

Ask Bob to connect your bot to the Official WhatsApp Business API. He will send you a direct 1-click /connect-whatsapp link for that bot.

What happens automatically

As soon as you finish Meta's popup, prompt2bot handles the rest:

  • Exchanges the Meta authorization code for a permanent access token
  • Subscribes your WhatsApp Business Account (WABA) webhook
  • Registers your number on the WhatsApp Cloud API (for new/dedicated numbers)
  • Enables WhatsApp calling
  • Creates the default prompt2bot_remote_task message template for scheduled updates

Note: Meta updates its popup screens from time to time. If anything looks off, ask us on Discord.

Scheduled and Proactive Messages (24-Hour Window)

The official WhatsApp Business API allows free-form replies inside the 24-hour window after a user messages you. To send scheduled reminders or proactive messages outside that window, Meta requires an approved message template (and a payment method in WhatsApp Manager for paid template categories).

Prompt2Bot automatically submits the default prompt2bot_remote_task template during 1-click setup, with one text variable for the message body. Once Meta approves it, scheduled WhatsApp Business tasks use it automatically whenever there is no active 24-hour window. You can also ask Bob anytime to create or check templates for your number.

When Official WhatsApp Business API Isn't the Right Fit

The official API only supports 1-on-1 conversations. It doesn't support WhatsApp group chats, and initiating contact outside the 24-hour window requires Meta-approved templates.

If your bot needs to participate in WhatsApp groups or initiate free-form conversations, use a managed WhatsApp Web connection (like Supergreen) instead. See Everything you wanted to know about connecting bots to WhatsApp for the full comparison.


Advanced: Bring Your Own Meta Developer App (Manual Setup)

Most users don't need this section. If your team specifically wants to own and manage its own Meta Developer App and System User Token, follow the manual steps below and paste your credentials in /bots under WhatsApp for Business -> Advanced: Bring your own Meta Developer App (manual token).

1. Create a Meta Developer App

  1. Go to developers.facebook.com/apps
  2. Create a new app (use your service name)
  3. Use case: select "Other"
  4. App type: select "Business"
  5. In the left panel go to App Settings > Basic, set Privacy Policy URL to your own business's publicly accessible privacy policy URL (your business is the data controller for your customers' WhatsApp conversations), and save

2. Connect a WhatsApp Account and Phone Number

  1. Add WhatsApp to the app and create or select a Business Portfolio
  2. Open WhatsApp > API Setup and under "Send and receive messages" click Add phone number
  3. Enter your business details and verify your number via SMS or call
  4. Add a payment method in WhatsApp Manager if you plan to send paid templates

3. Create a Permanent System User Token

  1. Go to business.facebook.com/latest/settings
  2. Navigate to Users > System Users > Add, create a System User with role Admin
  3. Click the new System User, choose Assign Assets, select WhatsApp Accounts, pick your WABA, and grant Full Control (assign the WABA before generating the token)
  4. Click Generate Token for your app with expiration set to Never and permissions whatsapp_business_management and whatsapp_business_messaging

4. Copy Your App Secret and WABA ID

  1. App Secret: In developers.facebook.com/apps, open App Settings > Basic, click Show next to App Secret, and copy it
  2. WABA ID: In business.facebook.com, open WhatsApp Manager and click your WhatsApp Business Account. Copy the asset_id value from the URL (business_id=XXXXX&asset_id=YYYYY)

5. Connect and Register in prompt2bot

  1. Open your bot in /bots, expand WhatsApp for Business -> Advanced: Bring your own Meta Developer App (manual token), paste the System User Token, App Secret, and WABA ID, and click Connect. Webhook setup and app subscription happen automatically.
  2. Enter the SMS verification code in the dashboard and click Verify & Register to finish registering your phone number with the Cloud API.

Built by prompt2bot

Try Mentat on WhatsApp

A personal AI assistant with its own cloud computer, persistent memory, and skills. Works in 1-on-1 chats, WhatsApp groups, or scheduled workflows. Free 7-day trial (up to 100 runs, no credit card).

Building a custom agent instead?Open Agent Builder·For Business·No-Code Automation

← All posts